/* ==========================================================================
   NFCR guide  [nfcr_guide] + [nfcr_guide_topic]   (0.9.11)
   Sticky navigator (parts that open to show their topics) + one topic at a
   time + Previous / Next. Without JavaScript (no .nfcr-js on <html>) every
   topic is visible and the navigator is a list of jump links.
   ========================================================================== */

.nfcr-guide {
	display: grid;
	grid-template-columns: 340px minmax(0, 1fr);
	gap: 20px;
	align-items: start;
	font-family: var(--nfcr-font);
}

/* ---- Navigator ---- */
.nfcr-guide .nfcr-guide__nav {
	box-sizing: border-box;
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + 20px + var(--nfcr-snav-extra, 0px)); /* 0.9.35: below the Section Nav bar when the page has one */
	max-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px) - 40px - var(--nfcr-snav-extra, 0px));
	overflow-y: auto;
	padding: 22px 16px 18px;
	background: var(--nfcr-white);
	border-radius: var(--nfcr-r-section);
	box-shadow: var(--nfcr-shadow);
}
.nfcr-guide .nfcr-guide__progress { margin: 0 0 10px; padding: 0 10px 16px; border-bottom: 1px solid var(--nfcr-line); }
.nfcr-guide .nfcr-guide__progress-head {
	display: flex;
	justify-content: space-between;
	margin-bottom: 8px;
	font-size: var(--nfcr-fs-meta);
	font-weight: 600;
	color: var(--nfcr-navy);
}
.nfcr-guide .nfcr-guide__bar { height: 6px; border-radius: 6px; background: var(--nfcr-track); overflow: hidden; }
.nfcr-guide .nfcr-guide__bar-fill {
	display: block;
	width: var(--nfcr-guide-pct, 0%);
	height: 100%;
	border-radius: 6px;
	background: var(--nfcr-orange);
	transition: width .3s;
}

.nfcr-guide .nfcr-guide__group { padding: 4px 0; border-top: 1px solid var(--nfcr-surface); }
.nfcr-guide .nfcr-guide__group:first-of-type { border-top: 0; }
.nfcr-guide a.nfcr-guide__group-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px;
	border-radius: 14px;
	color: var(--nfcr-navy);
	text-decoration: none;
}
.nfcr-guide a.nfcr-guide__group-link:hover { background: var(--nfcr-surface-hover); }
.nfcr-guide .nfcr-guide__group-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nfcr-guide .nfcr-guide__group-part {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .9px;
	text-transform: uppercase;
	color: var(--nfcr-orange);
}
.nfcr-guide .nfcr-guide__group-name { font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--nfcr-navy); }
.nfcr-guide .nfcr-guide__group-meta { flex-shrink: 0; font-size: var(--nfcr-fs-label); font-weight: 600; white-space: nowrap; color: var(--nfcr-text-2); }

