/* ===== The post layout (every post and topic page since 2026-11-18): editorial posts for Advance PT.
   Keeps the site's teal (--yak-color-primary), plum (--yak-color-accent), Cormorant and Quicksand.
   Adds one face, Source Serif 4, for the words of a post only. ===== */

.aptp-post {
	--w2-text: "Source Serif 4", Georgia, serif;
	--w2-ui: var(--yak-primary-font);          /* Quicksand: labels, buttons, bylines */
	--w2-display: var(--yak-secondary-font);   /* Cormorant: titles */
	--w2-ink: #1b2628;
	--w2-soft: #56656a;
	--w2-teal: var(--yak-color-primary);
	--w2-plum: var(--yak-color-accent);
	--w2-deep: #0a3a44;
	--w2-tint: #eef4f4;
	--w2-rule: rgba(15, 81, 95, 0.16);
	--w2-col: 680px;      /* the words: ~68 characters a line */
	--w2-wide: 1080px;    /* images, related posts, the listing */
	--w2-gutter: 1.25rem;
}

/* A white reading page; the grey-green stays for header edges and footer */
.aptp-post.single-post .site-inner,
.aptp-post.blog .site-inner,
.aptp-post.archive .site-inner {
	background: #fff;
	padding-top: 0;
}
.aptp-post .content-sidebar-wrap { padding-inline: var(--w2-gutter); }
.aptp-post.single-post .content,
.aptp-post.single-post .entry { max-width: none; width: 100%; }

/* ---------- Header: topic, title, byline ---------- */
.aptp-post .entry-header {
	max-width: var(--w2-col);
	margin: 0 auto;
	padding: clamp(3rem, 7vw, 5.5rem) 0 0;
}
.aptp-topic {
	display: inline-block;
	font-family: var(--w2-ui);
	font-size: 1rem;
	font-weight: 600;
	color: var(--w2-teal);
	text-decoration: none;
	margin-bottom: 1rem;
}
a.aptp-topic:hover { text-decoration: underline; text-underline-offset: 4px; }
.aptp-title {
	font-family: var(--w2-display);
	font-weight: 600;
	font-size: clamp(2.6rem, 5.2vw, 4.5rem);
	line-height: 1.02;
	letter-spacing: -0.012em;
	color: var(--w2-deep);
	text-wrap: balance;
	width: min(940px, 100vw - 2 * var(--w2-gutter));   /* may run past the text column on the right */
	margin: 0 0 2rem;
	text-align: left;
}
.aptp-byline {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	padding: 1.1rem 0;
	border-top: 1px solid var(--w2-rule);
	border-bottom: 1px solid var(--w2-rule);
	font-family: var(--w2-ui);
	font-size: 0.98rem;
	line-height: 1.4;
}
.aptp-byline-photo {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
	object-position: center 20%;
	flex: none;
}
.aptp-byline-text { display: flex; flex-direction: column; gap: 0.15rem; }
.aptp-byline-name { font-weight: 600; color: var(--w2-ink); }
.aptp-byline-name a { color: inherit; text-decoration: none; }
.aptp-byline-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.aptp-cred { font-weight: 400; color: var(--w2-soft); margin-left: 0.45rem; }
.aptp-byline-meta { color: var(--w2-soft); }

