/* ==================================================
   CALPE LOCAL — SINGLE ARTICLE TEMPLATE
   ================================================== */

.single-post #page,
.single-post .site-content {
	max-width: none;
}

.single-post .site-content {
	display: block;
	padding: 0;
	background: #f6f1e8;
}

.cl-single,
.cl-single * {
	box-sizing: border-box;
}

.cl-single {
	--cl-single-width: 1240px;
	--cl-serif: "Newsreader", Georgia, "Times New Roman", serif;
	--cl-sans: "Manrope", Arial, Helvetica, sans-serif;
	background: #f6f1e8;
	color: #2d3333;
	font-family: var(--cl-sans);
}

.cl-single-shell {
	width: min(calc(100% - 48px), var(--cl-single-width));
	margin-inline: auto;
}

/* Hero */
.cl-single-hero {
	padding: 54px 0 64px;
	border-bottom: 1px solid #d8d0c4;
	background: #f6f1e8;
}

.cl-single-breadcrumbs {
	margin-bottom: 28px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 9px;
	color: #7a817f;
	font-size: 11px;
	font-weight: 650;
	line-height: 1.4;
}

.cl-single-breadcrumbs a {
	color: #596260;
	text-decoration: none;
}

.cl-single-breadcrumbs a:hover,
.cl-single-breadcrumbs a:focus-visible {
	color: #d8764a;
}

.cl-single-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
	align-items: stretch;
	gap: clamp(42px, 6vw, 86px);
}

.cl-single-hero__grid--no-image {
	grid-template-columns: minmax(0, 900px);
}

.cl-single-hero__copy {
	align-self: center;
	padding: 18px 0;
}

.cl-single-category {
	display: inline-block;
	color: #d8764a;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: 0.13em;
	text-decoration: none;
	text-transform: uppercase;
}

.cl-single-category:hover,
.cl-single-category:focus-visible {
	color: #102a2e;
}

.cl-single-hero h1 {
	max-width: 760px;
	margin: 14px 0 0;
	color: #102a2e;
	font-family: var(--cl-serif);
	font-size: clamp(48px, 5vw, 72px);
	font-weight: 700;
	line-height: 0.99;
	letter-spacing: -0.052em;
}

.cl-single-deck {
	max-width: 680px;
	margin: 22px 0 0;
	color: #596260;
	font-size: clamp(17px, 1.35vw, 20px);
	line-height: 1.62;
}

.cl-single-meta {
	margin-top: 27px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 9px;
	color: #737b79;
	font-size: 11px;
	font-weight: 650;
	line-height: 1.4;
}

.cl-single-hero__media {
	min-width: 0;
	margin: 0;
	overflow: hidden;
	background: #102a2e;
}

.cl-single-featured-image {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 480px;
	margin: 0;
	object-fit: cover;
}

/* Article and sidebar layout */
.cl-single-layout {
	padding: 66px 0 82px;
	display: grid;
	grid-template-columns: minmax(0, 800px) minmax(280px, 320px);
	align-items: start;
	justify-content: space-between;
	gap: clamp(46px, 6vw, 76px);
}

