/*
Theme Name: Cerebral Appeal III
Theme URI: https://www.cerebralappeal.com
Author: JT Ray
Author URI: https://www.cerebralappeal.com
Description: The third Cerebral Appeal theme. Blue header and footer bars, a split hero with one colour-coded button per section, a full-bleed band of episode cards, a featured-plus-list Thoughts section and an app spotlight. Keeps the navy-and-blue brand, registers the podcast post type, and inherits every Customizer value from Cerebral Appeal II. Standalone: no parent theme.
Version: 3.8.2
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cerebral-appeal-three
Tags: blog, dark, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   1. TOKENS
   --ca-bg matches the bottom edge of hero-banner.png, as in Cerebral Appeal II.
   One accent, blue, for every section. The per-section tokens below are
   kept as hooks but all point at blue; give one its own colour here if
   you ever want sections told apart again.
   ========================================================================== */

:root {
	--ca-bg:          #0C1016;
	--ca-surface:     #141A24;
	--ca-surface-2:   #1B2230;
	--ca-border:      #232C3B;
	--ca-ink:         #12161E;

	--ca-text:        #E9E6DC;
	--ca-text-muted:  #9AA3B4;
	--ca-text-faint:  #6B7384;

	/* The site colour: the light blue of the brain's lines in the logo
	   (sampled from icon.png). To go back to blue, swap these three for:
	     --ca-brand: #D9A441;  --ca-brand-bright: #F2CE84;  --ca-brand-deep: #B9852A;
	   and --ca-brand-rgb for 217, 164, 65. */
	--ca-brand:        #7189AA;
	--ca-brand-bright: #A9BEDB;
	--ca-brand-deep:   #546C8C;
	--ca-brand-rgb:    113, 137, 170;

	--ca-c-thoughts:  var(--ca-brand);
	--ca-c-media:     var(--ca-brand);
	--ca-c-apps:      var(--ca-brand);

	/* Apple's own typefaces, as on apple.com: SF Pro Display for headings,
	   SF Pro Text for body, SF Mono for labels. They can't be licensed as web
	   fonts, and don't need to be: -apple-system and ui-monospace pick them up
	   from every Mac, iPhone and iPad. Other systems get their own UI font
	   (Segoe UI on Windows, Roboto on Android). Nothing is downloaded. */
	--ca-font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--ca-font-body:    -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--ca-font-mono:    ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;

	--ca-radius:    18px;
	--ca-radius-sm: 12px;
	--ca-wrap:      1200px;
	--ca-measure:   720px;
	--ca-gutter:    clamp(16px, 4vw, 32px);
	--ca-gap:       clamp(56px, 8vw, 96px);
}

/* ==========================================================================
   2. RESET AND BASE
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--ca-bg);
	color: var(--ca-text);
	font-family: var(--ca-font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--ca-brand); text-decoration: none; }
a:hover, a:focus { color: var(--ca-brand-bright); }

h1, h2, h3, h4 {
	font-family: var(--ca-font-display);
	font-weight: 600;
	line-height: 1.1;
	margin: 0 0 0.5em;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.15em; }

:focus-visible {
	outline: 2px solid var(--ca-brand);
	outline-offset: 3px;
	border-radius: 4px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.ca-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	background: var(--ca-ink);
	color: var(--ca-brand);
	padding: 12px 18px;
	border-radius: 999px;
	font-weight: 600;
}
.ca-skip-link:focus { left: 12px; top: 12px; }

/* ==========================================================================
   3. LAYOUT PRIMITIVES
   ========================================================================== */

.ca-wrap {
	width: 100%;
	max-width: calc(var(--ca-wrap) + 2 * var(--ca-gutter));
	margin-inline: auto;
	padding-inline: var(--ca-gutter);
}

.ca-measure { max-width: var(--ca-measure); margin-inline: auto; }
/* When one element is both the padded wrap and the reading column (page
   titles), its padding eats into the 720px, so the title sat one gutter to
   the right of the text below it. Add the padding back so they line up. */
.ca-wrap.ca-measure { max-width: calc(var(--ca-measure) + 2 * var(--ca-gutter)); }

.ca-main { display: block; }

.ca-section { padding-block: var(--ca-gap); }
/* Two dark sections back to back (hero, then Thoughts): a hairline between them. */
.ca-hero + .ca-section { border-top: 1px solid var(--ca-border); }

/* A full-bleed blue band, the way beard.fm alternates colour and dark. */
.ca-band {
	background: var(--ca-brand);
	color: var(--ca-ink);
	padding-block: var(--ca-gap);
}

/* Heading + link on one row, the description always on its own row below. */
.ca-section-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px 16px;
	margin-bottom: 28px;
}
.ca-section-head h2 {
	margin: 0;
	font-size: clamp(28px, 3.4vw, 38px);
}
.ca-section-head p {
	grid-column: 1 / -1;
	margin: -4px 0 0;
	color: var(--ca-text-muted);
	max-width: 60ch;
}
.ca-band .ca-section-head p { color: rgba(18, 22, 30, 0.74); }

.ca-eyebrow {
	display: inline-block;
	font-family: var(--ca-font-mono);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ca-accent, var(--ca-brand));
	margin: 0 0 12px;
}

.ca-more {
	font-weight: 600;
	font-size: 15px;
	white-space: nowrap;
}
.ca-more::after { content: " \2192"; }

/* ==========================================================================
   4. BUTTONS — blue pills, like beard.fm
   ========================================================================== */

.ca-btn {
	--ca-pill: var(--ca-brand);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--ca-pill);
	color: var(--ca-ink);
	font-family: var(--ca-font-body);
	font-weight: 600;
	font-size: 16px;
	line-height: 1;
	padding: 13px 22px;
	border: 2px solid var(--ca-pill);
	border-radius: 999px;
	cursor: pointer;
	transition: transform .15s ease, filter .15s ease, background-color .15s ease;
}
.ca-btn:hover, .ca-btn:focus { color: var(--ca-ink); filter: brightness(1.08); transform: translateY(-1px); }

