/* ============================================================
   GUIDE — Flagship Long-Form Content Template
   Styles for template-guide.php and all guide component types
   ============================================================ */

/* -----------------------------------------------------------
   Reading Progress Bar
   ----------------------------------------------------------- */
.guide-progress {
	position: fixed;
	top: 0;
	left: 0;
	width: 0%;
	height: 3px;
	background: linear-gradient(90deg, var(--color-violet), var(--color-teal));
	z-index: 600;
	transition: width .08s linear;
}

/* -----------------------------------------------------------
   Hero
   ----------------------------------------------------------- */
.guide-hero {
	position: relative;
	padding: 8rem 0 5rem;
	overflow: hidden;
	min-height: 500px;
	display: flex;
	align-items: flex-end;
}

.guide-hero__inner {
	position: relative;
	z-index: 2;
	max-width: 800px;
	margin: 0 auto;
	text-align: center;
}

.guide-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	background: rgba(0,0,0,.7);
	border: none;
	border-radius: 100px;
	padding: .35rem 1rem;
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #fff;
	margin-bottom: 1.5rem;
}

.guide-hero__title {
	font-size: clamp(2rem, 3.5vw, 3rem);
	font-weight: 700;
	color: #fff;
	line-height: 1.15;
	margin-bottom: 1.25rem;
}

.guide-hero__subtitle {
	font-size: 1.125rem;
	color: rgba(255,255,255,.72);
	max-width: 600px;
	line-height: 1.7;
	margin: 0 auto 2rem;
}

.guide-hero__meta {
	display: flex;
	gap: 1.75rem;
	flex-wrap: wrap;
	justify-content: center;
}

.guide-hero__meta-item {
	display: flex;
	align-items: center;
	gap: .5rem;
	font-size: .82rem;
	color: rgba(255,255,255,.55);
}

.guide-hero__meta-item i {
	color: var(--color-teal);
	font-size: .9rem;
}

/* -----------------------------------------------------------
   Page Layout: TOC Sidebar + Content
   ----------------------------------------------------------- */
.guide-wrap {
	background: #fff;
	color: var(--color-navy);
}

.guide-layout {
	display: grid;
	grid-template-columns: 252px 1fr;
	gap: 5rem;
	max-width: 1200px;
	margin: 0 auto;
	padding: 4rem 2rem 7rem;
	align-items: start;
}

/* -----------------------------------------------------------
   Table of Contents
   ----------------------------------------------------------- */
.guide-toc {
	position: sticky;
	top: 90px;
	max-height: calc(100vh - 110px);
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(99,91,255,.2) transparent;
	padding-bottom: 2rem;
}

.guide-toc__label {
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--color-navy);
	opacity: .4;
	margin-bottom: 1.25rem;
}

.guide-toc__list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.guide-toc__part {
	margin-bottom: 1.5rem;
}

.guide-toc__part-label {
	font-size: .66rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--color-violet);
	padding-bottom: .4rem;
	border-bottom: 1px solid rgba(99,91,255,.15);
	margin-bottom: .6rem;
	display: block;
}

.guide-toc__item {
	margin: 0;
}

.guide-toc__link {
	display: block;
	font-size: .8rem;
	color: var(--color-navy);
	opacity: .6;
	text-decoration: none;
	padding: .28rem 0 .28rem .875rem;
	border-left: 2px solid transparent;
	transition: all var(--transition-fast);
	line-height: 1.45;
}

.guide-toc__link:hover,
.guide-toc__link.is-active {
	opacity: 1;
	border-left-color: var(--color-violet);
	color: var(--color-violet);
	padding-left: 1rem;
}

/* -----------------------------------------------------------
   Content Column
   ----------------------------------------------------------- */
.guide-content {
	min-width: 0;
	max-width: 740px;
}

.guide-content p {
	font-size: 1.0625rem;
	line-height: 1.82;
	color: #38475a;
	margin-bottom: 1.1rem;
}

.guide-content > ul,
.guide-content > ol {
	padding-left: 0;
	margin-bottom: 1.25rem;
	list-style: none;
}

.guide-content > ul li,
.guide-content > ol li {
	font-size: 1.0625rem;
	line-height: 1.75;
	color: #38475a;
	margin-bottom: .35rem;
	padding-left: 1.4rem;
	position: relative;
}

