/*
Theme Name: Adventure Pending
Theme URI: https://mikekantorski.com
Author: Mike Kantorski
Description: Video-first news and stories for Adventure Pending. Child theme of Twenty Twenty-Five.
Template: twentytwentyfive
Version: 1.32.0
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: adventure-pending
*/

/* ---------- Small-caps labels (categories, kicker text, nav) ---------- */
.ap-label,
.ap-label a,
.wp-block-post-terms.ap-label a {
	font-family: var(--wp--preset--font-family--inter);
	font-weight: 700;
	font-size: 0.9rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--wp--preset--color--trail);
}

/* Menu: Newsreader, matching the headlines */
.ap-nav .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--newsreader);
	font-size: 1.2rem;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
	color: var(--wp--preset--color--ink);
}
.ap-nav .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--trail);
	text-decoration: underline;
	text-underline-offset: 6px;
}

/* ---------- Header (newspaper masthead) ---------- */
.ap-topbar .ap-dateline {
	margin: 0;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.95rem;
	color: var(--wp--preset--color--muted);
}
.ap-logo,
.ap-logo a {
	display: block;
	text-align: center;
}
.ap-logo img {
	height: auto;
	max-width: 100%;
	margin: 0 auto;
}
/* Classic double rule under the section bar */
.ap-navbar {
	padding: 0.85rem 0 0.95rem;
	border-top: 1px solid var(--wp--preset--color--stone);
	border-bottom: 4px double var(--wp--preset--color--ink);
}

/* ---------- Trail-dot divider ---------- */
.ap-trail {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--wp--preset--color--ink);
}
.ap-trail::after {
	content: "";
	flex: 1;
	border-top: 2px dashed var(--wp--preset--color--stone);
}

/* ---------- Post cards ---------- */
.ap-card .wp-block-post-featured-image img {
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 4px;
}
.ap-card .wp-block-post-title a {
	text-decoration: none;
}
.ap-card .wp-block-post-title a:hover {
	color: var(--wp--preset--color--trail);
}

/* One section label per story: show only the first category */
.ap-label.wp-block-post-terms a ~ a,
.ap-label.wp-block-post-terms .wp-block-post-terms__separator {
	display: none;
}

/* "Latest" list: small square thumbnail beside the headline */
.ap-row .ap-thumb {
	flex: 0 0 104px;
	margin: 0;
}
.ap-row .ap-thumb img {
	width: 104px;
	height: 104px;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 4px;
}
.ap-row > .wp-block-group {
	flex: 1 1 auto;
	min-width: 0;
}

/* ---------- "My take" box ---------- */
.is-style-my-take {
	background: var(--wp--preset--color--trail-light);
	color: var(--wp--preset--color--ink);
	border-left: 5px solid var(--wp--preset--color--trail);
	padding: 1.4rem 1.6rem;
	border-radius: 0 4px 4px 0;
	margin-top: 2.5rem;
}
.is-style-my-take::before {
	content: "My take";
	display: block;
	font-family: var(--wp--preset--font-family--inter);
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--trail);
	margin-bottom: 0.4rem;
}
/* Beat WordPress's "global padding" on groups, which zeroes the sides */
.wp-block-group.is-style-my-take,
.wp-block-group.is-style-my-take.has-global-padding {
	padding: 1.5rem 1.75rem 1.6rem 2rem !important;
}
.is-style-my-take > :first-child {
	margin-top: 0;
}
.is-style-my-take > h2:first-child,
.is-style-my-take > h3:first-child {
	margin-top: 0.3rem;
	margin-bottom: 1rem;
	line-height: 1.15;
}
.is-style-my-take > h2,
.is-style-my-take > h3 {
	color: var(--wp--preset--color--ink);
}
/* When the box starts with a heading, the heading becomes the green label
   (bigger), and the automatic "My take" label is hidden so it isn't doubled. */
.is-style-my-take:has(> h2:first-child, > h3:first-child)::before {
	display: none;
}
.is-style-my-take > h2:first-child,
.is-style-my-take > h3:first-child {
	font-family: var(--wp--preset--font-family--inter);
	font-weight: 700;
	font-size: 1.6rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--trail);
	line-height: 1.2;
}
.is-style-my-take a {
	color: var(--wp--preset--color--trail);
}

/* Article parts */
.single .ap-hook,
.wp-block-post-content > p.ap-hook {
	font-size: 1.3rem;
	line-height: 1.6;
}
.ap-source {
	font-size: 1rem;
	color: var(--wp--preset--color--muted);
}

/* ---------- Callout boxes (newsletter, shop) ---------- */
.ap-callout {
	border: 1.5px solid var(--wp--preset--color--ink);
	border-radius: 4px;
}

/* ---------- Video embeds ---------- */
.single .wp-block-embed.is-type-video {
	margin-bottom: 1.5rem;
}

/* ---------- Readability ---------- */
.wp-block-post-content p,
.wp-block-post-content li {
	max-width: 68ch;
}
.ap-card .wp-block-post-title a {
	color: var(--wp--preset--color--ink);
}
:focus-visible {
	outline: 3px solid var(--wp--preset--color--trail);
	outline-offset: 2px;
}

/* ---------- Mobile ---------- */
@media (max-width: 781px) {
	.ap-logo img {
		width: 300px !important;
	}
	.ap-topbar .ap-dateline {
		font-size: 0.85rem;
	}
	.ap-navbar {
		justify-content: flex-end !important;
	}
	.ap-nav .wp-block-navigation__responsive-container-open {
		font-family: var(--wp--preset--font-family--newsreader);
	}
}

/* ---------- Newsletter band (slim, newspaper rules) ---------- */
.ap-newsband {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem 2.5rem;
	padding: 1.6rem 0;
	border-top: 4px double var(--wp--preset--color--ink);
	border-bottom: 1px solid var(--wp--preset--color--stone);
}
.ap-newsband__text {
	flex: 1 1 340px;
	min-width: 0;
}
.ap-newsband__text p {
	margin: 0;
}
.ap-newsband__form {
	flex: 0 1 440px;
	min-height: 52px;
	max-width: 100%;
}
.ap-newsband__form iframe {
	max-width: 100%;
	display: block;
}

/* ---------- Homepage hero grid (lead + 2x2) ---------- */
.ap-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: 0;
	padding-bottom: 1.25rem;
}
/* Lines meet: the lead's divider, the grid's centre line and the
   middle rule all join up, and every photo starts on the same top line. */