.ca-btn--thoughts { --ca-pill: var(--ca-c-thoughts); }
.ca-btn--media    { --ca-pill: var(--ca-c-media); }
.ca-btn--apps     { --ca-pill: var(--ca-c-apps); }

.ca-btn--ghost {
	background: transparent;
	color: var(--ca-text);
	border-color: var(--ca-border);
}
.ca-btn--ghost:hover, .ca-btn--ghost:focus { color: var(--ca-text); border-color: var(--ca-text-muted); }

/* Dark pill used on blue bands. */
.ca-btn--ink {
	--ca-pill: var(--ca-ink);
	color: var(--ca-brand);
}
.ca-btn--ink:hover, .ca-btn--ink:focus { color: var(--ca-brand-bright); }

.ca-btn--sm { font-size: 14px; padding: 9px 16px; }

.ca-btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ==========================================================================
   5. HEADER — a solid blue bar: mark and name left, nav right
   ========================================================================== */

.ca-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--ca-brand);
	color: var(--ca-ink);
}
.admin-bar .ca-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ca-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .ca-header { top: 0; } }

.ca-header-inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 68px;
}

.ca-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--ca-ink);
	margin-right: auto;
}
.ca-brand:hover, .ca-brand:focus { color: var(--ca-ink); }
.ca-brand img {
	width: 38px;
	height: 38px;
	border-radius: 9px;
	box-shadow: 0 0 0 1px rgba(18, 22, 30, 0.25);
}
.ca-brand-name {
	font-family: var(--ca-font-display);
	font-weight: 600;
	font-size: 21px;
	letter-spacing: -0.02em;
	line-height: 1;
}

.ca-nav-list {
	display: flex;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.ca-nav-list a {
	display: block;
	padding: 8px 14px;
	border-radius: 999px;
	color: var(--ca-ink);
	font-weight: 600;
	font-size: 15px;
}
.ca-nav-list a:hover, .ca-nav-list a:focus { background: rgba(18, 22, 30, 0.12); color: var(--ca-ink); }
.ca-nav-list .current-menu-item > a,
.ca-nav-list .current_page_item > a,
.ca-nav-list .current-menu-ancestor > a,
.ca-nav-list .current-page-ancestor > a { background: var(--ca-ink); color: var(--ca-brand); }

.ca-nav-toggle {
	display: none;
	background: none;
	border: 0;
	padding: 10px;
	margin-right: -10px;
	cursor: pointer;
	color: var(--ca-ink);
}
.ca-nav-toggle-bars { display: grid; gap: 5px; width: 22px; }
.ca-nav-toggle-bars span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.ca-nav-toggle[aria-expanded="true"] .ca-nav-toggle-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ca-nav-toggle[aria-expanded="true"] .ca-nav-toggle-bars span:nth-child(2) { opacity: 0; }
.ca-nav-toggle[aria-expanded="true"] .ca-nav-toggle-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.ca-mobile-nav {
	background: var(--ca-brand);
	border-top: 1px solid rgba(18, 22, 30, 0.15);
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity .2s ease, transform .2s ease;
}
.ca-mobile-nav.is-open { opacity: 1; transform: none; }
.ca-mobile-nav-list { list-style: none; margin: 0; padding: 8px var(--ca-gutter) 16px; }
.ca-mobile-nav-list a {
	display: block;
	padding: 12px 0;
	color: var(--ca-ink);
	font-weight: 600;
	font-size: 18px;
	border-bottom: 1px solid rgba(18, 22, 30, 0.12);
}

@media (max-width: 860px) {
	.ca-nav { display: none; }
	.ca-nav-toggle { display: block; }
}
@media (min-width: 861px) {
	.ca-mobile-nav { display: none !important; }
}

/* ==========================================================================
   6. HERO — split: words and section buttons left, the latest thing right
   ========================================================================== */

.ca-banner img { width: 100%; height: auto; }

.ca-hero { padding-block: clamp(48px, 7vw, 88px); }

.ca-hero-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
	gap: clamp(32px, 5vw, 64px);
	align-items: center;
}

.ca-hero-title {
	font-size: clamp(40px, 5.4vw, 64px);
	line-height: 1.05;
	letter-spacing: -0.03em;
	margin-bottom: 20px;
}
.ca-hero-title em { font-style: normal; color: var(--ca-brand); white-space: nowrap; }

.ca-hero-lede {
	font-size: clamp(17px, 1.6vw, 19px);
	color: var(--ca-text-muted);
	max-width: 46ch;
	margin-bottom: 28px;
}

/* The featured item on the right. */
.ca-spot { position: relative; }
.ca-spot-media {
	position: relative;
	display: block;
	border-radius: var(--ca-radius);
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: var(--ca-surface);
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}
.ca-spot-media img { width: 100%; height: 100%; object-fit: cover; }
.ca-chip {
	position: absolute;
	left: 16px;
	bottom: 16px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 14px;
	border-radius: 999px;
	background: rgba(12, 16, 22, 0.78);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: var(--ca-text);
	font-size: 13px;
	font-weight: 600;
}
.ca-chip::before {
	content: "";
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--ca-accent, var(--ca-brand));
}
.ca-spot-meta {
	margin: 18px 0 6px;
	font-size: 14px;
	color: var(--ca-text-faint);
}
.ca-spot-title {
	font-size: clamp(24px, 2.6vw, 32px);
	margin: 0;
}
.ca-spot-title a { color: var(--ca-text); }
.ca-spot-title a:hover, .ca-spot-title a:focus { color: var(--ca-brand-bright); }

