/*
 * Documentation-style sidebar for guide and lifestyle pages.
 * Injected by anan-doc-sidebar.php through the_content, so the grid is ours and
 * the theme's own sidebar stays switched off (every page is sidebar_option=none).
 */

.ana-doc {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 316px;
	gap: 56px;
	align-items: start;
}
.ana-doc__main { min-width: 0; }
.ana-doc__side {
	position: sticky;
	top: 108px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	font-family: Montserrat, sans-serif;
}

/* ---------------------------------------------------- on this page --- */

.ana-doc__toclabel {
	margin: 0 0 10px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #9a9285;
}
.ana-doc__toc ul,
.ana-doc__more ul { list-style: none; margin: 0; padding: 0; }
.ana-doc__toc li,
.ana-doc__more li { margin: 0 0 9px; line-height: 1.4; }
.ana-doc__toc a,
.ana-doc__more a {
	display: block;
	padding-left: 12px;
	border-left: 2px solid rgba(110, 102, 89, 0.18);
	font-size: 13px;
	color: #646464;
	text-decoration: none;
	transition: color 0.15s ease, border-color 0.15s ease;
}
.ana-doc__toc a:hover,
.ana-doc__more a:hover { color: #ae8c63; border-left-color: #ae8c63; }
.ana-doc__more .is-current span {
	display: block;
	padding-left: 12px;
	border-left: 2px solid #ae8c63;
	font-size: 13px;
	font-weight: 600;
	color: #252a2c;
}
.ana-doc__more { margin-top: 6px; }
/* ---------------------------------------------------- primary card --- */

.ana-doc__promo {
	display: block;
	padding: 22px 22px 20px;
	border-radius: 12px;
	background: #2a2723;
	color: #ffffff;
	text-decoration: none !important;
	transition: background 0.2s ease;
}
.ana-doc__promo:hover { background: #34302a; }
.ana-doc__promo-t {
	display: block;
	font-family: Fraunces, Georgia, serif;
	font-size: 17px;
	font-weight: 500;
	color: #ffffff;
}
.ana-doc__promo-d {
	display: block;
	margin-top: 7px;
	font-size: 12.5px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.72);
}
.ana-doc__promo-a {
	display: inline-block;
	margin-top: 15px;
	padding: 8px 18px;
	border-radius: 999px;
	background: #ae8c63;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.05em;
	color: #ffffff;
}
.ana-doc__promo-a::after { content: " \2192"; }

/* -------------------------------------------------- secondary cards --- */

.ana-doc__card {
	display: block;
	padding: 18px 20px 16px;
	border: 1px solid rgba(110, 102, 89, 0.16);
	border-radius: 12px;
	background: #ffffff;
	text-decoration: none !important;
	transition: border-color 0.2s ease, transform 0.2s ease;
}
.ana-doc__card:hover { border-color: #ae8c63; transform: translateY(-2px); }
.ana-doc__ic {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin-bottom: 12px;
	border-radius: 8px;
	background: #f2efe9;
}
.ana-doc__ic svg { width: 16px; height: 16px; fill: #6e6659; }
.ana-doc__ct {
	display: block;
	font-family: Fraunces, Georgia, serif;
	font-size: 15px;
	font-weight: 500;
	color: #252a2c;
}
.ana-doc__cd {
	display: block;
	margin-top: 6px;
	font-size: 12.5px;
	line-height: 1.6;
	color: #7a7a7a;
}
.ana-doc__cl {
	display: block;
	margin-top: 11px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: #ae8c63;
}
.ana-doc__cl::after { content: " \2192"; }
/* ------------------------------------------------------------ narrow --- */
/*
 * Below 1100px the rail drops under the content. Deliberately sparse: the user's
 * instruction is that mobile must never be dense, so only the contents list and
 * the one primary card survive - the secondary cards and the sibling list are
 * hidden rather than stacked into a wall. A proper mobile pass is still to come.
 */
@media (max-width: 1100px) {
	.ana-doc {
		grid-template-columns: 1fr;
		gap: 34px;
	}
	.ana-doc__side {
		position: static;
		gap: 18px;
	}
	.ana-doc__card,
	.ana-doc__more { display: none; }
	.ana-doc__toc {
		padding: 16px 18px;
		border: 1px solid rgba(110, 102, 89, 0.16);
		border-radius: 12px;
		background: #faf8f5;
	}
}
/* ------------------------------------------------------------- hero --- */
/*
 * None of these pages has a featured image, so the band is built from the brand
 * mark: warm cream field, the ANAN infinity set large and faint on the right,
 * chapter eyebrow, title. The theme h1 is suppressed per page via
 * page_show_title=no, so this is the only h1 on the page.
 */

.ana-hero {
	position: relative;
	overflow: hidden;
	margin: 0 0 44px;
	padding: 44px 46px 40px;
	border-radius: 16px;
	background: linear-gradient(135deg, #faf8f5 0%, #f0ebe1 100%);
}

.ana-hero__mark {
	position: absolute;
	right: -46px;
	top: 50%;
	transform: translateY(-50%);
	width: 340px;
	color: #ae8c63;
	opacity: 0.09;
	pointer-events: none;
}
.ana-hero__mark svg { display: block; width: 100%; height: auto; }

.ana-hero__inner { position: relative; }

.ana-hero__eyebrow {
	margin: 0 0 12px;
	font-family: Montserrat, sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #ae8c63;
}

.ana-hero__title {
	margin: 0;
	font-family: Fraunces, Georgia, serif;
	font-size: 40px;
	font-weight: 500;
	line-height: 1.15;
	color: #252a2c;
}

.ana-hero__meta {
	margin: 14px 0 0;
	font-family: Montserrat, sans-serif;
	font-size: 12px;
	letter-spacing: 0.04em;
	color: #9a9285;
}

@media (max-width: 1100px) {
	.ana-hero { padding: 34px 28px 30px; margin-bottom: 30px; border-radius: 14px; }
	.ana-hero__title { font-size: 30px; }
	.ana-hero__mark { width: 220px; right: -60px; opacity: 0.07; }
}

@media (max-width: 600px) {
	.ana-hero { padding: 28px 22px 26px; }
	.ana-hero__title { font-size: 25px; }
	.ana-hero__mark { display: none; }
}