.ap-hero > *,
.ap-hero .wp-block-post-template,
.ap-hero .wp-block-post-template > li > :first-child,
.ap-hero .ap-card > :first-child {
	margin-top: 0 !important;
}
.ap-hero__lead {
	padding-right: 2rem;
	border-right: 1px solid var(--wp--preset--color--stone);
}
.ap-hero__grid {
	display: flex;
	flex-direction: column;
}
.ap-hero__grid .wp-block-post-template {
	flex: 1;
	display: grid;
	grid-template-columns: minmax(0, calc(50% + 1rem)) minmax(0, 1fr);
	grid-auto-rows: auto;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ap-hero__grid .wp-block-post-template > li {
	margin: 0;
	padding: 0 0 1.25rem;
}
.ap-hero__grid .wp-block-post-template > li:nth-child(odd) {
	padding-left: 2rem;
	padding-right: 2rem;
	border-right: 1px solid var(--wp--preset--color--stone);
}
.ap-hero__grid .wp-block-post-template > li:nth-child(even) {
	padding-left: 2rem;
}
.ap-hero__grid .wp-block-post-template > li:nth-child(-n+2) {
	border-bottom: 1px solid var(--wp--preset--color--stone);
}
.ap-hero__grid .wp-block-post-template > li:nth-child(n+3) {
	padding-top: 1.25rem;
	padding-bottom: 0;
}
.ap-media {
	position: relative;
}
.ap-media .wp-block-post-featured-image {
	margin: 0;
}
.ap-media .wp-block-post-featured-image img {
	border-radius: 6px;
	width: 100%;
	object-fit: cover;
}
/* Section label: a small green kicker under the photo, above the title */
.ap-badge {
	margin: 0.8rem 0 0;
	line-height: 1;
}
.ap-badge a {
	color: var(--wp--preset--color--trail);
	font-family: var(--wp--preset--font-family--inter);
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
}
.ap-badge a:hover {
	text-decoration: underline;
}
.ap-badge a ~ a,
.ap-badge .wp-block-post-terms__separator {
	display: none;
}
.ap-media + .wp-block-post-title {
	margin-top: 0.4rem !important;
}
.ap-hero__title {
	font-size: clamp(1.8rem, 2.6vw, 2.4rem);
	line-height: 1.1;
	letter-spacing: -0.01em;
}
.ap-grid__title {
	font-size: clamp(1.2rem, 1.6vw, 1.45rem);
	line-height: 1.2;
}
.ap-hero__title a,
.ap-grid__title a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}
.ap-hero__title a:hover,
.ap-grid__title a:hover {
	color: var(--wp--preset--color--trail);
}
.ap-byline {
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.95rem;
	color: var(--wp--preset--color--muted);
}
.ap-hero__dek p {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0;
}
.ap-hero__dek {
	margin-top: 0.55rem;
	line-height: 1.55;
	color: #3A3833;
}
/* Read time on cards: sit close under the title */
.ap-card .wp-block-post-time-to-read {
	margin-top: 0.4rem;
	line-height: 1.3;
}
@media (max-width: 900px) {
	.ap-hero {
		grid-template-columns: 1fr;
	}
	.ap-hero__grid .wp-block-post-template {
		grid-template-columns: minmax(0, calc(50% - 0.75rem)) minmax(0, 1fr);
	}
	.ap-hero__grid .wp-block-post-template > li:nth-child(odd) {
		padding-left: 0;
		padding-right: 1.5rem;
	}
	.ap-hero__grid .wp-block-post-template > li:nth-child(even) {
		padding-left: 1.5rem;
	}
	.ap-hero__lead {
		padding-right: 0;
		border-right: 0;
		border-bottom: 1px solid var(--wp--preset--color--stone);
		padding-bottom: 1.6rem;
		margin-bottom: 1.6rem;
	}
}
@media (max-width: 520px) {
	.ap-hero__grid .wp-block-post-template {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
	.ap-hero__grid .wp-block-post-template > li:nth-child(odd) {
		padding-right: 0.75rem;
	}
	.ap-hero__grid .wp-block-post-template > li:nth-child(even) {
		padding-left: 0.75rem;
	}
	.ap-grid__title {
		font-size: 1.1rem;
	}
	.ap-badge a {
		font-size: 0.72rem;
	}
}

/* ---------- Homepage strip: video, podcast, referral, gear ---------- */
.ap-strip {
	margin-top: 0.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--wp--preset--color--stone);
}
.ap-strip__head {
	margin: 0 0 1rem;
	font-family: var(--wp--preset--font-family--inter);
	font-weight: 700;
	font-size: 0.9rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.ap-strip__head {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}
.ap-trailmark {
	width: 40px;
	height: auto;
	display: block;
}
.ap-strip__cols {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
.ap-strip__col {
	padding: 0 1.25rem;
	border-left: 1px solid var(--wp--preset--color--stone);
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	min-width: 0;
}
.ap-strip__col:first-child {
	padding-left: 0;
	border-left: 0;
}
.ap-strip__col:last-child {
	padding-right: 0;
}
.ap-strip__label {
	margin: 0;
	font-family: var(--wp--preset--font-family--inter);
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--trail);
}
.ap-strip__thumb {
	position: relative;
	display: block;
	border-radius: 4px;
	overflow: hidden;
}
.ap-strip__thumb img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}
.ap-play {
	position: absolute;
	left: 0.5rem;
	bottom: 0.5rem;
	width: 2rem;
	height: 2rem;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
	font-size: 0.8rem;
	border: 1.5px solid var(--wp--preset--color--ink);
}
.ap-strip__title {
	font-family: var(--wp--preset--font-family--newsreader);
	font-weight: 600;
	font-size: 1.1rem;
	line-height: 1.25;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}
.ap-strip__title:hover {
	color: var(--wp--preset--color--trail);
}
.ap-strip__fine {
	margin: 0;
	font-size: 0.9rem;
	color: var(--wp--preset--color--muted);
}
.ap-strip__more {
	font-family: var(--wp--preset--font-family--inter);
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--wp--preset--color--trail);
}
/* Referral as a trail permit stub: notched corners, perforated edge */
.ap-permit {
	--notch: 9px;
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	width: 100%;
	padding: 0.85rem 1rem 0.8rem 1.35rem;
	text-align: left;
	cursor: pointer;
	color: var(--wp--preset--color--ink);
	background:
		radial-gradient(circle at 0 0, transparent var(--notch), var(--wp--preset--color--trail-light) calc(var(--notch) + 0.5px)) top left,
		radial-gradient(circle at 100% 0, transparent var(--notch), var(--wp--preset--color--trail-light) calc(var(--notch) + 0.5px)) top right,
		radial-gradient(circle at 0 100%, transparent var(--notch), var(--wp--preset--color--trail-light) calc(var(--notch) + 0.5px)) bottom left,
		radial-gradient(circle at 100% 100%, transparent var(--notch), var(--wp--preset--color--trail-light) calc(var(--notch) + 0.5px)) bottom right;
	background-size: 51% 51%;
	background-repeat: no-repeat;
	border: 0;
	border-radius: 0;
	font: inherit;
}
.ap-permit::before {
	content: "";
	position: absolute;
	top: 10px;
	bottom: 10px;
	left: 0.55rem;
	border-left: 2px dotted var(--wp--preset--color--trail);
}
.ap-permit__top,
.ap-permit__note {
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--trail);
}
.ap-permit__top {
	text-transform: uppercase;
	font-weight: 700;
}
.ap-permit__code {
	font-family: var(--wp--preset--font-family--courier-prime);
	font-weight: 700;
	font-size: clamp(1.05rem, 1.5vw, 1.3rem);
	letter-spacing: 0.08em;
	word-break: break-all;
}
.ap-permit:hover .ap-permit__code,
.ap-permit.is-copied .ap-permit__code {
	color: var(--wp--preset--color--trail);
}
.ap-permit:focus-visible {
	outline: 3px solid var(--wp--preset--color--trail);
	outline-offset: 2px;
}
.ap-gear {
	margin: 0;
	font-size: 1rem;
	line-height: 1.35;
}
.ap-gear dt {
	margin-top: 0.35rem;
	font-family: var(--wp--preset--font-family--inter);
	font-weight: 700;
	font-size: 0.85rem;
}
.ap-gear dt:first-child {
	margin-top: 0;
}
.ap-gear dd {
	margin: 0.15rem 0 0;
	padding-left: 0.9rem;
	position: relative;
}
.ap-gear dd::before {
	content: "●";
	position: absolute;
	left: 0;
	font-size: 0.55rem;
	top: 0.4em;
	color: var(--wp--preset--color--trail);
}
@media (max-width: 1000px) {
	.ap-strip__cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 1.5rem;
	}
	.ap-strip__col:nth-child(3) {
		padding-left: 0;
		border-left: 0;
	}
}
@media (max-width: 560px) {
	.ap-strip__cols {
		grid-template-columns: 1fr;
	}
	.ap-strip__col {
		padding: 0;
		border-left: 0;
	}
	.ap-strip__col + .ap-strip__col {
		padding-top: 1.25rem;
		border-top: 1px solid var(--wp--preset--color--stone);
	}
}