@media (max-width: 900px) {
	.ca-hero-inner { grid-template-columns: 1fr; }
}

/* ==========================================================================
   7. ARTWORK FALLBACK
   Most posts here have no featured image. Rather than a hole, they get a
   generated panel: navy gradient, the brain mark, and the section label.
   ========================================================================== */

.ca-art {
	position: relative;
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background:
		radial-gradient(120% 90% at 20% 0%, rgba(110, 136, 170, 0.22), transparent 60%),
		radial-gradient(90% 80% at 100% 100%, color-mix(in srgb, var(--ca-accent, var(--ca-brand)) 22%, transparent), transparent 65%),
		linear-gradient(160deg, #1A2230, #0C1016);
}
.ca-art img {
	width: 34%;
	max-width: 150px;
	height: auto;
	object-fit: contain;
	border-radius: 18%;
	opacity: 0.95;
}
.ca-art-label {
	position: absolute;
	top: 14px;
	left: 16px;
	font-family: var(--ca-font-mono);
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ca-accent, var(--ca-brand));
}

/* ==========================================================================
   8. CARDS — episode cards (dark tiles on blue) and listing cards
   ========================================================================== */

.ca-card-row {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}
@media (max-width: 1000px) { .ca-card-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .ca-card-row { grid-template-columns: 1fr; } }

.ca-tile {
	display: flex;
	flex-direction: column;
	background: var(--ca-ink);
	color: var(--ca-text);
	border-radius: var(--ca-radius);
	padding: 16px;
	transition: transform .15s ease, box-shadow .15s ease;
}
a.ca-tile:hover, a.ca-tile:focus { color: var(--ca-text); transform: translateY(-3px); box-shadow: 0 18px 36px -20px rgba(0, 0, 0, 0.6); }
.ca-tile-art {
	aspect-ratio: 1 / 1;
	border-radius: var(--ca-radius-sm);
	overflow: hidden;
	margin-bottom: 16px;
	background: var(--ca-surface);
}
.ca-tile-art img { width: 100%; height: 100%; object-fit: cover; }
.ca-tile-art .ca-art img { width: 40%; height: auto; }
.ca-tile-kicker {
	font-weight: 600;
	font-size: 15px;
	color: var(--ca-accent, var(--ca-c-media));
	margin: 0 0 4px;
}
.ca-tile-title {
	font-family: var(--ca-font-body);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0;
	margin: 0 0 12px;
}
.ca-tile-meta {
	margin: auto 0 0;
	font-size: 13px;
	color: var(--ca-text-faint);
}
/* No episodes yet: one wide card instead of a lone tile and a blue hole. */
.ca-tile--empty {
	grid-column: 1 / -1;
	flex-direction: row;
	align-items: center;
	gap: 24px;
	max-width: 720px;
	padding: 20px;
}
.ca-tile--empty .ca-tile-art { flex: 0 0 140px; margin: 0; }
.ca-tile--empty .ca-tile-title { font-family: var(--ca-font-display); font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.ca-tile--empty .ca-tile-meta { font-size: 15px; color: var(--ca-text-muted); }
@media (max-width: 560px) {
	.ca-tile--empty { flex-direction: column; align-items: stretch; }
	.ca-tile--empty .ca-tile-art { flex-basis: auto; }
}

/* Listing cards (Thoughts page, archives, search). */
.ca-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}
@media (max-width: 960px) { .ca-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ca-card-grid { grid-template-columns: 1fr; } }

.ca-card {
	display: flex;
	flex-direction: column;
	background: var(--ca-surface);
	border: 1px solid var(--ca-border);
	border-radius: var(--ca-radius);
	overflow: hidden;
}
.ca-card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ca-surface-2); }
.ca-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.ca-card:hover .ca-card-media > img { transform: scale(1.03); }
.ca-card-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; flex: 1; }
.ca-card-title { font-size: 22px; margin: 0; }
.ca-card-title a { color: var(--ca-text); }
.ca-card-title a:hover, .ca-card-title a:focus { color: var(--ca-brand-bright); }
.ca-card-excerpt { color: var(--ca-text-muted); font-size: 15px; margin: 0; }
.ca-card-link { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 15px; }

.ca-entry-meta {
	margin: 0;
	font-size: 14px;
	color: var(--ca-text-faint);
}
.ca-meta-sep { margin-inline: 8px; }

/* ==========================================================================
   9. THOUGHTS — one big story and a list beside it
   ========================================================================== */

.ca-stories {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 48px);
	align-items: start;
}
@media (max-width: 900px) { .ca-stories { grid-template-columns: 1fr; } }

.ca-story-lead .ca-spot-media { aspect-ratio: 16 / 9; }
.ca-story-lead .ca-spot-title { font-size: clamp(26px, 3vw, 34px); }
.ca-story-lead .ca-excerpt { color: var(--ca-text-muted); margin-top: 10px; }

.ca-story-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ca-story {
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr);
	gap: 16px;
	align-items: center;
	padding: 12px;
	border-radius: var(--ca-radius-sm);
	color: var(--ca-text);
	transition: background-color .15s ease;
}
.ca-story:hover, .ca-story:focus { background: var(--ca-surface); color: var(--ca-text); }
.ca-story-thumb {
	aspect-ratio: 16 / 10;
	border-radius: 10px;
	overflow: hidden;
	background: var(--ca-surface);
}
.ca-story-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ca-story-thumb .ca-art img { width: 38%; }
.ca-story-thumb .ca-art-label { display: none; }
.ca-story-meta { display: block; font-size: 13px; color: var(--ca-text-faint); margin-bottom: 4px; }
.ca-story-title { display: block; font-weight: 600; font-size: 17px; line-height: 1.3; }

/* ==========================================================================
   10. APP SPOTLIGHT and app icon row
   ========================================================================== */

.ca-section--apps { --ca-accent: var(--ca-c-apps); border-top: 1px solid var(--ca-border); }