.guide-content > ul li::before {
	content: '—';
	position: absolute;
	left: 0;
	color: var(--color-violet);
	font-size: .85em;
}

/* -----------------------------------------------------------
   Section Structure
   ----------------------------------------------------------- */
.guide-section {
	scroll-margin-top: 96px;
	margin-bottom: 4.5rem;
}

/* Dynamic guide pages: H2s with auto-generated IDs from editor content */
.guide-content .prose h2[id] {
	scroll-margin-top: 96px;
}

.guide-section + .guide-section {
	padding-top: 3.5rem;
	border-top: 1px solid rgba(10,37,64,.07);
}

.guide-section-header {
	margin-bottom: 2.25rem;
}

.guide-section-header__part {
	display: block;
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--color-violet);
	margin-bottom: .75rem;
	text-align: left;
	padding-left: 0;
}

.guide-section-header__title {
	font-size: clamp(2.4rem, 4vw, 3.25rem);
	font-weight: 700;
	color: var(--color-navy);
	line-height: 1.15;
	margin: 0;
	text-align: left;
}

/* Subsection */
.guide-subsection {
	margin: 2.75rem 0 1.25rem;
}

.guide-subsection__title {
	font-size: 1.175rem;
	font-weight: 700;
	color: var(--color-navy);
	margin: 0;
	padding-bottom: .6rem;
	border-bottom: 2px solid rgba(99,91,255,.12);
}

/* -----------------------------------------------------------
   Callouts
   ----------------------------------------------------------- */
.guide-callout {
	border-radius: 10px;
	padding: 1.1rem 1.4rem;
	margin: 1.75rem 0;
	display: flex;
	gap: .9rem;
	align-items: flex-start;
}

.guide-callout__icon {
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: .875rem;
	margin-top: .05rem;
}

.guide-callout__body {
	flex: 1;
	min-width: 0;
}

.guide-callout__label {
	font-size: .63rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	margin-bottom: .35rem;
	display: block;
}

.guide-callout__text {
	font-size: .9375rem;
	line-height: 1.65;
	margin: 0;
}

/* Expert insight */
.guide-callout--expert {
	background: rgba(99,91,255,.05);
	border: 1px solid rgba(99,91,255,.18);
}

.guide-callout--expert .guide-callout__icon {
	background: rgba(99,91,255,.1);
	color: var(--color-violet);
}

.guide-callout--expert .guide-callout__label {
	color: var(--color-violet);
}

.guide-callout--expert .guide-callout__text {
	color: var(--color-navy);
	font-style: italic;
	font-weight: 500;
}

/* Warning */
.guide-callout--warning {
	background: rgba(255,138,61,.05);
	border: 1px solid rgba(255,138,61,.22);
}

.guide-callout--warning .guide-callout__icon {
	background: rgba(255,138,61,.12);
	color: var(--color-orange);
}

.guide-callout--warning .guide-callout__label {
	color: var(--color-orange);
}

.guide-callout--warning .guide-callout__text {
	color: #4a3820;
}

/* Stat */
.guide-callout--stat {
	background: rgba(0,212,255,.05);
	border: 1px solid rgba(0,212,255,.22);
}

.guide-callout--stat .guide-callout__icon {
	background: rgba(0,212,255,.12);
	color: #00b5d4;
}

.guide-callout--stat .guide-callout__label {
	color: #0099b3;
}

.guide-callout--stat .guide-callout__text {
	color: var(--color-navy);
	font-weight: 600;
}

/* -----------------------------------------------------------
   Strategic Framework
   ----------------------------------------------------------- */
.guide-framework {
	background: #0A2540;
	color: #fff;
	border-radius: 14px;
	overflow: hidden;
	margin: 2rem 0;
}

/* Override .guide-content p color specificity (0,1,1) for framework child text */
.guide-framework p,
.guide-framework li {
	color: rgba(255,255,255,.72);
}

.guide-framework__header {
	padding: 1.2rem 1.6rem;
	background: rgba(99,91,255,.2);
	border-bottom: 1px solid rgba(255,255,255,.08);
}

.guide-framework__eyebrow {
	font-size: .62rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: rgba(255,255,255,.45);
	margin-bottom: .25rem;
	display: block;
}

.guide-framework__title {
	font-size: .975rem;
	font-weight: 700;
	color: #fff;
	margin: 0;
}

.guide-framework__body {
	padding: 1.5rem 1.6rem;
}