/* ---------- Watch & listen row (homepage) ---------- */
.ap-watch {
	margin-top: 3rem;
}
.ap-watch__head {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
}
.ap-watch__head::after {
	content: "";
	flex: 1;
	border-top: 2px dashed var(--wp--preset--color--stone);
}
.ap-watch__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--large);
}
.ap-watch__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 2.5rem;
}
.ap-watch__item {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	min-width: 0;
}
.ap-watch__item + .ap-watch__item {
	padding-left: 2.5rem;
	margin-left: -2.5rem;
	border-left: 1px solid var(--wp--preset--color--stone);
}
.ap-watch__thumb {
	position: relative;
	display: block;
	border-radius: 6px;
	overflow: hidden;
	margin-bottom: 0.35rem;
}
.ap-watch__thumb img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}
.ap-play--lg {
	width: 3rem;
	height: 3rem;
	left: 0.8rem;
	bottom: 0.8rem;
	font-size: 1.1rem;
}
.ap-watch__name {
	margin: 0;
	font-size: clamp(1.25rem, 1.8vw, 1.6rem);
	line-height: 1.2;
}
.ap-watch__name a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}
.ap-watch__name a:hover {
	color: var(--wp--preset--color--trail);
}

/* ---------- Referral at the end of articles ---------- */
.ap-refbox {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.25rem 2rem;
	margin: 2.5rem 0 0;
	padding: 1.4rem 0;
	border-top: 1px solid var(--wp--preset--color--stone);
	border-bottom: 1px solid var(--wp--preset--color--stone);
}
.ap-refbox__text {
	flex: 1 1 300px;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}
.ap-refbox__text p {
	margin: 0;
}
.ap-refbox__line {
	font-size: var(--wp--preset--font-size--medium);
}
.ap-refbox__action {
	flex: 0 1 280px;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

/* ---------- Gear box at the end of Gear / Guides posts ---------- */
.ap-gearbox {
	margin-top: 2.5rem;
	padding: 1.25rem 1.4rem;
	background: var(--wp--preset--color--white);
	border-left: 4px solid var(--wp--preset--color--trail);
	border-radius: 0;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}
.ap-gearbox__cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem 2rem;
}