.ca-app {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 64px);
	align-items: center;
}
@media (max-width: 900px) { .ca-app { grid-template-columns: 1fr; } }

.ca-app-icon {
	width: 76px;
	height: 76px;
	border-radius: 20px;
	margin-bottom: 20px;
	box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
}
.ca-app-title { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 14px; }
.ca-app-text { color: var(--ca-text-muted); font-size: 18px; max-width: 48ch; }
.ca-ticks { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 8px; }
.ca-ticks li { position: relative; padding-left: 30px; }
.ca-ticks li::before {
	content: "";
	position: absolute;
	left: 0; top: 0.3em;
	width: 18px; height: 18px;
	border-radius: 50%;
	background: var(--ca-c-apps) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%2312161E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.ca-app-fine { margin-top: 14px; font-size: 14px; color: var(--ca-text-faint); }

.ca-app-shot {
	border-radius: var(--ca-radius);
	overflow: hidden;
	background: var(--ca-surface);
	aspect-ratio: 4 / 3;
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}
.ca-app-shot img { width: 100%; height: 100%; object-fit: cover; }
.ca-app-shot .ca-art img { width: 30%; border-radius: 22%; }

.ca-app-row {
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	list-style: none;
	margin: 56px 0 0;
	padding: 28px 0 0;
	border-top: 1px solid var(--ca-border);
}
.ca-app-row a { display: grid; justify-items: center; gap: 10px; width: 84px; color: var(--ca-text); font-size: 14px; font-weight: 600; text-align: center; }
.ca-app-row img, .ca-app-row .ca-app-mono { width: 64px; height: 64px; border-radius: 16px; }
.ca-app-mono { display: grid; place-items: center; background: var(--ca-surface-2); color: var(--ca-c-apps); font-family: var(--ca-font-display); font-size: 28px; font-weight: 600; }

/* ==========================================================================
   11. PAGE HEADS, SINGLE, PROSE
   The page wrapper keeps Cerebral Appeal II's classes (.ca-measure .ca-prose)
   so the BAM download page and its Additional CSS render unchanged.
   ========================================================================== */

.ca-page-head { padding-block: clamp(48px, 7vw, 88px) clamp(24px, 3vw, 40px); }
.ca-page-head .ca-eyebrow { margin-bottom: 14px; }
.ca-page-title { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.025em; margin-bottom: 14px; }
.ca-page-desc { color: var(--ca-text-muted); max-width: 60ch; font-size: 18px; }

.ca-list-wrap { padding-bottom: var(--ca-gap); }

.ca-single-media { margin: 0 0 8px; }
.ca-single-media img { width: 100%; border-radius: var(--ca-radius); }

.ca-prose {
	padding-block: clamp(24px, 4vw, 48px);
	font-size: 18px;
	line-height: 1.75;
}
.ca-prose h2 { font-size: clamp(25px, 3vw, 32px); margin-top: 1.7em; }
.ca-prose h3 { font-size: clamp(20px, 2.4vw, 24px); margin-top: 1.5em; }
.ca-prose img,
.ca-prose figure { margin-block: 1.8em; }
.ca-prose img { border-radius: var(--ca-radius-sm); }
.ca-prose figcaption { font-size: 14px; color: var(--ca-text-faint); text-align: center; margin-top: 10px; }
.ca-prose blockquote {
	margin: 1.8em 0;
	padding: 4px 0 4px 24px;
	border-left: 3px solid var(--ca-brand);
	font-family: var(--ca-font-display);
	font-size: 1.15em;
	font-weight: 500;
	color: var(--ca-text);
}
.ca-prose code {
	font-family: var(--ca-font-mono);
	font-size: 0.88em;
	background: var(--ca-surface-2);
	padding: 2px 6px;
	border-radius: 6px;
}
.ca-prose pre {
	background: var(--ca-surface);
	border: 1px solid var(--ca-border);
	border-radius: var(--ca-radius-sm);
	padding: 18px 20px;
	overflow-x: auto;
}
.ca-prose pre code { background: none; padding: 0; }
.ca-prose hr { border: 0; border-top: 1px solid var(--ca-border); margin: 2.4em 0; }
.ca-prose table { width: 100%; border-collapse: collapse; margin-block: 1.8em; }
.ca-prose th, .ca-prose td { border: 1px solid var(--ca-border); padding: 10px 14px; text-align: left; }
.ca-prose th { background: var(--ca-surface); font-family: var(--ca-font-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }

/* Episode player. */
.ca-player {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	background: var(--ca-surface);
	border: 1px solid var(--ca-border);
	border-radius: var(--ca-radius);
	padding: 16px 20px;
	margin-top: 8px;
}
.ca-player audio { flex: 1 1 280px; width: 100%; }
.ca-player-dl { font-size: 14px; font-weight: 600; white-space: nowrap; }

/* Tags. */
.ca-post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-bottom: 24px; }
.ca-post-tags .ca-eyebrow { margin: 0 8px 0 0; }
.ca-post-tags a {
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--ca-surface-2);
	color: var(--ca-text-muted);
	font-size: 14px;
}
.ca-post-tags a:hover, .ca-post-tags a:focus { color: var(--ca-text); }

/* Previous / next. */
.ca-postnav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	padding-block: 24px var(--ca-gap);
	border-top: 1px solid var(--ca-border);
}
.ca-postnav-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 18px 20px;
	border-radius: var(--ca-radius-sm);
	background: var(--ca-surface);
	color: var(--ca-text);
}
.ca-postnav-item:hover, .ca-postnav-item:focus { background: var(--ca-surface-2); color: var(--ca-text); }
.ca-postnav-item .ca-eyebrow { margin: 0; font-size: 11px; }
.ca-postnav-next { grid-column: 2; text-align: right; }
.ca-postnav-title { font-weight: 600; }
@media (max-width: 600px) {
	.ca-postnav { grid-template-columns: 1fr; }
	.ca-postnav-next { grid-column: auto; }
}