.guide-framework__items {
	display: flex;
	flex-direction: column;
	gap: .7rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.guide-framework__item {
	display: flex;
	gap: .875rem;
	align-items: flex-start;
}

.guide-framework__item-marker {
	flex-shrink: 0;
	min-width: 26px;
	height: 26px;
	border-radius: 6px;
	background: rgba(99,91,255,.25);
	color: #a9a4ff;
	font-size: .68rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: .1rem;
}

.guide-framework__item-bullet {
	flex-shrink: 0;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--color-teal);
	margin-top: .58rem;
}

.guide-framework__item-body {
	flex: 1;
	min-width: 0;
}

.guide-framework__item-name {
	font-size: .875rem;
	font-weight: 700;
	color: #fff;
	margin-bottom: .15rem;
	display: block;
}

.guide-framework__item-desc {
	font-size: .82rem;
	color: rgba(255,255,255,.55);
	line-height: 1.5;
	margin: 0;
}

/* Sub-list inside framework items */
.guide-framework__sublist {
	list-style: none;
	padding: 0;
	margin: .4rem 0 0;
}

.guide-framework__sublist li {
	font-size: .82rem;
	color: rgba(255,255,255,.5);
	padding-left: .8rem;
	position: relative;
	margin-bottom: .2rem;
	line-height: 1.5;
}

.guide-framework__sublist li::before {
	content: '·';
	position: absolute;
	left: 0;
	color: var(--color-teal);
}

.guide-framework__explanation {
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255,255,255,.08);
}

.guide-framework__explanation p {
	font-size: .875rem;
	color: rgba(255,255,255,.55);
	line-height: 1.65;
	margin: 0 0 .5rem;
}

.guide-framework__explanation p:last-child {
	margin-bottom: 0;
}

/* -----------------------------------------------------------
   Checklist
   ----------------------------------------------------------- */
.guide-checklist-wrap {
	background: #f7f8fc;
	border: 1px solid rgba(10,37,64,.07);
	border-radius: 12px;
	padding: 1.4rem 1.6rem;
	margin: 1.75rem 0;
}

.guide-checklist-wrap__title {
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--color-navy);
	margin-bottom: 1rem;
	display: flex;
	align-items: center;
	gap: .5rem;
}

.guide-checklist-wrap__title i {
	color: var(--color-violet);
}

.guide-checklist {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: .55rem;
}

.guide-checklist__item {
	display: flex;
	align-items: flex-start;
	gap: .75rem;
	font-size: .9375rem;
	color: #38475a;
	line-height: 1.5;
}

.guide-checklist__box {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(99,91,255,.35);
	border-radius: 4px;
	background: white;
	margin-top: .1rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* -----------------------------------------------------------
   Case Study
   ----------------------------------------------------------- */
.guide-case-study {
	border: 1px solid rgba(10,37,64,.1);
	border-radius: 14px;
	overflow: hidden;
	margin: 2rem 0;
}

.guide-case-study__header {
	background: #0A2540;
	padding: .9rem 1.4rem;
	display: flex;
	align-items: center;
	gap: .625rem;
}

.guide-case-study__badge {
	font-size: .62rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: rgba(255,255,255,.45);
}

.guide-case-study__divider {
	color: rgba(255,255,255,.2);
	font-size: .7rem;
}

.guide-case-study__type {
	font-size: .82rem;
	font-weight: 600;
	color: rgba(255,255,255,.85);
}

.guide-case-study__body {
	padding: 1.4rem 1.6rem;
}

.guide-case-study__row {
	display: grid;
	grid-template-columns: 80px 1fr;
	gap: .4rem 1rem;
	margin-bottom: .85rem;
	align-items: start;
}

.guide-case-study__row-label {
	font-size: .65rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--color-violet);
	padding-top: .15rem;
}

.guide-case-study__row-value {
	font-size: .9375rem;
	color: #38475a;
	line-height: 1.6;
	margin: 0;
}

.guide-case-study__row-value ul {
	list-style: none;
	padding: 0;
	margin: .25rem 0 0;
}

.guide-case-study__row-value li {
	display: flex;
	align-items: flex-start;
	gap: .5rem;
	font-size: .875rem;
	margin-bottom: .25rem;
	color: #38475a;
}

.guide-case-study__row-value li::before {
	content: '→';
	color: var(--color-violet);
	flex-shrink: 0;
	font-size: .8em;
	margin-top: .15rem;
}