/* ---------- Around the camp band above the footer ---------- */
.ap-strip--footer {
	border-top: 4px double var(--wp--preset--color--ink);
	padding-top: 1.25rem;
	margin-top: 0;
}
/* Homepage already has Watch & listen, so the band shows referral + gear only */
.home .ap-strip--footer .ap-strip__col--media {
	display: none;
}
.home .ap-strip--footer .ap-strip__cols {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.home .ap-strip--footer .ap-strip__col--media + .ap-strip__col--media + .ap-strip__col {
	padding-left: 0;
	border-left: 0;
}

@media (max-width: 700px) {
	.ap-watch__grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
	.ap-watch__item + .ap-watch__item {
		padding-left: 0;
		margin-left: 0;
		border-left: 0;
		padding-top: 2rem;
		border-top: 1px solid var(--wp--preset--color--stone);
	}
	.home .ap-strip--footer .ap-strip__cols {
		grid-template-columns: 1fr;
	}
}

/* ---------- Gentle zoom on image hover ---------- */
.wp-block-post-featured-image,
.ap-watch__thumb,
.ap-strip__thumb {
	overflow: hidden;
	border-radius: 6px;
}
.wp-block-post-featured-image img,
.ap-watch__thumb img,
.ap-strip__thumb img {
	transition: transform 0.45s ease;
	will-change: transform;
}
.wp-block-post-featured-image a:hover img,
.wp-block-post-featured-image a:focus-visible img,
.ap-watch__thumb:hover img,
.ap-watch__thumb:focus-visible img,
.ap-strip__thumb:hover img {
	transform: scale(1.04);
}
@media (prefers-reduced-motion: reduce) {
	.wp-block-post-featured-image img,
	.ap-watch__thumb img,
	.ap-strip__thumb img {
		transition: none;
	}
	.wp-block-post-featured-image a:hover img,
	.ap-watch__thumb:hover img,
	.ap-strip__thumb:hover img {
		transform: none;
	}
}

/* ---------- Logo: the trail walks on hover ---------- */
.ap-logo__mark {
	position: relative;
	display: block;
	width: 560px;
	max-width: 100%;
	aspect-ratio: 970 / 93;
	margin: 0 auto;
}
.ap-logo .ap-logo__word {
	position: absolute;
	left: 0;
	top: 0;
	width: 78.454% !important;
	height: 100%;
	max-width: none;
}
.ap-logo__trail {
	position: absolute;
	left: 78.454%;
	top: 0;
	width: 21.546%;
	height: 100%;
}
.ap-tp {
	position: absolute;
	display: block;
	background-color: var(--wp--preset--color--ink);
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	transition: background-color 0.3s ease;
}
.ap-logo a:hover .ap-tp,
.ap-logo a:focus-visible .ap-tp {
	background-color: var(--wp--preset--color--trail);
	transition-delay: calc(var(--i) * 60ms);
	animation: ap-hop 0.45s ease-out calc(var(--i) * 60ms) both;
}
.ap-logo a:hover .ap-tp--dot,
.ap-logo a:focus-visible .ap-tp--dot {
	animation-name: ap-hop-dot;
}
@keyframes ap-hop {
	0% { transform: none; }
	40% { transform: translateY(-35%); }
	100% { transform: none; }
}
@keyframes ap-hop-dot {
	0% { transform: none; }
	40% { transform: translateY(-22%) scale(1.25); }
	100% { transform: none; }
}
@media (max-width: 781px) {
	.ap-logo__mark {
		width: 300px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.ap-logo a:hover .ap-tp,
	.ap-logo a:focus-visible .ap-tp {
		animation: none;
	}
}

/* ---------- Dropdown menus ---------- */
.ap-nav .wp-block-navigation__submenu-container {
	min-width: 15rem !important;
	padding: 0.4rem 0 !important;
	border: 1px solid var(--wp--preset--color--stone) !important;
	background: var(--wp--preset--color--paper) !important;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.ap-nav .wp-block-navigation__submenu-container a {
	padding: 0.55rem 1.1rem !important;
	font-size: 1.1rem;
}
.ap-nav .wp-block-navigation__submenu-container a:hover,
.ap-nav .wp-block-navigation__submenu-container a:focus-visible {
	color: var(--wp--preset--color--trail);
	text-decoration: underline;
}

/* Keep the header (and its dropdowns) above story photos and badges */
header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
}
.ap-nav .wp-block-navigation__submenu-container {
	z-index: 101 !important;
}

/* ---------- Gear lists: clean names, vehicles side by side ---------- */
.ap-gear {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.1rem 2.5rem;
	margin: 0.4rem 0 0.9rem;
}
.ap-gear__car {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}
.ap-gear__tag {
	align-self: flex-start;
	margin: 0 0 0.15rem;
	padding: 0.2rem 0.55rem 0.15rem;
	border-radius: 4px;
	background: var(--wp--preset--color--trail);
	color: var(--wp--preset--color--paper);
	font-family: var(--wp--preset--font-family--inter);
	font-weight: 700;
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.ap-gear__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}
.ap-gear__row {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 0.35rem;
	margin: 0 -0.35rem;
	border-radius: 8px;
	color: inherit;
	text-decoration: none;
	transition: background-color 0.15s ease;
}
a.ap-gear__row:hover,
a.ap-gear__row:focus-visible {
	background: rgba(47, 93, 70, 0.08);
}
.ap-gear__thumb {
	width: 56px;
	height: 56px;
	flex-shrink: 0;
	border-radius: 10px;
	overflow: hidden;
	background: #E3E9E4;
	border: 1px solid #D6DDD7;
}
.ap-gear__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ap-gear__text {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	min-width: 0;
	flex: 1;
}
.ap-gear__name {
	font-family: var(--wp--preset--font-family--newsreader);
	font-weight: 600;
	font-size: 1.02rem;
	line-height: 1.2;
	color: var(--wp--preset--color--ink);
}
.ap-gear__note {
	font-size: 0.85rem;
	line-height: 1.35;
	color: var(--wp--preset--color--muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ap-gear__arrow {
	flex-shrink: 0;
	color: var(--wp--preset--color--trail);
}
/* Small images inside the My Gear page list */
.wp-block-list li img[class*="wp-image-"] {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 10px;
	vertical-align: middle;
	margin-right: 0.6rem;
}

/* ---------- Author box: "From the driver's seat" ---------- */
.ap-author {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 1.25rem 1.5rem;
	margin-top: 2.25rem;
}
.ap-author__photo {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
	object-position: 50% 22%;
	border: 3px solid var(--wp--preset--color--paper);
	box-shadow: 0 0 0 2px var(--wp--preset--color--trail);
}
.ap-author__body p {
	margin: 0;
}
.ap-author__kicker {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--wp--preset--font-family--inter);
	font-weight: 700;
	font-size: 0.9rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--trail);
}
.ap-author__kicker img {
	width: 34px;
	height: auto;
}
.ap-author__name {
	margin-top: 0.2rem !important;
	font-family: var(--wp--preset--font-family--newsreader);
	font-weight: 600;
	font-size: 1.65rem;
	line-height: 1.15;
}
.ap-author__bio {
	margin-top: 0.5rem !important;
	font-size: 1.1rem;
	line-height: 1.6;
}
/* Links as stops along a dashed trail */
.ap-trailstops {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 2rem;
	list-style: none;
	margin: 1.1rem 0 0;
	padding: 0;
}
.ap-trailstops li {
	position: relative;
	padding-top: 1.2rem;
}
/* dashed trail from each stop to the next */
.ap-trailstops li:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 6px;
	left: 20px;
	right: calc(-2rem + 6px);
	border-top: 2px dashed var(--wp--preset--color--ink);
}
.ap-trailstops li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--wp--preset--color--ink);
	box-shadow: 0 0 0 3px var(--wp--preset--color--paper);
}
.ap-trailstops li:last-child::before {
	background: var(--wp--preset--color--trail);
}
.ap-trailstops a {
	font-family: var(--wp--preset--font-family--inter);
	font-weight: 700;
	font-size: 1rem;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}
.ap-trailstops a:hover,
.ap-trailstops a:focus-visible {
	color: var(--wp--preset--color--trail);
	text-decoration: underline;
}
/* Google preferred source: a trail blaze sign */
.ap-gsource {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem 1.25rem;
	margin-top: 0.5rem;
	padding: 1rem 1.25rem;
	background: var(--wp--preset--color--trail-light);
	border-radius: 4px;
}
.ap-gsource__sign {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.7rem 2.1rem 0.7rem 1.1rem;
	background: var(--wp--preset--color--trail);
	color: var(--wp--preset--color--paper);
	font-family: var(--wp--preset--font-family--inter);
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 0.02em;
	text-decoration: none;
	clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%);
	transition: background-color 0.2s ease, padding 0.2s ease;
}
.ap-gsource__sign:hover,
.ap-gsource__sign:focus-visible {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
	padding-right: 2.5rem;
}
.ap-gsource__pin {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--wp--preset--color--paper);
	box-shadow: 0 0 0 3px rgba(243, 240, 232, 0.35);
}
.ap-gsource__note {
	flex: 1 1 220px;
	margin: 0;
	font-size: 0.95rem;
	color: var(--wp--preset--color--muted);
}
@media (max-width: 560px) {
	.ap-author {
		grid-template-columns: 64px minmax(0, 1fr);
		gap: 1rem;
	}
	.ap-author__photo {
		width: 64px;
		height: 64px;
	}
	.ap-trailstops {
		gap: 0.75rem 1.4rem;
	}
	.ap-trailstops li:not(:last-child)::after {
		right: calc(-1.4rem + 6px);
	}
}