/* Pagination. */
.navigation.pagination { margin-top: 48px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border-radius: 999px;
	background: var(--ca-surface);
	color: var(--ca-text);
	font-weight: 600;
}
.page-numbers.current { background: var(--ca-brand); color: var(--ca-ink); }
a.page-numbers:hover, a.page-numbers:focus { background: var(--ca-surface-2); color: var(--ca-text); }

.ca-empty {
	text-align: center;
	padding: 56px 24px;
	background: var(--ca-surface);
	border-radius: var(--ca-radius);
}
.ca-empty h2 { font-size: 28px; }
.ca-empty p { color: var(--ca-text-muted); }

/* Search form. */
.ca-search { display: flex; gap: 10px; margin-top: 24px; }
.ca-search-field {
	flex: 1;
	min-width: 0;
	padding: 12px 18px;
	font: inherit;
	color: var(--ca-text);
	background: var(--ca-surface);
	border: 1px solid var(--ca-border);
	border-radius: 999px;
}
.ca-search-field:focus { outline: none; border-color: var(--ca-brand); }

/* Comments. */
.ca-comments { padding-bottom: var(--ca-gap); }
.ca-comment-list { list-style: none; padding: 0; }
.ca-comment-list .comment-body { padding: 18px 0; border-bottom: 1px solid var(--ca-border); }
.ca-comment-list .avatar { border-radius: 50%; float: left; margin-right: 14px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 12px 14px;
	font: inherit;
	color: var(--ca-text);
	background: var(--ca-surface);
	border: 1px solid var(--ca-border);
	border-radius: var(--ca-radius-sm);
}

/* ==========================================================================
   12. FOOTER — blue again, closing the page the way the header opens it
   ========================================================================== */

.ca-footer {
	background: var(--ca-brand);
	color: var(--ca-ink);
	padding-block: 56px 32px;
}
.ca-footer a { color: var(--ca-ink); }
.ca-footer a:hover, .ca-footer a:focus { color: var(--ca-ink); text-decoration: underline; text-underline-offset: 3px; }

.ca-footer-inner {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 40px;
}
@media (max-width: 760px) { .ca-footer-inner { grid-template-columns: 1fr 1fr; } .ca-footer-brand { grid-column: 1 / -1; } }

.ca-footer .ca-brand { margin-bottom: 14px; }
.ca-footer-tagline { max-width: 42ch; color: rgba(18, 22, 30, 0.78); margin-bottom: 20px; }

.ca-footer-col-title {
	font-family: var(--ca-font-mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	margin: 0 0 14px;
	color: rgba(18, 22, 30, 0.7);
}
.ca-footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ca-footer-col a { font-weight: 600; }

.ca-footer-bottom {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid rgba(18, 22, 30, 0.2);
	font-size: 14px;
	color: rgba(18, 22, 30, 0.75);
}
.ca-copyright { margin: 0; }
.ca-fineprint { margin-top: 10px; }

/* Social icons: dark circles on blue, like beard.fm's row. */
.ca-social { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.ca-social-link {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--ca-ink);
	color: var(--ca-brand) !important;
	transition: transform .15s ease;
}
.ca-social-link:hover, .ca-social-link:focus { transform: translateY(-2px); text-decoration: none !important; }
.ca-social-link svg { width: 18px; height: 18px; fill: currentColor; }
.ca-social--mobile { padding: 0 var(--ca-gutter) 20px; }

/* ==========================================================================
   13. APP PAGES — sticky app bar, version chips, guide sidebar
   On app pages the site header scrolls away and the app bar stays pinned,
   the way beard.fm's app pages work.
   ========================================================================== */

/* The header scrolls away here, so it must not keep the sticky offset that
   .admin-bar .ca-header adds for logged-in users: on a non-sticky header
   that offset just shoves it 32px down, over the app bar. */
.ca-has-appbar .ca-header,
.admin-bar.ca-has-appbar .ca-header { position: relative; top: auto; }

.ca-appbar {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(12, 16, 22, 0.92);
	-webkit-backdrop-filter: saturate(140%) blur(12px);
	backdrop-filter: saturate(140%) blur(12px);
	border-bottom: 1px solid var(--ca-border);
}
.admin-bar .ca-appbar { top: 32px; }
@media (max-width: 782px) { .admin-bar .ca-appbar { top: 46px; } }
@media (max-width: 600px) { .admin-bar .ca-appbar { top: 0; } }

.ca-appbar-inner {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 60px;
}

.ca-appbar-crumbs { display: flex; align-items: center; gap: 10px; min-width: 0; margin-right: auto; }
.ca-appbar-crumbs a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--ca-text);
	font-weight: 600;
	font-size: 15px;
	white-space: nowrap;
}
.ca-appbar-crumbs a:hover, .ca-appbar-crumbs a:focus { color: var(--ca-brand-bright); }
.ca-appbar-root img { width: 22px; height: 22px; border-radius: 6px; box-shadow: 0 0 0 1px var(--ca-border); }
.ca-appbar-app img { width: 26px; height: 26px; border-radius: 7px; }
.ca-appbar-sep { color: var(--ca-text-faint); }

.ca-appbar-nav { display: flex; align-items: center; gap: 8px; }
.ca-appbar-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.ca-appbar-nav li a {
	display: block;
	padding: 7px 12px;
	border-radius: 9px;
	color: var(--ca-text-muted);
	font-size: 15px;
	white-space: nowrap;
}
.ca-appbar-nav li a:hover, .ca-appbar-nav li a:focus { color: var(--ca-text); background: var(--ca-surface-2); }
.ca-appbar-nav li a[aria-current="page"] { color: var(--ca-text); background: var(--ca-surface-2); }
.ca-appbar-dl { flex: none; }