.guide-case-study__outcome {
	background: rgba(99,91,255,.06);
	border: 1px solid rgba(99,91,255,.18);
	border-radius: 8px;
	padding: .8rem 1rem;
	font-size: .9rem;
	color: var(--color-navy);
	font-weight: 600;
	margin-top: 1rem;
}

/* -----------------------------------------------------------
   FAQ Block
   ----------------------------------------------------------- */
.guide-faq {
	margin: 2rem 0;
}

.guide-faq__eyebrow {
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--color-navy);
	opacity: .4;
	margin-bottom: 1rem;
	display: block;
}

.guide-faq__item {
	border-bottom: 1px solid rgba(10,37,64,.08);
}

.guide-faq__question {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 1rem 0;
	cursor: pointer;
	font-size: .9375rem;
	font-weight: 600;
	color: var(--color-navy);
	gap: 1rem;
	user-select: none;
}

.guide-faq__question:hover {
	color: var(--color-violet);
}

.guide-faq__question i {
	flex-shrink: 0;
	color: var(--color-violet);
	transition: transform var(--transition-base);
	margin-top: .15rem;
}

.guide-faq__item.is-open .guide-faq__question i {
	transform: rotate(45deg);
}

.guide-faq__answer {
	display: none;
	padding: 0 0 1.1rem;
	font-size: .9375rem;
	color: #38475a;
	line-height: 1.75;
}

.guide-faq__item.is-open .guide-faq__answer {
	display: block;
}

/* -----------------------------------------------------------
   Template Block (Worksheet)
   ----------------------------------------------------------- */
.guide-template-block {
	background: #f0f0ff;
	border: 1.5px dashed rgba(99,91,255,.3);
	border-radius: 12px;
	padding: 1.4rem 1.5rem;
	margin: 1.75rem 0;
}

.guide-template-block__header {
	display: flex;
	align-items: center;
	gap: .625rem;
	margin-bottom: 1.25rem;
}

.guide-template-block__icon {
	width: 30px;
	height: 30px;
	background: rgba(99,91,255,.12);
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-violet);
	font-size: .85rem;
	flex-shrink: 0;
}

.guide-template-block__title {
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--color-violet);
	margin: 0;
}

.guide-template-block__fields {
	display: flex;
	flex-direction: column;
	gap: .55rem;
}

.guide-template-block__field {
	display: grid;
	grid-template-columns: 170px 1fr;
	gap: .5rem;
	align-items: center;
}

.guide-template-block__field-label {
	font-size: .82rem;
	font-weight: 600;
	color: var(--color-navy);
}

.guide-template-block__field-value {
	height: 30px;
	background: white;
	border: 1px solid rgba(99,91,255,.22);
	border-radius: 5px;
}

/* -----------------------------------------------------------
   Diagram Placeholder
   ----------------------------------------------------------- */
.guide-diagram {
	background: #f7f8fc;
	border: 2px dashed rgba(10,37,64,.12);
	border-radius: 16px;
	padding: 2rem 1.75rem;
	margin: 2rem 0;
}

.guide-diagram__label {
	font-size: .62rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: rgba(10,37,64,.35);
	margin-bottom: 1rem;
	display: flex;
	align-items: center;
	gap: .5rem;
}

.guide-diagram__label i {
	font-size: .8rem;
}

/* Pyramid diagram */
.guide-diagram--pyramid {
	text-align: center;
}

.guide-pyramid {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	margin: 0 auto;
	max-width: 420px;
}

.guide-pyramid__layer {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 42px;
	border-radius: 4px;
	font-size: .75rem;
	font-weight: 600;
	color: #fff;
	text-align: center;
	padding: 0 1rem;
}

.guide-pyramid__layer:nth-child(1) { width: 30%; background: rgba(99,91,255,.9); }
.guide-pyramid__layer:nth-child(2) { width: 43%; background: rgba(99,91,255,.75); }
.guide-pyramid__layer:nth-child(3) { width: 57%; background: rgba(99,91,255,.6); }
.guide-pyramid__layer:nth-child(4) { width: 71%; background: rgba(99,91,255,.48); }
.guide-pyramid__layer:nth-child(5) { width: 85%; background: rgba(99,91,255,.38); }
.guide-pyramid__layer:nth-child(6) { width: 100%; background: rgba(99,91,255,.28); color: var(--color-navy); }