/* ---------- Around the camp: layout per page ---------- */
/* Posts already end with the referral box, so the band skips it there */
.single .ap-strip--footer .ap-strip__col--permit {
	display: none;
}
.single .ap-strip--footer .ap-strip__cols {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ap-strip--footer .ap-strip__col--permit .ap-strip__more {
	white-space: nowrap;
}
/* Gear in the band: one vehicle under the other */
.ap-strip__col--gear .ap-gear {
	grid-template-columns: 1fr;
	gap: 1.1rem;
}
@media (max-width: 1000px) {
	.single .ap-strip--footer .ap-strip__cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.single .ap-strip--footer .ap-strip__col--gear {
		grid-column: 1 / -1;
	}
}
@media (max-width: 560px) {
	.single .ap-strip--footer .ap-strip__cols {
		grid-template-columns: 1fr;
	}
}

/* ---------- End of post: tags + share row ---------- */
.ap-postfoot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	margin-top: 2.5rem;
	padding-top: 1.1rem;
	border-top: 1px solid var(--wp--preset--color--stone);
	font-size: 0.95rem;
}
.ap-postfoot__tags {
	margin: 0;
	flex: 1 1 280px;
	line-height: 1.6;
}
.ap-postfoot__tags span,
.ap-share__label {
	font-family: var(--wp--preset--font-family--inter);
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	margin-right: 0.35rem;
}
.ap-postfoot__tags a {
	color: var(--wp--preset--color--trail);
}
.ap-share {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.ap-share__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid var(--wp--preset--color--stone);
	border-radius: 50%;
	background: transparent;
	color: var(--wp--preset--color--ink);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.ap-share__btn:hover,
.ap-share__btn:focus-visible,
.ap-share__btn.is-copied {
	background: var(--wp--preset--color--trail);
	border-color: var(--wp--preset--color--trail);
	color: var(--wp--preset--color--paper);
}
.ap-share__copied:not(:empty) {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	white-space: nowrap;
	font-size: 0.8rem;
	color: var(--wp--preset--color--trail);
}
/* Google preferred source: now one quiet line in the author box */
.ap-gsource-line {
	margin-top: 1rem !important;
	font-size: 0.95rem;
}
.ap-gsource-line a {
	color: var(--wp--preset--color--trail);
}

/* Text-message share only makes sense on phones and tablets */
@media (hover: hover) and (pointer: fine) {
	.ap-share__sms {
		display: none;
	}
}

/* Lead image at the top of articles */
.ap-lead-image img {
	width: 100%;
	height: auto;
	border-radius: 4px;
}
.ap-lead-image figcaption {
	margin-top: 0.5rem;
	font-size: 0.85rem;
	color: var(--wp--preset--color--muted);
}

/* Seasonal banner (functions.php: ap_seasonal_banner) */
.ap-banner{position:relative;display:flex;align-items:center;justify-content:center;gap:.75rem;padding:.6rem 3rem;background:var(--wp--preset--color--trail);color:var(--wp--preset--color--white);text-align:center}
.ap-banner__text{margin:0;font-size:.95rem;line-height:1.4}
.ap-banner__close{position:absolute;right:.75rem;top:50%;transform:translateY(-50%);background:none;border:0;color:inherit;font-size:1.4rem;line-height:1;cursor:pointer;padding:.25rem .5rem;opacity:.85}
.ap-banner__close:hover,.ap-banner__close:focus-visible{opacity:1}
@media (max-width:600px){.ap-banner{padding:.55rem 2.5rem}.ap-banner__text{font-size:.85rem}}

/* Newsletter band: subscribed state */
.ap-newsband.is-subscribed .ap-newsband__form{display:none}
.ap-newsband__thanks{align-self:center}
.ap-newsband__thanks[hidden]{display:none}
.ap-newsband__thanks p{margin:0}
.ap-newsband__thanks-title{font-weight:600;color:var(--wp--preset--color--trail)}
.ap-newsband__thanks-line{margin-top:.35rem !important;font-size:.95rem;color:var(--wp--preset--color--muted)}
.ap-newsband__share{background:none;border:0;padding:0;font:inherit;color:var(--wp--preset--color--trail);text-decoration:underline;text-underline-offset:.15em;cursor:pointer}

/* ---------- Homepage sections without repeats (patterns: section-rows, more-stories) ---------- */
.ap-homesec {
	margin-top: 2rem;
}
.ap-homesec .ap-trail h2 {
	margin: 0;
}
.ap-homesec .ap-trail h2 a {
	color: inherit;
	text-decoration: none;
}
.ap-hgrid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.75rem 1.25rem;
	margin-top: 0.9rem;
}
.ap-hcard .wp-block-post-featured-image {
	margin: 0;
}
.ap-hcard .wp-block-post-featured-image img {
	display: block;
}
.ap-hcard__cat {
	margin: 0.6rem 0 0;
}
.ap-hcard__title {
	margin: 0.55rem 0 0;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.3;
}
.ap-hcard__cat + .ap-hcard__title {
	margin-top: 0.2rem;
}
.ap-hcard__title a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}
.ap-hcard__title a:hover {
	color: var(--wp--preset--color--trail);
}
.ap-hcard__meta {
	margin: 0.3rem 0 0;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.95rem;
	line-height: 1.3;
	color: var(--wp--preset--color--muted);
}
@media (max-width: 900px) {
	.ap-hgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.ap-hgrid { grid-template-columns: 1fr; }
}

/* ---------- Watch & listen + this week's top stories ---------- */
.ap-wl {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 0 2.5rem;
	margin-top: 2rem;
}
.ap-wl--solo {
	grid-template-columns: 1fr;
}
.ap-wl__col + .ap-wl__col {
	padding-left: 2.5rem;
	border-left: 1px solid var(--wp--preset--color--stone);
}
.ap-wl .ap-watch__head {
	margin-bottom: 0.9rem;
}
.ap-wl__media {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 0.9rem;
	align-items: start;
	padding-bottom: 1.25rem;
	margin-bottom: 1.25rem;
	border-bottom: 1px solid var(--wp--preset--color--stone);
}
.ap-wl__media:last-child {
	border-bottom: 0;
	margin-bottom: 0;
	padding-bottom: 0;
}
.ap-wl__media .ap-watch__thumb {
	margin: 0;
}
.ap-wl__media .ap-strip__label {
	margin: 0 0 0.2rem;
}
.ap-wl__media h3 {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.25;
}
.ap-wl__media h3 a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}
.ap-wl__media h3 a:hover {
	color: var(--wp--preset--color--trail);
}
.ap-wl__media .ap-strip__more {
	display: inline-block;
	margin-top: 0.35rem;
	font-size: 0.8rem;
}
.ap-wl__media .ap-play--lg {
	width: 1.8rem;
	height: 1.8rem;
	font-size: 0.7rem;
	left: 0.4rem;
	bottom: 0.4rem;
}
.ap-wl__media--feature {
	grid-template-columns: 1fr;
	gap: 0.6rem;
}
.ap-wl__media--feature .ap-play--lg {
	width: 3rem;
	height: 3rem;
	font-size: 1.1rem;
	left: 0.8rem;
	bottom: 0.8rem;
}
.ap-wl__media--feature h3 {
	font-size: 1.35rem;
	line-height: 1.2;
}
.ap-wl__media--feature .ap-strip__label {
	margin-top: 0.15rem;
}
.ap-top {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: aptop;
}
.ap-top li {
	counter-increment: aptop;
	display: grid;
	grid-template-columns: 2.4rem minmax(0, 1fr);
	gap: 0.5rem;
	padding: 0.7rem 0;
	border-bottom: 1px solid var(--wp--preset--color--stone);
}
.ap-top li:first-child {
	padding-top: 0;
}
.ap-top li:last-child {
	border-bottom: 0;
}
.ap-top li::before {
	content: counter(aptop);
	font-family: var(--wp--preset--font-family--newsreader, "Newsreader", Georgia, serif);
	font-size: 1.9rem;
	line-height: 1;
	font-weight: 600;
	color: var(--wp--preset--color--trail);
}
.ap-top__title {
	display: block;
	font-size: 1.12rem;
	line-height: 1.3;
	font-weight: 600;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}