.nfcr-guide .nfcr-guide__items { margin: 0; padding: 0; list-style: none; }
.nfcr-guide .nfcr-guide__items li { margin: 0; padding: 0; list-style: none; }
.nfcr-guide a.nfcr-guide__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 10px;
	border-radius: 14px;
	font-size: var(--nfcr-fs-meta);
	font-weight: 600;
	line-height: 1.3;
	color: var(--nfcr-navy);
	text-decoration: none;
}
.nfcr-guide a.nfcr-guide__item:hover { background: var(--nfcr-surface-hover); }
.nfcr-guide .nfcr-guide__item-num {
	box-sizing: border-box;
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: 1.5px solid var(--nfcr-on-dark-link);
	border-radius: 50%;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--nfcr-heading-muted);
}
.nfcr-guide .nfcr-guide__item-title { flex: 1; text-align: left; }
.nfcr-guide a.nfcr-guide__item.is-seen .nfcr-guide__item-num { border-color: var(--nfcr-orange-tint); background: var(--nfcr-orange-tint); color: var(--nfcr-orange); }
.nfcr-guide a.nfcr-guide__item.is-current,
.nfcr-guide a.nfcr-guide__item.is-current:hover { background: var(--nfcr-navy); color: #fff; }
.nfcr-guide a.nfcr-guide__item.is-current .nfcr-guide__item-num { border-color: var(--nfcr-accent); background: var(--nfcr-accent); color: #fff; }

/* With JavaScript only the open part shows its topics */
.nfcr-js .nfcr-guide .nfcr-guide__group:not(.is-open) .nfcr-guide__items { display: none; }

/* ---- Panel ---- */
.nfcr-guide .nfcr-guide__panel {
	min-width: 0;
	overflow: hidden;
	background: var(--nfcr-white);
	border-radius: var(--nfcr-r-section);
	box-shadow: var(--nfcr-shadow);
}
.nfcr-guide .nfcr-guide__stage { box-sizing: border-box; min-height: 460px; padding: 44px 52px 40px; }

.nfcr-guide .nfcr-guide__topic { display: flex; flex-direction: column; gap: 22px; }
.nfcr-guide .nfcr-guide__topic + .nfcr-guide__topic { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--nfcr-line); } /* no-JS view: topics one under the other */
.nfcr-js .nfcr-guide .nfcr-guide__topic:not(.is-active) { display: none; }
.nfcr-js .nfcr-guide .nfcr-guide__topic + .nfcr-guide__topic { margin-top: 0; padding-top: 0; border-top: 0; }

.nfcr-guide .nfcr-guide__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.nfcr-guide .nfcr-guide__pill {
	padding: 6px 13px;
	border-radius: var(--nfcr-r-chip);
	background: var(--nfcr-orange-tint);
	font-size: var(--nfcr-fs-label);
	font-weight: 700;
	letter-spacing: .6px;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--nfcr-orange-deep);
}
.nfcr-guide .nfcr-guide__count { font-size: var(--nfcr-fs-meta); font-weight: 600; color: var(--nfcr-text-2); }

.nfcr-guide .nfcr-guide__body { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; min-width: 0; }
.nfcr-guide .nfcr-guide__body > * { flex: 1 1 100%; min-width: 0; margin: 0; }
.nfcr-guide .nfcr-guide__body > .nfcr-btn-wrap { flex: 0 0 auto; } /* buttons in a row sit side by side */

/* Text blocks inside a topic: subheading, small-caps label, check list */
.nfcr-guide .nfcr-guide__body .wpb_text_column h3 {
	margin: 0 0 4px;
	font-size: var(--nfcr-fs-h3-lg);
	letter-spacing: -.3px;
}
.nfcr-guide .nfcr-guide__body .wpb_text_column h4 {
	margin: 0 0 12px;
	font-family: var(--nfcr-font);
	font-size: var(--nfcr-fs-meta);
	font-weight: 700;
	letter-spacing: .8px;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--nfcr-heading-muted);
}
.nfcr-guide .nfcr-guide__body .wpb_text_column ul {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 24px;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
}
.nfcr-guide .nfcr-guide__body .wpb_text_column.nfcr-list-1col ul { grid-template-columns: minmax(0, 1fr); }
.nfcr-guide .nfcr-guide__body .wpb_text_column ul li {
	position: relative;
	margin: 0;
	padding: 0 0 0 26px;
	list-style: none;
	font-size: var(--nfcr-fs-small);
	line-height: 1.5;
	color: var(--nfcr-navy);
}
.nfcr-guide .nfcr-guide__body .wpb_text_column ul li::before {
	content: "";
	position: absolute;
	top: 4px;
	left: 0;
	width: 16px;
	height: 16px;
	background-color: var(--nfcr-orange);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Cards inside a topic sit flat on the white panel */
.nfcr-guide .nfcr-guide__body .nfcr-cards .nfcr-card {
	min-height: 0;
	padding: 18px 20px;
	background: var(--nfcr-surface-hover);
	border: 1px solid var(--nfcr-line);
	border-radius: var(--nfcr-r-callout);
	box-shadow: none;
}
.nfcr-guide .nfcr-guide__body .nfcr-cards a.nfcr-card:hover { border-color: var(--nfcr-line-soft); box-shadow: none; }
.nfcr-guide .nfcr-guide__body .nfcr-cards .nfcr-card__title { font-size: var(--nfcr-fs-title-sm); }
.nfcr-guide .nfcr-guide__body .nfcr-cards .nfcr-card__text { font-size: var(--nfcr-fs-small); line-height: 1.6; color: var(--nfcr-text-2); }

/* Steps inside a topic (screening journey): flat cards, five in a row */
.nfcr-guide .nfcr-guide__body .nfcr-steps { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); margin-top: 0; }
.nfcr-guide .nfcr-guide__body .nfcr-steps .nfcr-step__num { width: 44px; height: 44px; border-color: var(--nfcr-white); font-size: var(--nfcr-fs-body); }
.nfcr-guide .nfcr-guide__body .nfcr-steps .nfcr-step__card {
	padding: 14px 14px;
	background: var(--nfcr-surface-hover);
	border: 1px solid var(--nfcr-line);
	box-shadow: none;
}
.nfcr-guide .nfcr-guide__body .nfcr-steps .nfcr-step__title { font-size: var(--nfcr-fs-small); line-height: 1.3; }

