/* ===== The blog index (/blog/). The site's teal, Cormorant and Quicksand.
   One grid: 1200px wide, 32px gutters, 12 columns. Every section starts on the same left edge
   with the same head (name, link on the right), and every card lines up to that grid. ===== */

.aptb-page {
	--t: #0f515f;          /* site primary */
	--deep: #0a3a44;
	--plum: #403a60;       /* site accent */
	--tint: #eef4f4;
	--paper: #f8faf9;
	--ink: #1d2b30;
	--soft: #55646a;
	--rule: rgba(15, 81, 95, 0.16);
	--gap: 32px;
	--pad: 32px;
	--r: 14px;
	--lift: 0 1px 2px rgba(10, 58, 68, 0.06), 0 10px 30px rgba(10, 58, 68, 0.08);
	--serif: "Cormorant", Georgia, serif;
	--sans: "Quicksand", system-ui, sans-serif;
	background: #fff;
}
.aptb-page .site-inner,
.aptb-page .content-sidebar-wrap,
.aptb-page main.content {
	max-width: none !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
	background: none;
}
.aptb-page main.content { font-family: var(--sans); color: var(--ink); }
.aptb-page main.content * { box-sizing: border-box; }
.aptb-page main.content a { text-decoration: none; }

.aptb-wrap { max-width: calc(1200px + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.aptb-i { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- section rhythm and the one section head ---------- */
.aptb-sec { padding: 88px 0; background: #fff; }
.aptb-sec:not(.is-tint):not(.is-archive) + .aptb-sec:not(.is-tint):not(.is-archive) { padding-top: 0; }   /* two white sections in a row share one gap */
.aptb-sec.is-tint, .aptb-sec.is-archive { background: var(--tint); }
.aptb-head {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 var(--gap);
	padding-bottom: 20px;
	border-bottom: 1px solid var(--rule);
}
.aptb-head h2 {
	font-family: var(--serif);
	font-weight: 600;
	font-size: 2.75rem;
	line-height: 1;
	margin: 0;
	color: var(--ink);
}
.aptb-ico {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	flex: none;
	background: var(--tint);
	color: var(--t);
}
.aptb-ico .aptb-i { width: 24px; height: 24px; }
.is-tint .aptb-ico, .is-archive .aptb-ico { background: #fff; }
.aptb-ico.is-lg { width: 56px; height: 56px; }
.aptb-ico.is-lg .aptb-i { width: 28px; height: 28px; }
.aptb-more {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: 1rem;
	color: var(--t) !important;
	white-space: nowrap;
}
.aptb-more .aptb-i { transition: transform 0.15s; }
.aptb-more:hover .aptb-i { transform: translateX(3px); }

/* ---------- the band: title, search, four program cards on its lower edge ---------- */
.aptb-band {
	background: linear-gradient(to bottom, var(--t) calc(100% - 96px), #fff 0);
	color: #fff;
	padding-top: 72px;
}
.aptb-band-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--gap); margin-bottom: 48px; }
.aptb-band h1 {
	font-family: var(--serif);
	font-weight: 600;
	font-size: clamp(3.5rem, 6vw, 5.25rem);
	line-height: 0.95;
	margin: 0;
	color: #fff !important;
}
.aptb-stat { margin: 14px 0 0; font-size: 1.05rem; color: rgba(255, 255, 255, 0.82); }
.aptb-stat a { color: #fff !important; text-decoration: underline !important; text-underline-offset: 3px; }
.aptb-crumb { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: rgba(255, 255, 255, 0.85) !important; font-weight: 600; }
.aptb-search {
	flex: 0 1 calc((100% - 11 * var(--gap)) / 12 * 5 + 4 * var(--gap));   /* exactly five columns */
	display: flex;
	align-items: center;
	height: 56px;
	padding: 0 6px 0 18px;
	border-radius: 999px;
	background: #fff;
	color: var(--soft);
	gap: 10px;
}
.aptb-search .aptb-i { width: 20px; height: 20px; }
.aptb-search input[type="search"] {
	flex: 1;
	min-width: 0;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	font: 500 1.05rem var(--sans);
	color: var(--ink);
	outline: none;
}
.aptb-search button {
	height: 44px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--t);
	color: #fff;
	font: 600 0.95rem var(--sans);
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
}
.aptb-search:focus-within { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.45); }
.aptb-progs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.aptb-prog {
	display: flex;
	flex-direction: column;
	border-radius: var(--r);
	overflow: hidden;
	background: #fff;
	box-shadow: var(--lift);
	color: var(--ink) !important;
	transition: transform 0.15s, box-shadow 0.15s;
}
.aptb-prog-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--tint); }
.aptb-prog-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; margin: 0; border-radius: 0; transition: transform 0.3s; }
.aptb-prog-name { padding: 20px 24px 0; font-family: var(--serif); font-weight: 600; font-size: 1.6rem; line-height: 1.1; white-space: nowrap; }
.aptb-prog-count { display: flex; align-items: center; justify-content: space-between; padding: 6px 24px 22px; font-size: 0.95rem; color: var(--soft); }
.aptb-prog-arrow { color: var(--t); width: 20px; height: 20px; transition: transform 0.15s; }
.aptb-prog:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(10, 58, 68, 0.08), 0 16px 40px rgba(10, 58, 68, 0.12); }
.aptb-prog:hover .aptb-prog-img img { transform: scale(1.03); }
.aptb-prog:hover .aptb-prog-arrow { transform: translateX(3px); }
.aptb-prog[aria-current] { outline: 3px solid var(--t); outline-offset: 0; }
.aptb-prog[aria-current] .aptb-prog-name { color: var(--t); }
.aptb-band + .aptb-sec { padding-top: 88px; }