@media (max-width: 760px) {
	.ca-appbar-inner { flex-wrap: wrap; padding-block: 10px 0; min-height: 0; }
	.ca-appbar-root span { display: none; }
	.ca-appbar-nav {
		order: 3;
		flex: 1 1 100%;
		overflow-x: auto;
		scrollbar-width: none;
		padding-bottom: 8px;
		margin-inline: calc(-1 * var(--ca-gutter));
		padding-inline: var(--ca-gutter);
	}
	.ca-appbar-nav::-webkit-scrollbar { display: none; }
	.ca-appbar-nav li a { padding-inline: 10px; }
}

/* Release notes: one chip per version, linking down to its heading. */
.ca-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.ca-chips a {
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--ca-surface);
	border: 1px solid var(--ca-border);
	color: var(--ca-text-muted);
	font-family: var(--ca-font-mono);
	font-size: 13px;
}
.ca-chips a:hover, .ca-chips a:focus { color: var(--ca-ink); background: var(--ca-brand); border-color: var(--ca-brand); }
.ca-release-notes [id^="v"] { scroll-margin-top: 90px; }

/* Guide: article list on the left, reading column on the right. */
.ca-guide {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: clamp(24px, 4vw, 56px);
	align-items: start;
}
.ca-guide .ca-measure { margin-inline: 0; }
.ca-guide-nav {
	position: sticky;
	top: 76px;
	max-height: calc(100vh - 96px);
	overflow-y: auto;
	padding: 32px 0;
	font-size: 15px;
}
.ca-guide-home {
	display: block;
	padding: 8px 12px;
	border-radius: 9px;
	background: var(--ca-surface-2);
	color: var(--ca-brand);
	font-weight: 600;
	margin-bottom: 18px;
}
.ca-guide-list, .ca-guide-list ul { list-style: none; margin: 0; padding: 0; }
.ca-guide-list > li { margin-bottom: 16px; }
.ca-guide-list > li.page_item_has_children > a {
	font-family: var(--ca-font-mono);
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ca-text-faint);
	padding: 0 12px 6px;
}
.ca-guide-list a { display: block; padding: 6px 12px; border-radius: 8px; color: var(--ca-text-muted); }
.ca-guide-list a:hover, .ca-guide-list a:focus { color: var(--ca-text); background: var(--ca-surface); }
.ca-guide-list .current_page_item > a { color: var(--ca-text); background: var(--ca-surface-2); }
@media (max-width: 860px) {
	.ca-guide { grid-template-columns: 1fr; }
	.ca-guide-nav { position: static; max-height: none; padding-bottom: 0; border-bottom: 1px solid var(--ca-border); }
}

/* ==========================================================================
   14. APP FEATURES PAGE — the .ca-feat-* classes used by an app page's own
   content (e.g. bam-features-page.html), modelled on beard.fm's Kan Do page.
   Content comes through the Classic editor's wpautop, which wraps loose
   inline items (an <img>, a <span>, an <a>) in <p>; every rule below allows
   for that wrapper.
   ========================================================================== */

.ca-feat-wrap { padding-bottom: var(--ca-gap); }
.ca-feat p:empty { display: none; }
.ca-feat > p, .ca-feat section > p:not([class]) { margin: 0; }

/* Hero */
.ca-feat-hero {
	text-align: center;
	padding: clamp(48px, 7vw, 88px) 0 40px;
	max-width: 760px;
	margin-inline: auto;
}
.ca-feat-hero img.ca-feat-icon,
.ca-feat-hero .ca-feat-icon {
	width: 104px;
	height: 104px;
	margin: 0 auto 28px;
	border-radius: 23px;
	box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.8);
}
.ca-feat-title {
	font-size: clamp(40px, 6vw, 68px);
	line-height: 1.04;
	letter-spacing: -0.035em;
	margin-bottom: 20px;
}
.ca-feat-lede {
	font-size: clamp(18px, 2vw, 21px);
	color: var(--ca-text-muted);
	max-width: 36em;
	margin: 0 auto 24px;
}
.ca-feat-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	list-style: none;
	padding: 0;
	margin: 0 0 28px;
}
.ca-feat-chips li {
	padding: 4px 12px;
	border-radius: 999px;
	border: 1px solid var(--ca-border);
	background: var(--ca-surface);
	color: var(--ca-text-muted);
	font-size: 13px;
}
.ca-feat-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ca-feat-actions p { margin: 0; display: contents; }
.ca-feat-fine { margin-top: 16px; font-size: 14px; color: var(--ca-text-faint); }

/* The big picture on a blue panel. */
.ca-feat-stage {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: clamp(20px, 4vw, 56px);
	padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 56px);
	border-radius: var(--ca-radius);
	background:
		radial-gradient(80% 120% at 50% 0%, rgba(255, 255, 255, 0.22), transparent 60%),
		linear-gradient(160deg, var(--ca-brand-bright), var(--ca-brand) 55%, var(--ca-brand-deep));
	overflow: hidden;
	box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.ca-feat-stage figure { margin: 0; }
.ca-feat-stage p { margin: 0; }
.ca-feat-stage-main { flex: 0 1 380px; }
.ca-feat-stage-side { flex: 0 1 330px; }
@media (max-width: 600px) { .ca-feat-stage-side { display: none; } }

/* --------------------------------------------------------------------------
   Screenshot crop frames.
   The settings screenshots carry a transparent margin and a macOS shadow
   that's invisible on a dark page; the menu captures carry a square of
   desktop wallpaper. Each <span class="ca-crop"> is sized to the real
   window or menu and the image is shifted inside it, so only the app shows.
   Numbers are the measured pixel bounds of the files in uploads/2026/09:
     window   1556x1308, window at x 111, y 75, 1334x1086
     popover   748x740,  list   at x 73,  y 25,  602x642
     menu      620x496,  menu   at x 47,  y 0,   526x449
   width = image / box, left = -x / box width, top = -y / box height.
   -------------------------------------------------------------------------- */