/* Network / Asset map */
.guide-diagram--network .guide-diagram__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: .6rem;
	margin-top: .75rem;
}

.guide-diagram__node {
	background: white;
	border: 1px solid rgba(99,91,255,.2);
	border-radius: 8px;
	padding: .7rem .875rem;
	text-align: center;
}

.guide-diagram__node--center {
	background: #0A2540;
	border-color: transparent;
	grid-column: 2;
}

.guide-diagram__node-label {
	font-size: .72rem;
	font-weight: 700;
	color: var(--color-navy);
	display: block;
	margin-bottom: .15rem;
}

.guide-diagram__node--center .guide-diagram__node-label {
	color: #fff;
}

.guide-diagram__node-sub {
	font-size: .65rem;
	color: rgba(10,37,64,.5);
}

.guide-diagram__node--center .guide-diagram__node-sub {
	color: rgba(255,255,255,.5);
}

/* SERP Mockup */
.guide-diagram--serp .guide-serp {
	background: white;
	border-radius: 8px;
	padding: 1rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: .6rem;
}

.guide-serp__result {
	padding: .6rem .75rem;
	border-radius: 6px;
	border: 1px solid rgba(10,37,64,.08);
}

.guide-serp__result--negative {
	border-color: rgba(255,77,157,.3);
	background: rgba(255,77,157,.04);
}

.guide-serp__result--positive {
	border-color: rgba(99,91,255,.2);
	background: rgba(99,91,255,.04);
}

.guide-serp__rank {
	font-size: .65rem;
	font-weight: 700;
	color: rgba(10,37,64,.4);
	margin-bottom: .2rem;
	letter-spacing: .04em;
}

.guide-serp__title {
	font-size: .8rem;
	font-weight: 600;
	color: #1a73e8;
	margin-bottom: .15rem;
}

.guide-serp__result--negative .guide-serp__title { color: #c53030; }
.guide-serp__result--positive .guide-serp__title { color: #339adf; }

.guide-serp__url {
	font-size: .7rem;
	color: rgba(10,37,64,.45);
}

/* -----------------------------------------------------------
   Guide Bottom CTA
   ----------------------------------------------------------- */
.guide-bottom-cta {
	background: #0A2540;
	border-radius: 20px;
	padding: 3.5rem 3rem;
	text-align: center;
	margin: 5rem 2rem;
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
}

.guide-bottom-cta__eyebrow {
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--color-teal);
	margin-bottom: .75rem;
	display: block;
}

.guide-bottom-cta__title {
	font-size: 1.75rem;
	font-weight: 700;
	color: #fff;
	margin-bottom: .875rem;
}

.guide-bottom-cta__text {
	font-size: 1.0625rem;
	color: rgba(255,255,255,.65);
	max-width: 500px;
	margin: 0 auto 2rem;
	line-height: 1.7;
}

.guide-bottom-cta__actions {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}

/* -----------------------------------------------------------
   Responsive
   ----------------------------------------------------------- */
@media (max-width: 63.999rem) {
	.guide-layout {
		grid-template-columns: 1fr;
		gap: 0;
		padding: 1.75rem 1.25rem 4rem;
	}

	.guide-toc {
		position: static;
		max-height: none;
		background: #f7f8fc;
		border-radius: 12px;
		padding: 1.25rem;
		margin-bottom: 2.5rem;
		border: 1px solid rgba(10,37,64,.07);
	}

	.guide-hero {
		padding: 6rem 0 3.5rem;
		min-height: 420px;
	}

	.guide-case-study__row {
		grid-template-columns: 1fr;
	}

	.guide-case-study__row-label {
		margin-bottom: -.3rem;
	}

	.guide-template-block__field {
		grid-template-columns: 1fr;
	}

	.guide-pyramid__layer:nth-child(1) { width: 50%; }
	.guide-pyramid__layer:nth-child(2) { width: 63%; }
	.guide-pyramid__layer:nth-child(3) { width: 76%; }

	.guide-diagram--network .guide-diagram__grid {
		grid-template-columns: 1fr 1fr;
	}

	.guide-bottom-cta {
		padding: 2.5rem 1.5rem;
		margin: 3rem 1rem;
	}

	.guide-bottom-cta__title {
		font-size: 1.4rem;
	}
}