/* ---------- cards ---------- */
.aptb-card {
	position: relative;
	display: flex;
	flex-direction: column;
	border-radius: var(--r);
	background: #fff;
	box-shadow: var(--lift);
	overflow: hidden;
	transition: transform 0.15s, box-shadow 0.15s;
}
.aptb-sec:not(.is-tint) .aptb-card, .aptb-sec:not(.is-tint) .aptb-event { box-shadow: 0 0 0 1px var(--rule), var(--lift); }
.aptb-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(10, 58, 68, 0.08), 0 16px 40px rgba(10, 58, 68, 0.12); }
.aptb-card:focus-within { box-shadow: 0 0 0 3px var(--t), var(--lift); }
.aptb-media { aspect-ratio: 3 / 2; background: var(--tint); overflow: hidden; flex: none; }
.aptb-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; margin: 0; border-radius: 0; }
.aptb-media.is-whole { display: grid; place-items: center; padding: 16px; }
.aptb-media.is-whole img { height: auto; max-height: 100%; object-fit: contain; }
/* "article" in each so these beat the site's own ".blog article { background: #fff }" */
.aptb-page article.aptb-card { background: #fff; margin: 0; padding: 0; }
.aptb-tc { display: grid; place-items: center; background: var(--t); color: #fff; padding: 24px; }
.aptb-tc-name { font-family: var(--serif); font-weight: 600; font-size: 1.9rem; line-height: 1.1; text-align: center; color: rgba(255, 255, 255, 0.92); }
.is-side .aptb-tc-name { font-size: 1.15rem; }
.aptb-tc-ring { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35); }
.aptb-tc-i { width: 42px; height: 42px; stroke-width: 1.4; }
.is-side .aptb-tc-ring { width: 64px; height: 64px; }
.is-side .aptb-tc-i { width: 28px; height: 28px; }
.aptb-body { display: flex; flex-direction: column; flex: 1; padding: 24px 28px 28px; }
.aptb-eyebrow {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--t);
	line-height: 1.2;
}
.aptb-title {
	font-family: var(--serif);
	font-weight: 600;
	font-size: 1.65rem;
	line-height: 1.12;
	margin: 0 0 18px;
	color: var(--ink);
	text-wrap: balance;
}
.aptb-title a { color: inherit !important; }
.aptb-title a::after { content: ""; position: absolute; inset: 0; }   /* whole card is the link */
.aptb-card:hover .aptb-title a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.aptb-ex { margin: -4px 0 20px; font-size: 1.05rem; line-height: 1.55; color: var(--soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.aptb-meta { margin: auto 0 0; display: flex; gap: 14px; font-size: 0.9rem; color: var(--soft); }

.aptb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }

/* Latest: the lead takes seven columns, three side cards stack in the other five */
.aptb-latest { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.aptb-card.is-lead { grid-column: 1 / 9; }
.aptb-card.is-lead .aptb-media { aspect-ratio: 16 / 10; }
.aptb-card.is-lead .aptb-title { font-size: 2.35rem; line-height: 1.05; }
.aptb-card.is-lead .aptb-body { padding: 28px 28px 30px; }
.aptb-side { grid-column: 9 / 13; display: grid; grid-template-rows: repeat(3, 1fr); gap: var(--gap); }
.aptb-card.is-side { flex-direction: row; }
.aptb-card.is-side .aptb-media { aspect-ratio: auto; width: 40%; }
.aptb-card.is-side .aptb-body { padding: 20px 28px 20px 24px; justify-content: center; }
.aptb-card.is-side .aptb-meta { margin-top: 0; }
.aptb-card.is-side .aptb-title { font-size: 1.4rem; margin-bottom: 12px; }
.aptb-card.is-side .aptb-tc-i { width: 34%; }

/* ---------- Coming up ---------- */
.aptb-events { display: grid; gap: var(--gap); }
.aptb-event {
	position: relative;
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	column-gap: var(--gap);
	border-radius: var(--r);
	background: #fff;
	box-shadow: var(--lift);
	overflow: hidden;
	min-height: 260px;
}
.aptb-event-date {
	grid-column: 1 / 3;
	background: var(--t);
	color: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 24px 12px;
}
.aptb-event-date .m { font-weight: 700; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; }
.aptb-event-date .d { font-family: var(--serif); font-weight: 600; font-size: 5.5rem; line-height: 0.9; margin: 6px 0 10px; }
.aptb-event-date .w { font-size: 0.95rem; opacity: 0.85; }
.aptb-event-body { grid-column: 3 / 13; padding: 40px 40px 40px 0; display: flex; flex-direction: column; justify-content: center; }
.aptb-event .aptb-title { font-size: 2.35rem; line-height: 1.05; margin-bottom: 20px; }
.aptb-event .aptb-title a::after { display: none; }
.aptb-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--ink); font-size: 1.05rem; }
.aptb-facts li { display: flex; align-items: center; gap: 10px; margin: 0; }
.aptb-facts .aptb-i { color: var(--t); width: 20px; height: 20px; }
.aptb-actions { grid-column: 10 / 13; display: flex; align-items: center; justify-content: flex-end; padding-right: 40px; }
.aptb-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 52px;
	padding: 0 26px;
	border-radius: 999px;
	background: var(--t);
	color: #fff !important;
	font-weight: 600;
	font-size: 1rem;
}
.aptb-btn:hover { background: var(--deep); }