.ca-crop {
	display: block;
	position: relative;
	overflow: hidden;
	isolation: isolate;
	box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.75), 0 0 0 0.5px rgba(255, 255, 255, 0.12);
}
.ca-crop img {
	position: absolute;
	max-width: none;
	height: auto;
	border-radius: 0;
	margin: 0;
}
.ca-crop--window  { aspect-ratio: 1334 / 1086; border-radius: 2% / 2.46%; }
.ca-crop--window img  { width: 116.642%; left: -8.321%; top: -6.906%; }
.ca-crop--popover { aspect-ratio: 602 / 642; border-radius: 4.3% / 4.03%; }
.ca-crop--popover img { width: 124.252%; left: -12.126%; top: -3.894%; }
.ca-crop--menu    { aspect-ratio: 526 / 449; border-radius: 3.6% / 4.2%; }
.ca-crop--menu img    { width: 117.871%; left: -8.935%; top: 0; }
.ca-feat-stage .ca-crop { box-shadow: 0 30px 60px -20px rgba(18, 22, 30, 0.6), 0 0 0 0.5px rgba(18, 22, 30, 0.25); }

/* Sections */
.ca-feat-section { padding-top: var(--ca-gap); }
.ca-feat-head { max-width: 680px; margin-bottom: 36px; }
.ca-feat-head h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.03em; margin-bottom: 12px; }
.ca-feat-head p:not(.ca-eyebrow) { color: var(--ca-text-muted); font-size: 18px; margin: 0; }

/* Feature cards */
.ca-feat-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}
@media (max-width: 900px) { .ca-feat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ca-feat-cards { grid-template-columns: 1fr; } }
.ca-feat-card {
	display: flex;
	flex-direction: column;
	padding: 22px;
	border-radius: var(--ca-radius);
	background: var(--ca-surface);
	border: 1px solid var(--ca-border);
}
.ca-feat-card > p { margin: 0 0 10px; color: var(--ca-text-muted); font-size: 15px; }
.ca-feat-card > p:last-child { margin: auto 0 0; padding-top: 6px; }
.ca-feat-card h3 { font-size: 19px; letter-spacing: -0.01em; margin: 0 0 8px; }
.ca-feat-glyph {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin-bottom: 14px;
	border-radius: 11px;
	background: rgba(var(--ca-brand-rgb), 0.14);
	color: var(--ca-brand);
	font-size: 20px;
	font-weight: 600;
	line-height: 1;
}

/* Alternating screenshot rows */
.ca-feat-row {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
	scroll-margin-top: 90px;
}
.ca-feat-row + .ca-feat-row { margin-top: clamp(56px, 8vw, 96px); }
.ca-feat-row.is-flip .ca-feat-shot { order: 2; }
.ca-feat-shot { margin: 0; }
.ca-feat-shot p { margin: 0; }
/* .ca-feat-shot holds a .ca-crop frame (see above). */
.ca-feat-copy h3 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.025em; margin-bottom: 12px; }
.ca-feat-copy > p:not(.ca-eyebrow) { color: var(--ca-text-muted); font-size: 17px; }
.ca-feat-copy .ca-ticks { margin-bottom: 0; }
@media (max-width: 860px) {
	.ca-feat-row { grid-template-columns: 1fr; }
	.ca-feat-row.is-flip .ca-feat-shot { order: 0; }
}

/* Spec cards (Kan Do's "platforms") */
.ca-feat-specs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}
@media (max-width: 900px) { .ca-feat-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ca-feat-specs > div {
	padding: 20px 22px;
	border-radius: var(--ca-radius);
	background: var(--ca-surface);
	border: 1px solid var(--ca-border);
}
.ca-feat-specs h3 { font-size: 17px; margin: 0 0 6px; letter-spacing: -0.01em; }
.ca-feat-specs p { margin: 0; color: var(--ca-text-muted); font-size: 15px; }

/* Gallery: a sideways-scrolling strip */
.ca-feat-gallery {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(300px, 46%);
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 12px;
	scrollbar-color: var(--ca-border) transparent;
}
.ca-feat-gallery figure { margin: 0; scroll-snap-align: start; }
.ca-feat-gallery figure p { margin: 0; }
/* Gallery images sit in .ca-crop frames too. */
.ca-feat-gallery figcaption { margin-top: 12px; font-size: 15px; color: var(--ca-text-muted); }
.ca-feat-gallery figcaption strong { display: block; color: var(--ca-text); font-weight: 600; }
@media (max-width: 600px) { .ca-feat-gallery { grid-auto-columns: 85%; } }

/* FAQ accordion */
.ca-feat-faq { display: grid; gap: 10px; max-width: 820px; }
.ca-feat-faq details {
	border-radius: 14px;
	background: var(--ca-surface);
	border: 1px solid var(--ca-border);
}
.ca-feat-faq summary {
	position: relative;
	list-style: none;
	cursor: pointer;
	padding: 16px 52px 16px 20px;
	font-weight: 600;
}
.ca-feat-faq summary::-webkit-details-marker { display: none; }
.ca-feat-faq summary::after {
	content: "";
	position: absolute;
	right: 22px;
	top: 50%;
	width: 9px;
	height: 9px;
	border-right: 2px solid var(--ca-text-muted);
	border-bottom: 2px solid var(--ca-text-muted);
	transform: translateY(-70%) rotate(45deg);
	transition: transform .2s ease;
}
.ca-feat-faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.ca-feat-faq details > *:not(summary) { margin: 0; padding: 0 20px 18px; color: var(--ca-text-muted); }
.ca-feat-faq ol { padding-left: 40px; }
.ca-feat-faq li { margin-bottom: 6px; }

/* Closing band */
.ca-feat-cta {
	margin-top: var(--ca-gap);
	padding: clamp(40px, 6vw, 72px) 24px;
	text-align: center;
	border-radius: var(--ca-radius);
	background:
		radial-gradient(90% 120% at 50% 0%, rgba(var(--ca-brand-rgb), 0.28), transparent 70%),
		var(--ca-surface);
	border: 1px solid rgba(var(--ca-brand-rgb), 0.35);
}
.ca-feat-cta h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.03em; margin-bottom: 10px; }
.ca-feat-cta p { color: var(--ca-text-muted); margin: 0 0 24px; }
.ca-feat-cta p:last-child { margin: 0; }