/* ---------- The event card ---------- */
.aptp-event {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 1.5rem;
	align-items: center;
	margin: 2rem 0 0;
	padding: 1.25rem 1.5rem 1.25rem 1.25rem;
	background: var(--w2-tint);
	border-radius: 10px;
	font-family: var(--w2-ui);
}
.aptp-event-date {
	display: grid;
	justify-items: center;
	min-width: 6.25rem;
	padding: 0.9rem 0.75rem 0.8rem;
	border-radius: 8px;
	background: var(--w2-teal);
	color: #fff;
	line-height: 1;
}
.aptp-event-date .m { font-size: 0.95rem; font-weight: 600; }
.aptp-event-date .d { font-family: var(--w2-display); font-weight: 600; font-size: 3.4rem; line-height: 0.95; margin: 0.1rem 0 0.2rem; }
.aptp-event-date .w { font-size: 0.85rem; opacity: 0.85; }
.aptp-event-body p { margin: 0 0 0.35rem; font-size: 1.02rem; line-height: 1.45; color: var(--w2-ink); }
.aptp-event-what { font-weight: 700; font-size: 1.15rem !important; }
.aptp-event-where, .aptp-event-note { color: var(--w2-soft) !important; }
.aptp-event .aptp-btn { margin-top: 0.75rem; }
.aptp-event.is-past { background: #f3f4f3; }
.aptp-event.is-past .aptp-event-date { background: #8a9699; }

/* ---------- Buttons, in the header's own style ---------- */
.aptp-btn {
	display: inline-block;
	padding: 0.8rem 1.35rem;
	border-radius: var(--yak-radius);
	background: var(--w2-teal);
	color: #fff;
	font-family: var(--w2-ui);
	font-weight: 600;
	font-size: 0.98rem;
	text-decoration: none;
	transition: background-color 0.2s ease;
}
.aptp-btn:hover, .aptp-btn:focus-visible { background: var(--w2-deep); color: #fff; }
.aptp-btn.is-light { background: #fff; color: var(--w2-deep); }
.aptp-btn.is-light:hover { background: var(--w2-tint); color: var(--w2-deep); }
.aptp-btn.is-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.7); }
.aptp-btn.is-ghost:hover { background: rgba(255,255,255,0.1); }
.aptp-btn:focus-visible, .aptp-post a:focus-visible { outline: 3px solid var(--w2-plum); outline-offset: 3px; }

/* ---------- The featured image: wide, whole, no frame ---------- */
.aptp-hero {
	width: min(var(--w2-wide), 100vw - 2 * var(--w2-gutter));
	margin: 2.75rem 0 0 50%;
	transform: translateX(-50%);
	text-align: center;
}
.aptp-hero-img {
	display: inline-block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: min(640px, 80vw);
	border-radius: 6px;
	vertical-align: top;
}

/* ---------- The words ---------- */
.aptp-post.single-post .entry-content {
	max-width: var(--w2-col);
	margin: 3rem auto 0;
	font-family: var(--w2-text);
	font-optical-sizing: auto;
	font-size: 1.25rem;          /* 20px */
	line-height: 1.7;
	color: var(--w2-ink);
	text-wrap: pretty;
}
.aptp-post.single-post .entry-content p { margin: 0 0 1.4rem; }
.aptp-post.single-post .entry-content > p:first-child,
.aptp-post.single-post .entry-content > p:first-of-type:not(:has(img:only-child)) {
	font-size: 1.4rem;           /* the opening paragraph reads as the lede */
	line-height: 1.55;
	margin-bottom: 1.75rem;
}
.aptp-post.single-post .entry-content strong, .aptp-post.single-post .entry-content b { font-weight: 600; }
.aptp-post.single-post .entry-content a {
	color: var(--w2-teal);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	text-decoration-color: rgba(15, 81, 95, 0.45);
	overflow-wrap: anywhere;
}
.aptp-post.single-post .entry-content a:hover { text-decoration-color: currentColor; text-decoration-thickness: 2px; }
.aptp-post.single-post .entry-content h2 {
	font-family: var(--w2-display);
	font-weight: 600;
	font-size: 2.15rem;
	line-height: 1.12;
	color: var(--w2-deep);
	margin: 3.25rem 0 0.9rem;
}
.aptp-post.single-post .entry-content h3,
.aptp-post.single-post .entry-content h4 {
	font-family: var(--w2-ui);
	font-weight: 700;
	font-size: 1.15rem;
	line-height: 1.35;
	color: var(--w2-ink);
	margin: 2.5rem 0 0.6rem;
}
.aptp-post.single-post .entry-content ul,
.aptp-post.single-post .entry-content ol { padding-left: 1.4rem; margin: 0 0 1.6rem; }
.aptp-post.single-post .entry-content li { margin: 0 0 0.55rem; padding-left: 0.2rem; }
.aptp-post.single-post .entry-content li::marker { color: var(--w2-teal); font-weight: 600; }
.aptp-post.single-post .entry-content blockquote {
	margin: 2.5rem 0;
	padding: 0 0 0 1.5rem;
	border-left: 3px solid var(--w2-teal);
	font-family: var(--w2-display);
	font-style: italic;
	font-size: 1.75rem;
	line-height: 1.3;
	color: var(--w2-deep);
}
.aptp-post.single-post .entry-content p:empty { display: none; }
.aptp-post.single-post .entry-content::after { content: ""; display: table; clear: both; }

/* Photos inside a post */
.aptp-post.single-post .entry-content img { border-radius: 4px; height: auto; }
.aptp-post.single-post .entry-content .aligncenter,
.aptp-post.single-post .entry-content figure.wp-block-image { margin: 2.5rem auto; }
.aptp-post.single-post .entry-content .alignleft { float: left; max-width: min(44%, 300px); margin: 0.45rem 1.75rem 1rem 0; }
.aptp-post.single-post .entry-content .alignright { float: right; max-width: min(44%, 300px); margin: 0.45rem 0 1rem 1.75rem; }
.aptp-post.single-post .entry-content .wp-caption { max-width: 100%; width: auto !important; }
.aptp-post.single-post .entry-content .wp-caption-text,
.aptp-post.single-post .entry-content figcaption {
	font-family: var(--w2-ui); font-size: 0.9rem; line-height: 1.45; color: var(--w2-soft); margin-top: 0.6rem; text-align: left;
}
.aptp-post.single-post .entry-content table { display: block; max-width: 100%; overflow-x: auto; height: auto !important; font-family: var(--w2-ui); font-size: 1rem; }
.aptp-post.single-post .entry-content pre,
.aptp-post.single-post .entry-content [style*="white-space"] { white-space: pre-wrap !important; }
.aptp-post .aptp-gallery .gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.75rem; margin: 2.5rem 0; }
.aptp-post .aptp-gallery .gallery br { display: none; }
.aptp-post .aptp-gallery .gallery-item { margin: 0; width: auto !important; }
.aptp-post .aptp-gallery img { width: 100%; border: 0 !important; }

/* ---------- After the post ---------- */
.aptp-post .entry-footer { max-width: var(--w2-col); margin: 3rem auto 0; }
.aptp-topics { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem 1rem; padding-top: 1.5rem; border-top: 1px solid var(--w2-rule); font-family: var(--w2-ui); }
.aptp-topics-label { font-size: 0.95rem; font-weight: 600; color: var(--w2-soft); }
.aptp-topics ul { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.aptp-topics li { margin: 0; }
.aptp-topics a {
	display: inline-block; padding: 0.3rem 0.85rem; border-radius: 999px;
	background: var(--w2-tint); color: var(--w2-deep); font-size: 0.92rem; text-decoration: none;
}
.aptp-topics a:hover { background: #dde9ea; }

.aptp-author {
	max-width: var(--w2-col);
	margin: 3rem auto 0;
	display: grid;
	grid-template-columns: 112px 1fr;
	gap: 1.5rem;
	align-items: start;
}
.aptp-author-photo { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; object-position: center 20%; }
.aptp-author-name { font-family: var(--w2-display); font-weight: 600; font-size: 1.8rem; line-height: 1.1; color: var(--w2-deep); margin: 0.3rem 0 0.25rem; }
.aptp-author-name a { color: inherit; text-decoration: none; }
.aptp-author-name a:hover { text-decoration: underline; text-underline-offset: 4px; }
.aptp-author .aptp-cred { display: block; margin: 0 0 0.75rem; font-family: var(--w2-ui); font-size: 0.95rem; }
.aptp-author-bio { font-family: var(--w2-text); font-size: 1.08rem; line-height: 1.6; color: var(--w2-ink); margin: 0; }

/* The clinic's next step: a brand panel, the one place the teal fills */
.aptp-next {
	width: min(var(--w2-wide), 100vw - 2 * var(--w2-gutter));
	margin: 4rem 0 0 50%;
	transform: translateX(-50%);
	background: var(--w2-teal);
	border-radius: 10px;
	color: #fff;
}
.aptp-next-inner {
	max-width: var(--w2-col);
	margin: 0 auto;
	padding: clamp(2.25rem, 5vw, 3.25rem) var(--w2-gutter);
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.5rem 2rem;
	align-items: center;
}
.aptp-next-title { grid-column: 1; font-family: var(--w2-display); font-weight: 600; font-size: 2.4rem; line-height: 1.05; margin: 0; color: #fff; }
.aptp-next p { grid-column: 1; margin: 0; font-family: var(--w2-ui); font-size: 1.08rem; line-height: 1.5; color: rgba(255,255,255,0.9); }
.aptp-next p a { color: #fff; font-weight: 600; text-underline-offset: 3px; }
.aptp-next-actions { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 0.6rem; }
.aptp-next-actions .aptp-btn { text-align: center; }

/* ---------- Cards: related posts and the listing ---------- */
.aptp-related {
	width: min(var(--w2-wide), 100vw - 2 * var(--w2-gutter));
	margin: 4.5rem 0 5rem 50%;
	transform: translateX(-50%);
}
.aptp-related-title { font-family: var(--w2-display); font-weight: 600; font-size: 2.15rem; color: var(--w2-deep); margin: 0 0 1.5rem; }
.aptp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 2rem; }
.aptp-card { margin: 0; background: none; box-shadow: none; }
.aptp-card-link { display: flex; flex-direction: column; gap: 1rem; color: inherit; text-decoration: none; }
.aptp-media { aspect-ratio: 3 / 2; border-radius: 6px; overflow: hidden; background: var(--w2-tint); }
.aptp-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.aptp-card-link:hover .aptp-media img { transform: scale(1.025); }
.aptp-card-body .aptp-topic { font-size: 0.92rem; margin-bottom: 0.4rem; }
.aptp-card-title {
	font-family: var(--w2-display); font-weight: 600; font-size: 1.6rem; line-height: 1.12; color: var(--w2-deep);
	margin: 0 0 0.5rem; text-wrap: balance;
}
.aptp-card-link:hover .aptp-card-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.aptp-when { display: block; font-family: var(--w2-ui); font-size: 0.92rem; color: var(--w2-soft); }
.aptp-when.is-event { color: var(--w2-plum); font-weight: 600; }
.aptp-card-excerpt { font-family: var(--w2-text); font-size: 1.1rem; line-height: 1.6; color: var(--w2-ink); margin: 0.9rem 0 0; }

/* Title cards: the post has no image, so its title is the image */
.aptp-titlecard {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 1.25rem 1.4rem 1.4rem;
	color: #fff;
	background: var(--w2-teal);
}
.aptp-titlecard.aptp-tone-plum { background: var(--w2-plum); }
.aptp-titlecard.aptp-tone-deep { background: var(--w2-deep); }
.aptp-titlecard { justify-content: flex-end; }
.aptp-titlecard-topic {
	position: relative; font-family: var(--w2-display); font-weight: 500; font-style: italic;
	font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.05; max-width: 85%; text-wrap: balance;
}
.aptp-titlecard-mark { position: absolute; right: -18%; top: -30%; width: 70%; color: rgba(255,255,255,0.12); }
.aptp-card.is-lead .aptp-titlecard-topic { font-size: clamp(2.4rem, 4vw, 3.4rem); }
.aptp-media.is-whole { display: flex; align-items: center; justify-content: center; padding: 1rem; }
.aptp-media.is-whole img { height: auto; object-fit: contain; }
.aptp-nowrap { white-space: nowrap; }

/* The listing */
.aptp-post.blog .yak-blog-page-content, .aptp-post.blog h1.archive-title { max-width: var(--w2-wide); margin-inline: auto; }
.aptp-post.blog .entry-title, .aptp-post.blog .archive-description h1 { font-family: var(--w2-display); }
.aptp-listing { max-width: var(--w2-wide); margin: 0 auto; padding: 0 0 4rem; }
.aptp-post.blog .content > .entry-content:first-child, .aptp-post.blog .yak-blog-page-content { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.aptp-post.blog h1, .aptp-post.blog .archive-title { font-family: var(--w2-display); font-weight: 600; color: var(--w2-deep); font-size: clamp(2.6rem, 5vw, 4rem); text-align: left; max-width: var(--w2-wide); margin: clamp(2.5rem, 6vw, 4.5rem) auto 2.5rem; }
.aptp-listing-head { margin-bottom: 2.5rem; }
.aptp-grid.is-listing { gap: 3.25rem 2rem; }
.aptp-card.is-lead { grid-column: 1 / -1; }
.aptp-card.is-lead .aptp-card-link { display: grid; grid-template-columns: 7fr 5fr; gap: 2.5rem; align-items: center; }
.aptp-card.is-lead .aptp-card-title { font-size: clamp(2.2rem, 3.6vw, 3.25rem); line-height: 1.04; }
.aptp-card.is-lead .aptp-media { aspect-ratio: 16 / 10; }
.aptp-post .archive-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; list-style: none; padding: 0; margin: 3.5rem 0 0; font-family: var(--w2-ui); }
.aptp-post .archive-pagination li a { display: block; padding: 0.45rem 0.95rem; border-radius: var(--yak-radius); text-decoration: none; color: var(--w2-deep); }
.aptp-post .archive-pagination li a:hover { background: var(--w2-tint); }
.aptp-post .archive-pagination li.active a { background: var(--w2-teal); color: #fff; }

/* ---------- Phones and tablets ---------- */
@media (max-width: 900px) {
	.aptp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.aptp-card.is-lead .aptp-card-link { grid-template-columns: 1fr; gap: 1.25rem; }
}
@media (max-width: 640px) {
	.aptp-post { --w2-gutter: 1rem; }
	.aptp-post .entry-header { padding-top: 2.25rem; }
	.aptp-title { font-size: clamp(2.3rem, 9.5vw, 2.9rem); margin-bottom: 1.5rem; }
	.aptp-cred { display: block; margin-left: 0; }
	.aptp-event { grid-template-columns: 4.5rem 1fr; gap: 1rem; align-items: start; padding: 1rem; }
	.aptp-event-date { min-width: 0; padding: 0.6rem 0.4rem 0.55rem; }
	.aptp-event-date .d { font-size: 2.3rem; }
	.aptp-event-date .w { font-size: 0.72rem; }
	.aptp-event-what { font-size: 1.05rem !important; }
	.aptp-hero { margin-top: 2rem; }
	.aptp-post.single-post .entry-content { font-size: 1.15rem; margin-top: 2rem; }
	.aptp-post.single-post .entry-content > p:first-child,
	.aptp-post.single-post .entry-content > p:first-of-type:not(:has(img:only-child)) { font-size: 1.28rem; }
	.aptp-post.single-post .entry-content .alignleft,
	.aptp-post.single-post .entry-content .alignright { float: none; max-width: 100%; margin: 0.5rem auto 1.5rem; }
	.aptp-author { grid-template-columns: 72px 1fr; gap: 1rem; }
	.aptp-author-photo { width: 72px; height: 72px; }
	.aptp-next-inner { grid-template-columns: 1fr; }
	.aptp-next-actions { grid-column: 1; grid-row: auto; flex-direction: row; flex-wrap: wrap; margin-top: 1rem; }
	.aptp-grid { grid-template-columns: 1fr; gap: 2.25rem; }
}
@media (prefers-reduced-motion: reduce) {
	.aptp-media img, .aptp-btn { transition: none; }
}

/* Structure found in old posts (see the_content filter) */
.aptp-post.single-post .entry-content .aptp-lede-from-heading {
	font-size: 1.4rem; line-height: 1.55; font-weight: 400; margin-bottom: 1.75rem;
}
.aptp-post.single-post .entry-content .aptp-lede-from-heading em:only-child { font-style: normal; }
.aptp-post.single-post .entry-content h3.aptp-auto-head {
	font-family: var(--w2-ui); font-weight: 700; font-size: 1.12rem; line-height: 1.35; letter-spacing: 0.01em;
	color: var(--w2-deep); margin: 2.4rem 0 0.55rem;
}
@media (max-width: 640px) {
	.aptp-post.single-post .entry-content .aptp-lede-from-heading { font-size: 1.28rem; }
}

/* ===== Round 3 (cold review): the header is a region; the ending is the clinic's ===== */

/* Paper, not pure white, all the way to the footer */
.aptp-post { --w2-paper: #f8faf9; }
body.aptp-post,
.aptp-post.single-post .site-inner,
.aptp-post.blog .site-inner,
.aptp-post.archive .site-inner { background: var(--w2-paper); padding-bottom: 0; }

/* The band: today's teal banner, kept, now carrying topic, title, byline (and the event).
   It starts right under the site header: the theme's own top padding on the entry header would leave a pale strip. */
body.aptp-post.single-post .site-inner .entry-header { padding-top: 0; margin-top: 0; }
body.aptp-post.single-post .site-inner .content-sidebar-wrap { padding-top: 0; }
.aptp-head {
	position: relative;
	isolation: isolate;
	padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.75rem);
	color: #fff;
}
.aptp-head::before {
	content: "";
	position: absolute;
	inset: 0 calc(50% - 50vw);
	background: var(--w2-teal);
	z-index: -1;
}
.aptp-head:has(+ .aptp-hero) { padding-bottom: clamp(6rem, 11vw, 9rem); }
.aptp-head .aptp-topic { color: #bfe2e6; }
.aptp-head .aptp-title { color: #fff; margin-bottom: 1.75rem; }
.aptp-post article.entry:not(.has-post-thumbnail) .aptp-title { font-size: clamp(2.8rem, 6vw, 5.25rem); }
.aptp-head .aptp-byline { border: 0; padding: 0; }
.aptp-head .aptp-byline-photo { box-shadow: 0 0 0 2px rgba(255,255,255,0.85); }
.aptp-head .aptp-byline-name, .aptp-head .aptp-byline-name a { color: #fff; }
.aptp-head .aptp-cred, .aptp-head .aptp-byline-meta { color: rgba(255,255,255,0.78); }
.aptp-head .aptp-event { background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.18); }
.aptp-head .aptp-event.is-past { background: rgba(255,255,255,0.92); }
.aptp-event.is-past .aptp-event-date { background: #5d7076; }   /* 5:1 with white */

/* The image overlaps the band's lower edge */
.aptp-hero { margin-top: calc(-1 * clamp(4.5rem, 8vw, 6.5rem)); position: relative; z-index: 1; }
.aptp-hero-img { box-shadow: 0 18px 44px rgba(10, 58, 68, 0.22); }

/* Headings with weight: h2 and found subheads in Cormorant, a clear step above the text */
.aptp-post.single-post .entry-content h2 { font-size: clamp(2.2rem, 3.2vw, 2.75rem); margin-top: 4rem; }
.aptp-post.single-post .entry-content h3,
.aptp-post.single-post .entry-content h4,
.aptp-post.single-post .entry-content h3.aptp-auto-head {
	font-family: var(--w2-display); font-weight: 600; font-size: clamp(1.55rem, 2.2vw, 1.75rem);
	line-height: 1.15; letter-spacing: 0; color: var(--w2-deep); margin: 2.75rem 0 0.6rem;
}

/* Author: the photo and the bio */
.aptp-author { grid-template-columns: 96px 1fr; align-items: center; padding-top: 2.25rem; border-top: 1px solid var(--w2-rule); }
.aptp-author-photo { width: 96px; height: 96px; }
.aptp-author-bio { font-size: 1.05rem; color: var(--w2-soft); }

/* The clinic's next step, full width of its panel */
.aptp-next-inner { max-width: none; padding: clamp(2.25rem, 5vw, 3.5rem); grid-template-columns: 1fr auto; }
.aptp-next-copy { display: grid; gap: 0.6rem; }
.aptp-next-title { font-size: clamp(2.2rem, 3.4vw, 2.75rem); }
.aptp-next-title a { color: #fff; text-decoration: none; }
.aptp-next-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.aptp-next-actions { flex-direction: row; grid-row: auto; grid-column: 2; }
.aptp-related-title { font-size: clamp(2.2rem, 3.2vw, 2.75rem); }

/* Motion: transform and opacity only */
.aptp-btn { transition: none; }

@media (max-width: 640px) {
	.aptp-head { padding-top: 2.25rem; }
	.aptp-post article.entry:not(.has-post-thumbnail) .aptp-title { font-size: clamp(2.4rem, 10vw, 3rem); }
	.aptp-next-inner { grid-template-columns: 1fr; padding: 2rem 1.25rem; }
	.aptp-next-actions { grid-column: 1; margin-top: 0.5rem; }
	.aptp-author { grid-template-columns: 72px 1fr; }
	.aptp-author-photo { width: 72px; height: 72px; }
}

/* ===== The program panel at the end of every post ===== */
.aptp-next { display: grid; grid-template-columns: 1fr; overflow: hidden; }
.aptp-next.has-img { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.aptp-program-media { display: block; min-height: 100%; }
.aptp-program-img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; }
.aptp-next-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; padding: clamp(2.25rem, 4.5vw, 3.5rem); }
.aptp-next-title { font-size: clamp(2.2rem, 3.4vw, 2.9rem); }
.aptp-next-desc { font-family: var(--w2-text) !important; font-size: 1.15rem !important; line-height: 1.6 !important; color: rgba(255,255,255,0.92) !important; max-width: 34rem; margin: 0 !important; }
.aptp-next-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; flex-direction: row; }
.aptp-next-call { font-size: 0.98rem !important; color: rgba(255,255,255,0.8) !important; margin: 0.25rem 0 0 !important; }
.aptp-next-call a { color: #fff; font-weight: 600; text-underline-offset: 3px; }
@media (max-width: 760px) {
	.aptp-next.has-img { grid-template-columns: 1fr; }
	.aptp-program-img { min-height: 0; aspect-ratio: 16 / 9; height: auto; }
	.aptp-next-inner { padding: 1.75rem 1.25rem 2rem; }
}

/* ===== The blog index (round 4): events, latest, a shelf per program, every post by year ===== */
.aptp-post.blog .site-inner { padding-top: 0; }
.aptp-post.blog .content-sidebar-wrap { padding-inline: var(--w2-gutter); }
.aptp-post.blog h1.archive-title, .aptp-post.blog .archive-description { display: none; }   /* the band carries the title */

.aptp-index-head { position: relative; isolation: isolate; color: #fff; padding: clamp(3rem, 6vw, 4.75rem) 0 clamp(2.25rem, 4vw, 3rem); }
.aptp-index-head::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); background: var(--w2-teal); z-index: -1; }
.aptp-index-head-inner { max-width: var(--w2-wide); margin: 0 auto; }
.aptp-index-head .aptp-title { color: #fff; font-size: clamp(3rem, 6.5vw, 5.5rem); margin: 0 0 0.75rem; width: auto; }
.aptp-index-head .aptp-topic { color: #bfe2e6; }
.aptp-index-sub { font-family: var(--w2-text); font-size: 1.25rem; line-height: 1.5; color: rgba(255,255,255,0.88); margin: 0 0 2rem; }
.aptp-index-sub a { color: #fff; text-underline-offset: 4px; }
.aptp-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; font-family: var(--w2-ui); }
.aptp-chips a {
	display: inline-flex; align-items: baseline; gap: 0.45rem; padding: 0.5rem 1rem; border-radius: 999px;
	color: #fff; text-decoration: none; font-size: 0.98rem; font-weight: 600; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.45);
}
.aptp-chips a span { font-weight: 400; opacity: 0.75; font-size: 0.9rem; }
.aptp-chips a:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.aptp-chips a[aria-current="page"] { background: #fff; color: var(--w2-deep); box-shadow: none; }

.aptp-index { max-width: var(--w2-wide); margin: 0 auto; padding-bottom: 5rem; }
.aptp-shelf { padding-top: clamp(3rem, 6vw, 4.5rem); }
.aptp-shelf + .aptp-shelf { border-top: 1px solid var(--w2-rule); margin-top: clamp(3rem, 6vw, 4.5rem); }
.aptp-shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.aptp-shelf-title { font-family: var(--w2-display); font-weight: 600; font-size: clamp(2.3rem, 3.6vw, 3rem); line-height: 1.05; color: var(--w2-deep); margin: 0 0 1.75rem; }
.aptp-shelf-head .aptp-shelf-title { margin-bottom: 0.6rem; }
.aptp-shelf-title a { color: inherit; text-decoration: none; }
.aptp-shelf-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.aptp-shelf-all { font-family: var(--w2-ui); font-weight: 600; color: var(--w2-teal); text-underline-offset: 4px; }
.aptp-shelf-desc { font-family: var(--w2-text); font-size: 1.12rem; line-height: 1.55; color: var(--w2-soft); max-width: 44rem; margin: 0 0 2rem; }

/* Coming up */
.aptp-events { display: grid; gap: 1rem; }
.aptp-event-row {
	display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center;
	padding: 1.1rem 1.5rem 1.1rem 1.1rem; border-radius: 10px; background: #fff; box-shadow: 0 1px 0 var(--w2-rule), 0 8px 24px rgba(10,58,68,0.07);
	color: inherit; text-decoration: none;
}
.aptp-event-row .aptp-event-date { min-width: 5.5rem; }
.aptp-event-row-body { display: grid; gap: 0.35rem; }
.aptp-event-row .aptp-card-title { margin: 0; font-size: clamp(1.6rem, 2.4vw, 2rem); }
.aptp-event-row:hover .aptp-card-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.aptp-event-row-go { font-family: var(--w2-ui); font-weight: 600; padding: 0.7rem 1.2rem; border-radius: var(--yak-radius); background: var(--w2-teal); color: #fff; }

/* Latest: one lead, two beside it */
.aptp-grid.is-latest { grid-template-columns: 2fr 1fr 1fr; gap: 2rem; align-items: start; }
.aptp-grid.is-latest .aptp-card.is-lead { grid-column: auto; }
.aptp-grid.is-latest .aptp-card.is-lead .aptp-card-link { display: flex; }
.aptp-grid.is-latest .aptp-card.is-lead .aptp-media { aspect-ratio: 3 / 2; }
.aptp-grid.is-latest .aptp-card.is-lead .aptp-card-title { font-size: clamp(2rem, 3vw, 2.6rem); }

/* Shelves: four across */
.aptp-grid.is-shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem; }
.aptp-grid.is-shelf .aptp-card-title { font-size: 1.35rem; }
.aptp-grid.is-shelf .aptp-titlecard-topic { font-size: 1.5rem; }

/* Every post, by year: the titles are the design */
.aptp-year { display: grid; grid-template-columns: 9rem 1fr; gap: 0 2rem; padding: 1.5rem 0; border-top: 1px solid var(--w2-rule); }
.aptp-year-num { font-family: var(--w2-display); font-weight: 500; font-size: 2.6rem; line-height: 1; color: var(--w2-teal); margin: 0.35rem 0 0; position: sticky; top: 7rem; align-self: start; }
.aptp-rows { list-style: none; margin: 0; padding: 0; }
.aptp-rows li { margin: 0; }
.aptp-rows a {
	display: grid; grid-template-columns: 1fr 13rem 4.5rem; gap: 1.5rem; align-items: baseline;
	padding: 0.75rem 0; border-bottom: 1px solid rgba(15,81,95,0.09); color: inherit; text-decoration: none;
}
.aptp-rows li:last-child a { border-bottom: 0; }
.aptp-row-title { font-family: var(--w2-display); font-weight: 600; font-size: 1.4rem; line-height: 1.2; color: var(--w2-deep); }
.aptp-rows a:hover .aptp-row-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.aptp-row-topic, .aptp-row-date { font-family: var(--w2-ui); font-size: 0.92rem; color: var(--w2-soft); }
.aptp-row-date { text-align: right; font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
	.aptp-grid.is-latest { grid-template-columns: 1fr 1fr; }
	.aptp-grid.is-latest .aptp-card.is-lead { grid-column: 1 / -1; }
	.aptp-grid.is-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.aptp-rows a { grid-template-columns: 1fr 4.5rem; }
	.aptp-row-topic { display: none; }
}
@media (max-width: 640px) {
	.aptp-event-row { grid-template-columns: 4.5rem 1fr; padding: 1rem; gap: 1rem; }
	.aptp-event-row .aptp-event-date { min-width: 0; padding: 0.6rem 0.4rem; }
	.aptp-event-row .aptp-event-date .d { font-size: 2.2rem; }
	.aptp-event-row-go { display: none; }
	.aptp-grid.is-latest, .aptp-grid.is-shelf { grid-template-columns: 1fr; }
	.aptp-year { grid-template-columns: 1fr; }
	.aptp-year-num { position: static; font-size: 2.2rem; margin-bottom: 0.5rem; }
	.aptp-row-title { font-size: 1.25rem; }
}

/* Round 4 fixes */
.aptp-post.blog .aptp-index-head h1.aptp-title { color: #fff; text-align: left; max-width: none; margin: 0 0 0.75rem; font-size: clamp(3rem, 6.5vw, 5.5rem); }
.aptp-post.blog article.aptp-card, .aptp-post.archive article.aptp-card { background: none; box-shadow: none; border-radius: 0; }
.aptp-grid.is-latest { grid-template-columns: 3fr 2fr; grid-auto-rows: auto; gap: 1.75rem 2.5rem; }
.aptp-grid.is-latest .aptp-card.is-lead { grid-row: span 2; }
.aptp-grid.is-latest .aptp-card:not(.is-lead) .aptp-card-link { flex-direction: row; align-items: center; gap: 1.25rem; }
.aptp-grid.is-latest .aptp-card:not(.is-lead) .aptp-media { flex: 0 0 42%; }
.aptp-grid.is-latest .aptp-card:not(.is-lead) .aptp-card-title { font-size: 1.5rem; }
@media (max-width: 640px) {
	.aptp-grid.is-latest { grid-template-columns: 1fr; }
	.aptp-grid.is-latest .aptp-card.is-lead { grid-row: auto; }
}
.aptp-grid.is-latest { grid-template-rows: auto auto 1fr; align-items: start; }
.aptp-grid.is-latest .aptp-card.is-lead { grid-row: 1 / span 3; }
@media (max-width: 640px) {
	.aptp-grid.is-latest .aptp-card.is-lead { grid-row: auto; }
	.aptp-grid.is-shelf { gap: 1.1rem; }
	.aptp-grid.is-shelf .aptp-card-link,
	.aptp-grid.is-latest .aptp-card:not(.is-lead) .aptp-card-link { flex-direction: row; align-items: center; gap: 1rem; }
	.aptp-grid.is-shelf .aptp-media,
	.aptp-grid.is-latest .aptp-card:not(.is-lead) .aptp-media { flex: 0 0 38%; }
	.aptp-grid.is-shelf .aptp-titlecard { padding: 0.75rem; }
	.aptp-grid.is-shelf .aptp-titlecard-topic { font-size: 1.05rem; }
	.aptp-grid.is-shelf .aptp-card-title, .aptp-grid.is-latest .aptp-card:not(.is-lead) .aptp-card-title { font-size: 1.25rem; margin-bottom: 0.3rem; }
	.aptp-grid.is-shelf .aptp-topic { display: none; }
	.aptp-shelf-head { display: block; }
	.aptp-shelf-all { display: inline-block; margin-bottom: 1rem; }
}
.aptp-grid.is-latest { grid-template-rows: auto auto auto 1fr; }
.aptp-grid.is-latest .aptp-card.is-lead { grid-row: 1 / span 4; }
@media (max-width: 640px) { .aptp-grid.is-latest .aptp-card.is-lead { grid-row: auto; } }

/* Round 5 (third review) */
.aptp-when.is-held { color: var(--w2-soft); }
.aptp-card-title, .aptp-row-title { text-wrap: pretty; }
.aptp-grid.is-shelf .aptp-topic { display: none; }   /* the shelf already names the program */
.aptp-index.is-program > .aptp-shelf:first-child { padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.aptp-index.is-program .aptp-card.is-lead .aptp-card-link { align-items: start; }

.aptp-chips a[href$="#archive"] { box-shadow: none; text-decoration: underline; text-underline-offset: 4px; font-weight: 500; }
.aptp-search { display: flex; gap: 0.5rem; margin-top: 1.25rem; max-width: 34rem; }
.aptp-search input[type="search"] {
	flex: 1; min-width: 0; padding: 0.75rem 1rem; border: 0; border-radius: var(--yak-radius);
	font-family: var(--w2-ui); font-size: 1rem; color: var(--w2-ink); background: #fff;
}
.aptp-search button {
	padding: 0.75rem 1.2rem; border: 0; border-radius: var(--yak-radius); background: var(--w2-deep); color: #fff;
	font-family: var(--w2-ui); font-weight: 600; font-size: 1rem; cursor: pointer;
}
.aptp-search input:focus-visible, .aptp-search button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.aptp-event-row .aptp-card-title { color: var(--w2-deep); text-decoration: none; }
.aptp-event-row .aptp-card-title:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* The archive on its own tinted ground: a different seam from the shelves above it */
.aptp-shelf.is-archive { position: relative; isolation: isolate; border-top: 0 !important; padding-bottom: 4rem; }
.aptp-shelf.is-archive::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); background: var(--w2-tint); z-index: -1; }
.aptp-index:has(.is-archive) { padding-bottom: 0; }
.aptp-years { display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; margin: -0.5rem 0 1.75rem; font-family: var(--w2-ui); font-size: 0.98rem; position: sticky; top: 0; padding: 0.75rem 0; background: var(--w2-tint); z-index: 2; }
.aptp-years a { color: var(--w2-teal); text-underline-offset: 3px; }
details.aptp-year { display: block; padding: 0; }
details.aptp-year summary { display: flex; align-items: baseline; gap: 1rem; cursor: pointer; list-style: none; padding: 1.25rem 0 0.75rem; }
details.aptp-year summary::-webkit-details-marker { display: none; }
details.aptp-year summary .aptp-year-num { position: static; margin: 0; }
.aptp-year-count { font-family: var(--w2-ui); font-size: 0.95rem; color: var(--w2-soft); }
details.aptp-year:not([open]) summary .aptp-year-count::after { content: ", show"; color: var(--w2-teal); }
details.aptp-year[open] .aptp-rows { margin: 0 0 0.75rem 11rem; }
details.aptp-year summary .aptp-year-num { min-width: 10rem; }
@media (max-width: 640px) {
	.aptp-event-row { grid-template-columns: 4.5rem 1fr; }
	.aptp-event-row .aptp-btn { grid-column: 1 / -1; justify-self: start; }
	details.aptp-year[open] .aptp-rows { margin-left: 0; }
	details.aptp-year summary .aptp-year-num { min-width: 0; }
	.aptp-years { position: static; }
}

.aptp-search button { text-transform: none; letter-spacing: 0; }

/* back to the new index, after the related posts */
.aptp-post .aptb-i { width: 1.1em; height: 1.1em; flex: none; }
.aptp-back { width: min(var(--w2-wide), 100vw - 2 * var(--w2-gutter)); margin: -2rem 0 4.5rem 50%; transform: translateX(-50%); }
.aptp-back a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #0f515f; text-decoration: none; }
.aptp-back a:hover { text-decoration: underline; text-underline-offset: 4px; }