.ap-top__title:hover {
	color: var(--wp--preset--color--trail);
}
.ap-top__meta {
	display: block;
	margin-top: 0.25rem;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}
@media (max-width: 800px) {
	.ap-wl {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
	.ap-wl__col + .ap-wl__col {
		padding-left: 0;
		border-left: 0;
		padding-top: 2rem;
		border-top: 1px solid var(--wp--preset--color--stone);
	}
}

/* ---------- Homepage: tighter rhythm ---------- */
.home main.wp-block-group {
	margin-block-start: 0;
}
.home .ap-hero {
	padding-bottom: 0.5rem;
}
.home main .ap-newsband {
	margin-top: 1.75rem !important;
	margin-bottom: 0 !important;
	padding: 1.1rem 0;
}
.home .ap-strip--footer {
	padding-top: 0.75rem;
}

/* Newsletter band: WordPress adds a block-gap margin to the second child; keep both sides centred */
.ap-newsband > * {
	margin-block-start: 0 !important;
}

/* ---------- Browse by topic (pattern: browse-topics) ---------- */
.ap-topics {
	margin-top: 2rem;
}
.ap-topics .ap-trail h2 {
	margin: 0;
}
.ap-topics__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 0.9rem 0 0;
	padding: 0;
	list-style: none;
}
.ap-topics__list a {
	display: inline-flex;
	align-items: center;
	padding: 0.55rem 1.1rem;
	border: 1px solid var(--wp--preset--color--stone);
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.85rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.ap-topics__list a:hover,
.ap-topics__list a:focus-visible {
	background: var(--wp--preset--color--trail);
	border-color: var(--wp--preset--color--trail);
	color: var(--wp--preset--color--white);
}

/* =================================================================
   v1.31 — Modern refresh: slim header, Inter labels, fewer lines, depth
   ================================================================= */

/* ---------- Slim one-row header that stays at the top ---------- */
header.wp-block-template-part {
	background: var(--wp--preset--color--paper);
	transition: box-shadow 0.25s ease, background-color 0.25s ease;
}
.ap-header {
	border-bottom: 1px solid var(--wp--preset--color--stone);
	transition: border-color 0.25s ease;
}
.ap-headrow {
	gap: 1.5rem;
}
.ap-headrow__logo .ap-logo,
.ap-headrow__logo .ap-logo a {
	text-align: left;
}
.ap-headrow__logo .ap-logo__mark {
	width: 300px;
	margin: 0;
}
.ap-headrow__right {
	flex: 1 1 auto;
	justify-content: flex-end;
}
.ap-header .ap-nav {
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.95rem;
	font-weight: 500;
}
.ap-header .ap-nav .wp-block-navigation-item__content {
	text-decoration: none;
}
.ap-headrow__cta {
	margin: 0;
}
.ap-headrow__cta .wp-block-button__link {
	font-size: 0.85rem;
	box-shadow: 0 2px 8px rgba(20, 20, 20, 0.18);
}
body.ap-scrolled header.wp-block-template-part {
	background: rgba(243, 239, 231, 0.88);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	backdrop-filter: saturate(1.4) blur(10px);
	box-shadow: 0 1px 0 rgba(31, 26, 18, 0.06), 0 6px 20px rgba(31, 26, 18, 0.08);
}
body.ap-scrolled .ap-header {
	border-bottom-color: transparent;
}
@media (max-width: 781px) {
	.ap-headrow__logo .ap-logo__mark {
		width: 185px;
	}
	.ap-headrow__right {
		gap: 0.9rem !important;
	}
	.ap-headrow__cta .wp-block-button__link {
		padding: 0.45rem 0.85rem !important;
		font-size: 0.8rem;
	}
}

/* ---------- Clean sans-serif labels, meta and buttons ---------- */
.ap-label,
.ap-label a,
.ap-strip__label,
.ap-hcard__cat,
.wp-block-post-terms.ap-label a,
.ap-badge a {
	font-family: var(--wp--preset--font-family--inter) !important;
	font-weight: 650 !important;
	font-size: 0.72rem !important;
	letter-spacing: 0.08em !important;
}
.wp-block-post-time-to-read,
.ap-hcard__meta,
.ap-byline {
	font-family: var(--wp--preset--font-family--inter) !important;
	font-size: 0.8rem !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}
.ap-top__meta {
	font-weight: 600;
	font-size: 0.7rem;
}
.wp-element-button,
.wp-block-button__link {
	font-family: var(--wp--preset--font-family--inter) !important;
	font-weight: 600 !important;
	letter-spacing: 0.02em !important;
	text-transform: none !important;
}
.ap-topics__list a {
	letter-spacing: 0.03em;
}

/* ---------- No underlines outside article text ---------- */
.wp-site-blocks a:not(.wp-block-post-content a) {
	text-decoration: none !important;
}
.ap-strip__more,
.ap-newsband a,
.ap-newsband__share {
	color: var(--wp--preset--color--trail) !important;
	font-family: var(--wp--preset--font-family--inter) !important;
	font-weight: 600;
	font-size: 0.85rem;
	letter-spacing: 0 !important;
	text-transform: none !important;
	text-decoration: none !important;
}
.ap-strip__more:hover,
.ap-newsband a:hover,
.ap-newsband__share:hover {
	text-decoration: underline !important;
}

/* ---------- Fewer lines ---------- */
.ap-trail::after,
.ap-watch__head::after,
.ap-watch__title::after {
	display: none !important;
}
.ap-hero > *,
.ap-hero__grid li {
	border-right: 0 !important;
	border-bottom: 0 !important;
	border-left: 0 !important;
}
.ap-hero__grid .wp-block-post-template {
	row-gap: 1.75rem !important;
}
.ap-strip--footer {
	border-top: 0 !important;
}
.ap-wl__media {
	border-bottom: 0 !important;
}

/* ---------- Depth ---------- */
:root {
	--ap-shadow-1: 0 1px 2px rgba(31, 26, 18, 0.06), 0 4px 12px rgba(31, 26, 18, 0.06);
	--ap-shadow-2: 0 2px 4px rgba(31, 26, 18, 0.08), 0 12px 28px rgba(31, 26, 18, 0.12);
}
/* Photos: rounded, soft shadow, lift and gentle zoom on hover */
.ap-card .wp-block-post-featured-image,
.ap-hcard .wp-block-post-featured-image,
.ap-watch__thumb {
	display: block;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: var(--ap-shadow-1);
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.ap-card .wp-block-post-featured-image img,
.ap-hcard .wp-block-post-featured-image img,
.ap-watch__thumb img {
	border-radius: 0 !important;
	transition: transform 0.5s ease;
}
.ap-card:hover .wp-block-post-featured-image,
.ap-hcard:hover .wp-block-post-featured-image,
.ap-wl__media:hover .ap-watch__thumb {
	box-shadow: var(--ap-shadow-2);
	transform: translateY(-3px);
}
.ap-card:hover .wp-block-post-featured-image img,
.ap-hcard:hover .wp-block-post-featured-image img,
.ap-wl__media:hover .ap-watch__thumb img {
	transform: scale(1.035);
}
/* Raised surfaces */
.ap-newsband {
	border: 1px solid rgba(31, 26, 18, 0.06) !important;
	border-radius: 12px;
	background: var(--wp--preset--color--white);
	box-shadow: var(--ap-shadow-1);
	padding: 1.4rem 1.75rem !important;
}
.ap-wl__col + .ap-wl__col {
	padding: 1.4rem 1.6rem !important;
	border: 1px solid rgba(31, 26, 18, 0.06) !important;
	border-radius: 14px;
	background: var(--wp--preset--color--white);
	box-shadow: var(--ap-shadow-1);
}
.ap-wl > .ap-wl__col:first-child {
	padding-top: 1.4rem;
}
.ap-refbox,
.ap-permit {
	box-shadow: var(--ap-shadow-1);
}
.ap-topics__list a {
	box-shadow: 0 1px 2px rgba(31, 26, 18, 0.06);
	transition: box-shadow 0.2s, transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}
.ap-topics__list a:hover,
.ap-topics__list a:focus-visible {
	box-shadow: 0 6px 16px rgba(47, 93, 70, 0.25);
	transform: translateY(-1px);
}
@media (max-width: 800px) {
	.ap-wl__col + .ap-wl__col {
		border-top: 1px solid rgba(31, 26, 18, 0.06) !important;
	}
	.ap-wl > .ap-wl__col:first-child {
		padding-top: 0;
	}
}
@media (prefers-reduced-motion: reduce) {
	.ap-card .wp-block-post-featured-image,
	.ap-hcard .wp-block-post-featured-image,
	.ap-watch__thumb,
	.ap-topics__list a {
		transition: none;
	}
	.ap-card:hover .wp-block-post-featured-image,
	.ap-hcard:hover .wp-block-post-featured-image,
	.ap-wl__media:hover .ap-watch__thumb,
	.ap-topics__list a:hover {
		transform: none;
	}
	.ap-card:hover .wp-block-post-featured-image img,
	.ap-hcard:hover .wp-block-post-featured-image img,
	.ap-wl__media:hover .ap-watch__thumb img {
		transform: none;
	}
}

/* ---------- Watch & listen + top stories: tighter, no dead space ---------- */
.ap-wl__media {
	padding-bottom: 0 !important;
	margin-bottom: 1.1rem !important;
}
.ap-wl__media:last-child {
	margin-bottom: 0 !important;
}
.ap-wl__media--feature {
	gap: 0.5rem !important;
}
.ap-wl__media--feature .ap-strip__more {
	margin-top: 0.2rem !important;
}
/* The stories card matches the left column's height, and the list spreads evenly inside it */
.ap-wl__col + .ap-wl__col {
	display: flex;
	flex-direction: column;
}
.ap-wl__col + .ap-wl__col .ap-top {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
.ap-top li {
	padding: 0.6rem 0 !important;
}
.ap-top li:first-child {
	padding-top: 0 !important;
}
.ap-top li:last-child {
	padding-bottom: 0 !important;
}

/* ---------- Newsletter band: subscribed state with real buttons ---------- */
.ap-newsband.is-subscribed .ap-newsband__text > p:last-child {
	display: none;
}
.ap-newsband__thanks {
	display: flex;
	align-items: center;
	align-self: center;
	margin-left: auto;
}
.ap-newsband__thanks[hidden] {
	display: none;
}
.ap-newsband__chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
	padding: 0.3rem 0.75rem;
	border-radius: 999px;
	background: rgba(47, 93, 70, 0.1);
	color: var(--wp--preset--color--trail);
	font: 600 0.78rem/1.2 var(--wp--preset--font-family--inter);
	letter-spacing: 0.02em;
}
.ap-newsband__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.6rem;
}
.ap-nbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 1.2rem;
	border-radius: 999px;
	font: 600 0.9rem/1 var(--wp--preset--font-family--inter) !important;
	letter-spacing: 0 !important;
	text-decoration: none !important;
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}
.ap-nbtn--solid,
.ap-newsband .ap-nbtn--solid {
	background: var(--wp--preset--color--trail);
	border: 1px solid var(--wp--preset--color--trail);
	color: var(--wp--preset--color--white) !important;
	box-shadow: 0 2px 8px rgba(47, 93, 70, 0.25);
}
.ap-nbtn--solid:hover,
.ap-nbtn--solid:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(47, 93, 70, 0.3);
	text-decoration: none !important;
}
.ap-nbtn--ghost,
.ap-newsband .ap-nbtn--ghost {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--stone);
	color: var(--wp--preset--color--ink) !important;
}
.ap-nbtn--ghost:hover,
.ap-nbtn--ghost:focus-visible {
	border-color: var(--wp--preset--color--trail);
	color: var(--wp--preset--color--trail) !important;
	text-decoration: none !important;
}
@media (max-width: 700px) {
	.ap-newsband__thanks {
		margin-left: 0;
	}
	.ap-newsband__actions {
		justify-content: flex-start;
	}
}