/* ==========================================================================
   15. PROFILE — round photo beside a name, for the About page (beard.fm's
   "That's me" layout). Allows for the <p> wpautop wraps around the <img>.
   ========================================================================== */

.ca-prose .ca-profile {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 0 0 32px;
}
.ca-prose .ca-profile > p { margin: 0; flex: none; }
.ca-prose .ca-profile p:empty { display: none; }
.ca-prose .ca-profile img {
	width: 112px;
	height: 112px;
	margin: 0;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 3px var(--ca-bg), 0 0 0 5px var(--ca-brand);
}
.ca-prose .ca-profile h2 { margin: 0; font-size: clamp(26px, 3vw, 32px); }
.ca-prose .ca-profile-handle { margin: 4px 0 0 !important; font-size: 15px; color: var(--ca-text-muted); }
@media (max-width: 480px) {
	.ca-prose .ca-profile img { width: 88px; height: 88px; }
}

/* ==========================================================================
   16. APPS PAGE — beard.fm's /app/ layout: centred intro, a grid of app
   icons, then one big tinted card per app (copy left, screenshot on a
   blue panel right). Used by the Productivity page's own content.
   ========================================================================== */

.ca-apps-icons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 28px;
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
}
.ca-apps-icons li { margin: 0; }
.ca-apps-icons a {
	display: grid;
	justify-items: center;
	gap: 10px;
	width: 96px;
	color: var(--ca-text);
	font-size: 15px;
	font-weight: 600;
	text-align: center;
}
.ca-apps-icons a:hover, .ca-apps-icons a:focus { color: var(--ca-brand-bright); }
.ca-apps-icons img {
	width: 76px;
	height: 76px;
	margin: 0;
	border-radius: 18px;
	box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.8);
	transition: transform .15s ease;
}
.ca-apps-icons a:hover img { transform: translateY(-3px); }
.ca-apps-icons p { margin: 0; display: contents; }

.ca-appcard {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
	margin-top: clamp(48px, 7vw, 80px);
	padding: clamp(28px, 5vw, 56px);
	border-radius: 26px;
	background:
		radial-gradient(90% 120% at 0% 0%, rgba(var(--ca-brand-rgb), 0.16), transparent 60%),
		#1A1E25;
	border: 1px solid rgba(var(--ca-brand-rgb), 0.22);
	scroll-margin-top: 90px;
}
.ca-appcard p { margin: 0; }
.ca-appcard-icon img,
img.ca-appcard-icon {
	width: 72px;
	height: 72px;
	margin: 0 0 24px;
	border-radius: 17px;
	box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.8);
}
.ca-appcard h2,
.ca-appcard .ca-appcard-name { font-size: clamp(36px, 4.4vw, 48px); letter-spacing: -0.035em; margin: 0 0 8px; }
/* On the homepage the card sits under the section heading. */
.ca-appcard--home { margin-top: 0; }
/* A screenshot set in the Customizer (not cropped): just fit the panel. */
.ca-appcard-shot .ca-appcard-plain { width: 100%; height: auto; margin: 0; border-radius: 12px; }
.ca-appcard .ca-appcard-tagline { color: var(--ca-brand); font-size: 20px; font-weight: 600; margin-bottom: 16px; }
.ca-appcard .ca-appcard-text { color: var(--ca-text-muted); font-size: 17px; line-height: 1.65; margin-bottom: 22px; }
.ca-appcard .ca-feat-chips { justify-content: flex-start; margin-bottom: 26px; }
.ca-appcard .ca-feat-actions { justify-content: flex-start; }
.ca-appcard .ca-feat-fine { margin-top: 14px; }
.ca-appcard-shot {
	display: grid;
	place-items: center;
	margin: 0;
	padding: clamp(24px, 4vw, 44px);
	border-radius: 18px;
	background:
		radial-gradient(80% 120% at 50% 0%, rgba(255, 255, 255, 0.22), transparent 60%),
		linear-gradient(160deg, var(--ca-brand-bright), var(--ca-brand) 55%, var(--ca-brand-deep));
}
.ca-appcard-shot p { margin: 0; width: 100%; display: grid; place-items: center; }
.ca-appcard-shot .ca-crop { width: min(100%, 340px); }
.ca-appcard-shot .ca-crop { box-shadow: 0 30px 60px -20px rgba(18, 22, 30, 0.6), 0 0 0 0.5px rgba(18, 22, 30, 0.25); }
@media (max-width: 900px) {
	.ca-appcard { grid-template-columns: 1fr; }
}

/* ==========================================================================
   17. WORDPRESS CORE CLASSES
   ========================================================================== */

.alignleft  { float: left;  margin: 0.4em 1.6em 1em 0; }
.alignright { float: right; margin: 0.4em 0 1em 1.6em; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide, .alignfull { max-width: none; }
.ca-prose .alignfull { width: 100vw; margin-inline: calc(50% - 50vw); }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: 14px; color: var(--ca-text-faint); }
.sticky, .bypostauthor { /* required by the theme review guidelines */ }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