/* ---- Previous / Next ---- */
.nfcr-guide .nfcr-guide__pager { display: none; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--nfcr-line); }
.nfcr-js .nfcr-guide .nfcr-guide__pager { display: grid; }
.nfcr-guide .nfcr-guide__pager button {
	box-sizing: border-box;
	margin: 0;
	padding: 22px 32px;
	border: 0;
	border-radius: 0;
	font-family: var(--nfcr-font);
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
}
.nfcr-guide .nfcr-guide__prev { background: transparent; border-right: 1px solid var(--nfcr-line); text-align: left; }
.nfcr-guide .nfcr-guide__prev:hover:not(:disabled) { background: var(--nfcr-surface-hover); }
.nfcr-guide .nfcr-guide__prev:disabled { opacity: .4; cursor: default; }
.nfcr-guide .nfcr-guide__next { background: var(--nfcr-navy); text-align: right; }
.nfcr-guide .nfcr-guide__next:hover { background: var(--nfcr-navy-hover); }
.nfcr-guide .nfcr-guide__pager-label { display: block; font-size: var(--nfcr-fs-label); font-weight: 700; letter-spacing: .8px; line-height: 1.4; text-transform: uppercase; }
.nfcr-guide .nfcr-guide__prev .nfcr-guide__pager-label { color: var(--nfcr-text-2); }
.nfcr-guide .nfcr-guide__next .nfcr-guide__pager-label { color: var(--nfcr-orange-on-navy); }
.nfcr-guide .nfcr-guide__pager-title { display: block; margin-top: 4px; font-size: var(--nfcr-fs-title-sm); font-weight: 600; line-height: 1.35; }
.nfcr-guide .nfcr-guide__prev .nfcr-guide__pager-title { color: var(--nfcr-navy); }
.nfcr-guide .nfcr-guide__next .nfcr-guide__pager-title { color: #fff; }

/* Targets of jumps and the hero button stop below the top of the screen */
.nfcr-guide .nfcr-guide__topic { scroll-margin-top: 20px; }

/* ---- Tablet and phone (proposed: the design has no mobile view) ---- */
@media (max-width: 1024px) {
	.nfcr-guide { grid-template-columns: minmax(0, 1fr); }
	.nfcr-guide .nfcr-guide__nav { position: static; max-height: none; overflow: visible; }
	.nfcr-guide .nfcr-guide__stage { padding: 36px 32px 32px; }
}
@media (max-width: 767px) {
	.nfcr-guide .nfcr-guide__stage { min-height: 0; padding: 28px 22px 26px; }
	.nfcr-guide .nfcr-guide__body .wpb_text_column ul { grid-template-columns: minmax(0, 1fr); }
	.nfcr-guide .nfcr-guide__pager button { padding: 18px 20px; }
	.nfcr-guide .nfcr-guide__pager-title { font-size: var(--nfcr-fs-body); }
}

/* Print: every topic, no navigator or buttons */
@media print {
	.nfcr-guide { display: block; }
	.nfcr-guide .nfcr-guide__nav,
	.nfcr-guide .nfcr-guide__pager { display: none !important; }
	.nfcr-js .nfcr-guide .nfcr-guide__topic:not(.is-active) { display: flex; }
	.nfcr-js .nfcr-guide .nfcr-guide__topic + .nfcr-guide__topic { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--nfcr-line); }
	.nfcr-guide .nfcr-guide__panel { box-shadow: none; }
}

/* Screen-reader announcement of the topic change (added by guide.js) */
.nfcr-guide .nfcr-guide__live {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