/* ---------- Mobile header fixes ---------- */
/* On phones WordPress's admin bar scrolls away with the page, so the sticky
   header must pin to the very top instead of leaving a 46px gap above it. */
@media (max-width: 600px) {
	header.wp-block-template-part {
		top: 0;
	}
}
@media (max-width: 781px) {
	/* Nearly solid background so stories don't show through the header */
	body.ap-scrolled header.wp-block-template-part {
		background: rgba(243, 239, 231, 0.97);
	}
	.ap-header {
		padding-left: 1rem !important;
		padding-right: 1rem !important;
	}
	.ap-headrow {
		gap: 0.75rem;
	}
	.ap-headrow__right {
		gap: 0.75rem !important;
	}
	.ap-nav .wp-block-navigation__responsive-container-open {
		padding: 0.35rem;
	}
	.ap-nav .wp-block-navigation__responsive-container-open svg {
		width: 26px;
		height: 26px;
	}
}

/* ---------- Mobile menu (overlay) ---------- */
.ap-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--paper) !important;
	padding: 1rem 1.25rem 2rem !important;
	animation: ap-menu-in 0.22s ease-out;
}
body.admin-bar .ap-nav .wp-block-navigation__responsive-container.is-menu-open {
	top: var(--wp-admin--admin-bar--height, 0px) !important;
}
@keyframes ap-menu-in {
	from { opacity: 0; transform: translateY(-8px); }
	to { opacity: 1; transform: none; }
}
.ap-nav .is-menu-open .wp-block-navigation__responsive-close {
	max-width: none !important;
	width: 100%;
}
.ap-nav .is-menu-open .wp-block-navigation__responsive-dialog {
	margin-top: 0 !important;
}
/* Round close button */
.ap-nav .is-menu-open .wp-block-navigation__responsive-container-close {
	top: 0.35rem !important;
	right: 0 !important;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	box-shadow: 0 1px 2px rgba(31, 26, 18, 0.08), 0 4px 12px rgba(31, 26, 18, 0.08);
}
.ap-nav .is-menu-open .wp-block-navigation__responsive-container-close svg {
	width: 22px;
	height: 22px;
}
.ap-nav .is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 3.75rem !important;
	align-items: stretch !important;
	gap: 0 !important;
}
.ap-nav .is-menu-open .wp-block-navigation__container {
	width: 100%;
	align-items: stretch !important;
	gap: 0 !important;
}
.ap-nav .is-menu-open .wp-block-navigation-item {
	text-align: left;
}
/* Main sections: big serif rows with dividers */
.ap-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item {
	width: 100%;
	align-items: stretch !important;
	padding: 0.2rem 0;
	border-bottom: 1px solid var(--wp--preset--color--stone);
}
.ap-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	display: block;
	padding: 0.85rem 0 !important;
	font-family: var(--wp--preset--font-family--newsreader) !important;
	font-size: 1.6rem !important;
	line-height: 1.1;
	text-align: left;
	color: var(--wp--preset--color--ink);
}
/* Sub-sections: two-column tiles */
.ap-nav .is-menu-open .wp-block-navigation__submenu-container {
	position: static !important;
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem !important;
	width: 100% !important;
	min-width: 0 !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 0 1rem !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	opacity: 1 !important;
	visibility: visible !important;
}
.ap-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item {
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
}
.ap-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	display: block;
	box-sizing: border-box;
	width: 100%;
	margin: 0 !important;
	padding: 0.65rem 0.9rem !important;
	border-radius: 10px;
	background: var(--wp--preset--color--white);
	box-shadow: 0 1px 2px rgba(31, 26, 18, 0.06);
	font-family: var(--wp--preset--font-family--inter) !important;
	font-size: 0.95rem !important;
	font-weight: 500;
	text-align: left;
	color: var(--wp--preset--color--ink);
}
.ap-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.ap-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible {
	color: var(--wp--preset--color--trail);
	text-decoration: none !important;
}
.ap-nav .is-menu-open .wp-block-navigation__submenu-icon {
	display: none !important;
}
@media (prefers-reduced-motion: reduce) {
	.ap-nav .wp-block-navigation__responsive-container.is-menu-open {
		animation: none;
	}
}