/* ---------- Every post: the year in two columns, the list in ten ---------- */
.aptb-years { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 40px; }
.aptb-years a {
	padding: 6px 14px;
	border-radius: 999px;
	background: #fff;
	color: var(--t) !important;
	font-weight: 600;
	font-size: 0.95rem;
	font-variant-numeric: tabular-nums;
}
.aptb-years a:hover { background: var(--t); color: #fff !important; }
.aptb-year {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	column-gap: var(--gap);
	padding: 28px 0;
	border-top: 1px solid var(--rule);
	scroll-margin-top: 120px;
}
.aptb-year-num {
	grid-column: 1 / 3;
	margin: 0;
	font-family: var(--serif);
	font-weight: 600;
	font-size: 2.25rem;
	line-height: 1;
	color: var(--t);
	font-variant-numeric: lining-nums tabular-nums;
	align-self: start;
	position: sticky;
	top: 110px;
}
.aptb-year-body { grid-column: 3 / 13; }
.aptb-rows { list-style: none; margin: 0; padding: 0; }
.aptb-rows li { margin: 0; }
.aptb-rows li + li { border-top: 1px solid var(--rule); }
.aptb-rows a {
	display: grid;
	grid-template-columns: 1fr 15rem 4.5rem;
	gap: var(--gap);
	align-items: baseline;
	padding: 14px 0;
	color: var(--ink) !important;
}
.aptb-rows li:first-child a { padding-top: 4px; }
.aptb-row-title { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; line-height: 1.2; }
.aptb-rows a:hover .aptb-row-title { color: var(--t); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.aptb-row-prog { display: inline-flex; align-items: center; gap: 8px; font-size: 0.92rem; color: var(--soft); }
.aptb-row-prog .aptb-i { color: var(--t); width: 18px; height: 18px; position: relative; top: 3px; }
.aptb-row-date { text-align: right; font-size: 0.92rem; color: var(--soft); font-variant-numeric: tabular-nums; }
.aptb-rows:not(:has(.aptb-row-prog)) a { grid-template-columns: 1fr 4.5rem; }

/* ---------- tablets ---------- */
@media (max-width: 1100px) {
	.aptb-progs { grid-template-columns: repeat(2, 1fr); }
	.aptb-latest { grid-template-columns: 1fr; }
	.aptb-card.is-lead, .aptb-side { grid-column: 1 / -1; }
	.aptb-side { grid-template-rows: none; }
	.aptb-event-date { grid-column: 1 / 4; }
	.aptb-event-body { grid-column: 4 / 13; padding: 32px 32px 16px 0; }
	.aptb-actions { grid-column: 4 / 13; justify-content: flex-start; padding: 0 0 32px; }
}
/* ---------- phones ---------- */
@media (max-width: 760px) {
	.aptb-page { --pad: 20px; --gap: 16px; }
	.aptb-sec, .aptb-band + .aptb-sec { padding: 56px 0; }
	.aptb-sec:not(.is-tint):not(.is-archive) + .aptb-sec:not(.is-tint):not(.is-archive) { padding-top: 0; }
	.aptb-band { padding-top: 40px; background: linear-gradient(to bottom, var(--t) calc(100% - 64px), #fff 0); }
	.aptb-progs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.aptb-prog-name { white-space: normal; }
	.aptb-head .aptb-more { display: none; }
	.aptb-foot { display: block; }
	.aptb-foot .aptb-more { margin-left: 0; }
	.aptb-years { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--pad)) 28px; padding: 0 var(--pad) 4px; }
	.aptb-years a { flex: none; }
	.aptb-band-row { flex-direction: column; align-items: stretch; margin-bottom: 28px; }
	.aptb-search { flex: none; }
	.aptb-search button { display: none; }
	.aptb-prog-img { aspect-ratio: 16 / 10; }
	.aptb-prog-name { font-size: 1.3rem; padding: 14px 16px 0; }
	.aptb-prog-count { padding: 4px 16px 16px; }
	.aptb-prog-arrow { display: none; }
	.aptb-head h2 { font-size: 2rem; }
	.aptb-head .aptb-ico { width: 40px; height: 40px; }
	.aptb-head .aptb-ico .aptb-i { width: 20px; height: 20px; }
	.aptb-head { flex-wrap: wrap; }
	.aptb-event { grid-template-columns: 1fr; min-height: 0; }
	.aptb-event-date { grid-column: 1; flex-direction: row; justify-content: flex-start; align-items: baseline; gap: 12px; padding: 14px 20px; }
	.aptb-event-date .d { font-size: 2.4rem; margin: 0; }
	.aptb-event-body { grid-column: 1; padding: 22px 20px 16px; }
	.aptb-actions { grid-column: 1; padding: 0 20px 24px; }
	.aptb-event .aptb-title { font-size: 1.8rem; }
	.aptb-card.is-lead .aptb-title { font-size: 1.8rem; }
	.aptb-card.is-lead .aptb-body { padding: 22px 20px 24px; }
	.aptb-card.is-side .aptb-media { width: 34%; }
	.aptb-card.is-side .aptb-title { font-size: 1.25rem; }
	.aptb-card.is-side .aptb-body { padding: 16px; }
	.aptb-card.is-side .aptb-eyebrow { display: none; }
	/* shelves become a row you swipe, one card and a bit of the next */
	.aptb-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--pad)); padding: 4px var(--pad) 20px; scroll-padding: 0 var(--pad); }
	.aptb-grid > * { scroll-snap-align: start; }
	.aptb-year { grid-template-columns: 1fr; row-gap: 16px; }
	.aptb-year-num { grid-column: 1; position: static; font-size: 2rem; }
	.aptb-year-body { grid-column: 1; }
	.aptb-rows a, .aptb-rows:not(:has(.aptb-row-prog)) a { grid-template-columns: 1fr auto; gap: 4px 16px; }
	.aptb-row-prog { grid-row: 2; grid-column: 1; }
	.aptb-row-title { font-size: 1.25rem; }
}