.cl-single-article {
	min-width: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.cl-article-content {
	color: #303737;
	font-size: 18px;
	line-height: 1.82;
}

.cl-article-content > *:first-child {
	margin-top: 0;
}

.cl-article-content > p:first-child {
	color: #263231;
	font-size: 20px;
	line-height: 1.72;
}

.cl-article-content p,
.cl-article-content ul,
.cl-article-content ol,
.cl-article-content blockquote,
.cl-article-content figure,
.cl-article-content table,
.cl-article-content .wp-block-group,
.cl-article-content .wp-block-columns {
	margin-top: 0;
	margin-bottom: 1.45em;
}

.cl-article-content h2,
.cl-article-content h3,
.cl-article-content h4 {
	color: #102a2e;
	font-family: var(--cl-serif);
	font-weight: 700;
	letter-spacing: -0.035em;
}

.cl-article-content h2 {
	margin: 1.65em 0 0.55em;
	font-size: clamp(32px, 3.1vw, 43px);
	line-height: 1.08;
}

.cl-article-content h3 {
	margin: 1.55em 0 0.5em;
	font-size: clamp(25px, 2.25vw, 32px);
	line-height: 1.12;
}

.cl-article-content h4 {
	margin: 1.45em 0 0.45em;
	font-size: 22px;
	line-height: 1.2;
}

.cl-article-content a {
	color: #1e6574;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.cl-article-content a:hover,
.cl-article-content a:focus-visible {
	color: #b95e38;
}

.cl-article-content ul,
.cl-article-content ol {
	padding-left: 1.3em;
}

.cl-article-content li + li {
	margin-top: 0.42em;
}

.cl-article-content blockquote {
	padding: 7px 0 7px 25px;
	border-left: 4px solid #d8764a;
	color: #485250;
	font-family: var(--cl-serif);
	font-size: 23px;
	font-style: italic;
	line-height: 1.5;
}

.cl-article-content blockquote p:last-child {
	margin-bottom: 0;
}

.cl-article-content img {
	height: auto;
}

.cl-article-content figure,
.cl-article-content .wp-block-image {
	max-width: 100%;
}

.cl-article-content figcaption,
.cl-article-content .wp-caption-text {
	margin-top: 9px;
	color: #727a78;
	font-size: 12px;
	line-height: 1.5;
}

.cl-article-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.55;
}

.cl-article-content th,
.cl-article-content td {
	padding: 13px 14px;
	border: 1px solid #d8d0c4;
	text-align: left;
	vertical-align: top;
}

.cl-article-content th {
	background: #edf3f2;
	color: #102a2e;
	font-weight: 800;
}

.cl-article-content hr {
	margin: 2.2em 0;
	border: 0;
	border-top: 1px solid #d8d0c4;
}

.cl-article-content .wp-block-button__link,
.cl-article-content .button,
.cl-article-content input[type="submit"] {
	border-radius: 0;
	background: #d8764a;
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
}

.cl-article-pages,
.cl-article-tags {
	margin-top: 34px;
	padding-top: 24px;
	border-top: 1px solid #d8d0c4;
	color: #69716f;
	font-size: 12px;
	line-height: 1.6;
}

.cl-article-tags {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.cl-article-tags > span {
	color: #102a2e;
	font-weight: 800;
}

.cl-article-tags a {
	padding: 5px 8px;
	border: 1px solid #d8d0c4;
	color: #596260;
	text-decoration: none;
}

/* Sidebar */
/* Keep every ancestor in the single-post layout compatible with position: sticky. */
.single-post #page,
.single-post .site-content,
.single-post .content-area,
.single-post .site-main,
.cl-single,
.cl-single-shell,
.cl-single-layout {
	overflow: visible;
}

/*
 * The outer column stretches to the full article row.
 * The inner panel is the sticky element so it can stop before related posts.
 */
.cl-article-sidebar {
	position: relative;
	align-self: stretch;
	min-width: 0;
}

.cl-article-sidebar__sticky {
	position: sticky;
	top: var(--cl-sidebar-sticky-top, 112px);
	display: grid;
	gap: 22px;
}

.cl-sidebar-card,
.cl-article-sidebar .widget {
	margin: 0;
	padding: 27px;
	border: 1px solid #d8d0c4;
	background: #fffdf8;
}

.cl-sidebar-eyebrow,
.cl-article-sidebar .widget-title {
	margin: 0;
	color: #d8764a;
	font-size: 10px;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.cl-sidebar-card h2 {
	margin: 8px 0 0;
	color: #102a2e;
	font-family: var(--cl-serif);
	font-size: 27px;
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.035em;
}

.cl-sidebar-search form {
	margin-top: 19px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 48px;
	border: 1px solid #d8d0c4;
}

.cl-sidebar-search input[type="search"] {
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 13px;
	border: 0;
	border-radius: 0;
	background: #f6f1e8;
	font-size: 12px;
	box-shadow: none;
}

.cl-sidebar-search button {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #d8764a;
	color: #fff;
	font-size: 19px;
	font-weight: 700;
	cursor: pointer;
}

.cl-sidebar-links {
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

.cl-sidebar-links li {
	margin: 0;
	padding: 0;
	border-top: 1px solid #e3ddd3;
}

.cl-sidebar-links li:last-child {
	border-bottom: 1px solid #e3ddd3;
}

.cl-sidebar-links a {
	padding: 11px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	color: #394342;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.cl-sidebar-links a:hover,
.cl-sidebar-links a:focus-visible {
	color: #d8764a;
}

.cl-sidebar-posts {
	margin-top: 19px;
	display: grid;
	gap: 15px;
}

.cl-sidebar-post {
	display: grid;
	grid-template-columns: 78px minmax(0, 1fr);
	align-items: center;
	gap: 13px;
	color: #102a2e;
	font-family: var(--cl-serif);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}

.cl-sidebar-post img {
	display: block;
	width: 78px;
	height: 66px;
	object-fit: cover;
}

.cl-sidebar-post:hover,
.cl-sidebar-post:focus-visible {
	color: #2e6f7e;
}

.cl-sidebar-business {
	background: #102a2e;
	border-color: #102a2e;
}

.cl-sidebar-business h2 {
	color: #fffdf8;
}

.cl-sidebar-business > p:not(.cl-sidebar-eyebrow) {
	margin: 14px 0 0;
	color: rgba(255, 255, 255, 0.7);
	font-size: 13px;
	line-height: 1.6;
}

.cl-sidebar-business > a {
	margin-top: 20px;
	display: inline-block;
	color: #ed9b76;
	font-size: 12px;
	font-weight: 800;
	text-decoration: none;
}

/* Generic widget styling */
.cl-article-sidebar .widget-title {
	margin-bottom: 17px;
}

.cl-article-sidebar .widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cl-article-sidebar .widget li + li {
	margin-top: 10px;
}

.cl-article-sidebar .widget a {
	color: #394342;
	font-size: 13px;
	font-weight: 650;
	text-decoration: none;
}

.cl-article-sidebar .widget a:hover,
.cl-article-sidebar .widget a:focus-visible {
	color: #d8764a;
}

/* Related posts */
.cl-related {
	padding: 72px 0 82px;
	border-top: 1px solid #d8d0c4;
	background: #fffdf8;
}

.cl-related__heading {
	margin-bottom: 31px;
	padding-bottom: 24px;
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 30px;
	border-bottom: 1px solid #d8d0c4;
}

.cl-related__heading p {
	margin: 0;
	color: #d8764a;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.cl-related__heading h2 {
	margin: 8px 0 0;
	color: #102a2e;
	font-family: var(--cl-serif);
	font-size: clamp(36px, 4vw, 52px);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.045em;
}

.cl-related__heading > a {
	color: #102a2e;
	font-size: 12px;
	font-weight: 800;
	text-decoration: none;
}

.cl-related__heading > a:hover,
.cl-related__heading > a:focus-visible {
	color: #d8764a;
}

.cl-related__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px;
}

.cl-related-card {
	border: 1px solid #d8d0c4;
	background: #fffdf8;
}

.cl-related-card__media {
	aspect-ratio: 3 / 2;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: #102a2e;
	color: rgba(255, 255, 255, 0.8);
	font-family: var(--cl-serif);
	font-size: 25px;
	font-weight: 700;
	text-decoration: none;
}

.cl-related-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 400ms ease;
}

.cl-related-card:hover .cl-related-card__media img {
	transform: scale(1.025);
}

.cl-related-card__body {
	padding: 22px;
}

.cl-related-card__body > p {
	margin: 0;
	color: #d8764a;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.cl-related-card h3 {
	margin: 8px 0 0;
	color: #102a2e;
	font-family: var(--cl-serif);
	font-size: 25px;
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.035em;
}

.cl-related-card h3 a {
	color: inherit;
	text-decoration: none;
}

.cl-related-card h3 a:hover,
.cl-related-card h3 a:focus-visible {
	color: #2e6f7e;
}

@media (max-width: 1050px) {
	.cl-single-hero__grid {
		grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
		gap: 45px;
	}

	.cl-single-layout {
		grid-template-columns: minmax(0, 1fr) 290px;
		gap: 42px;
	}

	.cl-single-featured-image {
		min-height: 430px;
	}
}

@media (max-width: 900px) {

	.cl-article-sidebar {
		position: static;
		align-self: auto;
	}

	.cl-article-sidebar__sticky {
		position: static;
		top: auto;
	}
	.cl-single-shell {
		width: min(calc(100% - 32px), var(--cl-single-width));
	}

	.cl-single-hero {
		padding: 42px 0 50px;
	}

	.cl-single-hero__grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.cl-single-hero__copy {
		padding: 0;
	}

	.cl-single-featured-image {
		min-height: 0;
		aspect-ratio: 16 / 10;
	}

	.cl-single-layout {
		grid-template-columns: 1fr;
		padding: 50px 0 64px;
		gap: 42px;
	}

	.cl-article-sidebar__sticky,
	.admin-bar .cl-article-sidebar__sticky {
		position: static;
	}

	.cl-article-sidebar__sticky {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cl-related {
		padding: 58px 0 66px;
	}

	.cl-related__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 650px) {
	.cl-single-shell {
		width: calc(100% - 24px);
	}

	.cl-single-hero {
		padding: 31px 0 39px;
	}

	.cl-single-breadcrumbs {
		margin-bottom: 20px;
	}

	.cl-single-hero h1 {
		font-size: clamp(40px, 11.5vw, 53px);
		line-height: 1;
	}

	.cl-single-deck {
		margin-top: 17px;
		font-size: 16px;
	}

	.cl-single-meta {
		margin-top: 21px;
	}

	.cl-single-featured-image {
		aspect-ratio: 3 / 2;
	}

	.cl-single-layout {
		padding: 38px 0 51px;
	}

	.cl-single-article {
		padding: 27px 20px 31px;
	}

	.cl-article-content {
		font-size: 17px;
		line-height: 1.75;
	}

	.cl-article-content > p:first-child {
		font-size: 18px;
	}

	.cl-article-content h2 {
		font-size: 32px;
	}

	.cl-article-content h3 {
		font-size: 26px;
	}

	.cl-article-content blockquote {
		padding-left: 18px;
		font-size: 20px;
	}

	.cl-article-content table {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
	}

	.cl-article-sidebar__sticky {
		grid-template-columns: 1fr;
	}

	.cl-sidebar-card,
	.cl-article-sidebar .widget {
		padding: 23px 20px;
	}

	.cl-related__heading {
		display: block;
	}

	.cl-related__heading > a {
		margin-top: 17px;
		display: inline-block;
	}

	.cl-related__grid {
		grid-template-columns: 1fr;
		gap: 17px;
	}
}

/* Event details shown on eligible single-event articles. */
.cl-article-event {
	margin: 0 0 42px;
	padding: clamp(25px, 3.2vw, 36px);
	border: 1px solid #d8d0c4;
	background: #fffdf8;
}

.cl-article-event--alert {
	border-top: 4px solid #d8764a;
}

.cl-article-event__heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	padding-bottom: 20px;
	border-bottom: 1px solid #e2dbd0;
}

.cl-article-event__heading p {
	margin: 0 0 5px;
	color: #d8764a;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.cl-article-event__heading h2 {
	margin: 0;
	color: #102a2e;
	font-family: var(--cl-serif);
	font-size: clamp(28px, 3vw, 38px);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.04em;
}

.cl-article-event__heading > a {
	flex: 0 0 auto;
	padding: 11px 15px;
	background: #102a2e;
	color: #fff;
	font-size: 12px;
	font-weight: 750;
	line-height: 1.2;
	text-decoration: none;
}

.cl-article-event__heading > a:hover,
.cl-article-event__heading > a:focus-visible {
	background: #d8764a;
	color: #fff;
}

.cl-article-event__status {
	margin: 20px 0 0;
	padding: 11px 14px;
	background: #f4e6dc;
	color: #6b3424;
	font-size: 14px;
	font-weight: 750;
}

.cl-article-event__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 30px;
	margin: 0;
}

.cl-article-event__grid > div {
	padding: 19px 0 17px;
	border-bottom: 1px solid #e2dbd0;
}

.cl-article-event__grid dt {
	margin: 0 0 5px;
	color: #6b7472;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.cl-article-event__grid dd {
	margin: 0;
	color: #263231;
	font-size: 15px;
	font-weight: 650;
	line-height: 1.5;
}

.cl-article-event__grid a {
	color: #1e6574;
	text-underline-offset: 3px;
}

@media (max-width: 700px) {
	.cl-article-event {
		margin-bottom: 31px;
		padding: 22px 19px;
	}

	.cl-article-event__heading {
		display: block;
	}

	.cl-article-event__heading > a {
		display: inline-block;
		margin-top: 16px;
	}

	.cl-article-event__grid {
		grid-template-columns: 1fr;
	}
}

.cl-single-meta a {
	color: inherit;
	text-decoration-color: #b9b1a6;
	text-underline-offset: 3px;
}

.cl-single-meta a:hover,
.cl-single-meta a:focus-visible {
	color: #d8764a;
}