/* Mobile menu focus: WordPress moves focus to the first link when the menu
   opens, which drew a heavy black box around "Home". Hide that for taps,
   keep a soft green ring for keyboard users. */
.ap-nav .is-menu-open a:focus,
.ap-nav .is-menu-open button:focus,
.ap-nav .is-menu-open .wp-block-navigation-item__content:focus {
	outline: none !important;
	box-shadow: none;
}
.ap-nav .is-menu-open .wp-block-navigation-item__content:focus-visible,
.ap-nav .is-menu-open .wp-block-navigation__responsive-container-close:focus-visible {
	outline: 2px solid rgba(47, 93, 70, 0.45) !important;
	outline-offset: 3px;
	border-radius: 8px;
}
.ap-nav .is-menu-open .wp-block-navigation__responsive-container-close:focus {
	box-shadow: 0 1px 2px rgba(31, 26, 18, 0.08), 0 4px 12px rgba(31, 26, 18, 0.08);
}
.ap-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus {
	box-shadow: 0 1px 2px rgba(31, 26, 18, 0.06);
}
/* Remove the last divider so the list ends cleanly */
.ap-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:last-child {
	border-bottom: 0;
}

/* Touch screens: no focus rings in the header or mobile menu. Phones mark
   tapped/auto-focused items as "focus-visible", which drew a dark box around
   whichever section you tapped. Keyboard users on desktop keep their rings. */
@media (hover: none) and (pointer: coarse) {
	header.wp-block-template-part *:focus,
	header.wp-block-template-part *:focus-visible,
	.ap-nav .wp-block-navigation__responsive-container *:focus,
	.ap-nav .wp-block-navigation__responsive-container *:focus-visible,
	.ap-nav .wp-block-navigation__responsive-container:focus,
	.ap-nav .wp-block-navigation__responsive-container:focus-visible {
		outline: none !important;
	}
	header.wp-block-template-part,
	.ap-nav .wp-block-navigation__responsive-container {
		-webkit-tap-highlight-color: transparent;
	}
}

/* ---------- Who's behind this (pattern: about-strip) ---------- */
.ap-about {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr) auto;
	align-items: center;
	gap: 1.25rem;
	margin-top: 1.25rem;
	padding: 1.1rem 1.5rem;
	border-radius: 12px;
	background: rgba(47, 93, 70, 0.07);
}
.ap-about__photo {
	display: block;
	width: 72px;
	height: 72px;
	overflow: hidden;
	border-radius: 999px;
	box-shadow: 0 2px 8px rgba(31, 26, 18, 0.15);
}
.ap-about__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 15%;
}
.ap-about__kicker {
	margin: 0 0 0.25rem;
	font: 650 0.72rem/1 var(--wp--preset--font-family--inter);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--trail);
}
.ap-about__line {
	margin: 0;
	font-size: 1rem;
	line-height: 1.45;
	color: var(--wp--preset--color--ink);
}
.ap-about__links {
	display: flex;
	gap: 0.5rem;
}
@media (max-width: 700px) {
	.ap-about {
		grid-template-columns: 56px minmax(0, 1fr);
	}
	.ap-about__photo {
		width: 56px;
		height: 56px;
	}
	.ap-about__links {
		grid-column: 1 / -1;
	}
}

/* ---------- Footer newsletter ---------- */
.ap-footnews {
	max-width: 300px;
	align-self: flex-start;
}
.ap-footnews__label {
	margin: 0 0 0.5rem;
	font: 650 0.72rem/1 var(--wp--preset--font-family--inter);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.6);
}
.ap-footnews__line {
	margin: 0 0 0.9rem;
	font-size: 1.05rem;
	line-height: 1.4;
	color: var(--wp--preset--color--white);
}
.ap-footnews .ap-nbtn--solid {
	box-shadow: none;
}
.ap-footnews .ap-newsband__thanks {
	margin: 0;
}
.ap-footnews.is-subscribed .ap-footnews__join {
	display: none;
}
@media (max-width: 800px) {
	.ap-footnews {
		max-width: none;
	}
}

/* ---------- Around the camp: balanced columns ---------- */
.ap-campband-wrap {
	margin-top: 1.5rem !important;
	padding-top: 0 !important;
}
.home .ap-strip--footer {
	padding-top: 0.5rem !important;
}
.home .ap-strip--footer .ap-strip__cols {
	align-items: start;
}
@media (min-width: 801px) {
	.home .ap-strip--footer .ap-strip__cols {
		grid-template-columns: minmax(0, 5fr) minmax(0, 8fr) !important;
	}
	.home .ap-strip--footer .ap-gear {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		gap: 0 1.5rem;
	}
	.home .ap-strip--footer .ap-gear__car {
		margin: 0 !important;
	}
}