/* ---------- archive: years before 2020 in one fold ---------- */
.aptb-older > summary { list-style: none; cursor: pointer; }
.aptb-older > summary::-webkit-details-marker { display: none; }
.aptb-older > summary .aptb-year-num { position: static; font-size: 1.9rem; white-space: nowrap; align-self: center; }
.aptb-older-btn { align-self: center; }
.aptb-older-btn {
	grid-column: 3 / 13;
	justify-self: start;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 20px;
	border-radius: 999px;
	background: #fff;
	color: var(--t);
	font-weight: 600;
}
.aptb-older-btn .aptb-i { transition: transform 0.15s; }
.aptb-older[open] > summary .aptb-i { transform: rotate(180deg); }
.aptb-older > summary:hover .aptb-older-btn { background: var(--t); color: #fff; }
@media (max-width: 760px) {
	.aptb-older-btn { grid-column: 1; }
}

.is-archive .aptb-head { border: 0; padding-bottom: 0; }
.aptb-rows a { align-items: center; }
.aptb-row-prog .aptb-i { top: 0; }
.aptb-foot { display: none; margin: 20px 0 0; }

/* ---------- live search: the page's sections give way to one list of matching posts ---------- */
.aptb-searching .aptb-sec:not(.aptb-results), .aptb-searching .aptb-progs { display: none; }
.aptb-searching .aptb-band { background: var(--t); padding-bottom: 56px; }
.aptb-searching .aptb-band-row { margin-bottom: 0; }
.aptb-results { min-height: 60vh; }
.aptb-results[hidden] { display: none; }
.aptb-res-clear { font: inherit; background: none; border: 0; padding: 0; color: var(--t); font-weight: 600; }
.aptb-res-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.aptb-pill {
	font: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	padding: 7px 16px;
	border-radius: 999px;
	border: 1px solid var(--rule);
	background: #fff;
	color: var(--t);
	cursor: pointer;
}
.aptb-pill span { font-weight: 500; color: var(--soft); margin-left: 4px; font-variant-numeric: tabular-nums; }
.aptb-pill[aria-pressed="true"] { background: var(--t); border-color: var(--t); color: #fff; }
.aptb-pill[aria-pressed="true"] span { color: rgba(255, 255, 255, 0.8); }
.aptb-pill[hidden] { display: none; }
.aptb-rows.is-flat a { grid-template-columns: 1fr 15rem 7.5rem; }
.aptb-row-main { display: flex; flex-direction: column; gap: 4px; }
.aptb-row-snip { font-size: 0.95rem; line-height: 1.5; color: var(--soft); }
.aptb-results mark { background: rgba(15, 81, 95, 0.14); color: inherit; border-radius: 2px; padding: 0 1px; }
.aptb-res-full { margin: 32px 0 0; }
.aptb-res-full .aptb-more { margin-left: 0; }
@media (max-width: 760px) {
	.aptb-searching .aptb-band { padding-bottom: 32px; }
	.aptb-res-pills { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--pad)) 20px; padding: 0 var(--pad) 4px; }
	.aptb-pill { flex: none; }
	.aptb-rows.is-flat a { grid-template-columns: 1fr auto; }
	.aptb-results .aptb-head .aptb-more { display: inline-flex; }
}
.aptb-res-pills[hidden] { display: none; }
/* the theme styles every <button> as a capitalized, letter-spaced label; these are plain controls */
.aptb-page .aptb-pill, .aptb-page .aptb-res-clear { text-transform: none; letter-spacing: normal; font-family: inherit; line-height: 1.2; height: auto; box-shadow: none; }
.aptb-page .aptb-res-clear { font-size: 1rem; }
.aptb-page .aptb-res-clear:hover { background: none; color: var(--deep); text-decoration: underline; }
.aptb-page .aptb-pill:hover { border-color: var(--t); }
@media (max-width: 760px) { .aptb-results { min-height: 0; } }
