/*
 * Answer-led interview template.
 * Loaded only for posts using the GRANDSPORT interview templates.
 */

.interview-answer {
	min-width: 0;
	font-family: var(--font-ui, "Zona Pro", "Segoe UI", Roboto, Arial, sans-serif);
}

.interview-answer-template {
	background: linear-gradient(180deg, #f3f5f9 0, #fff 520px);
}

.interview-answer__header {
	width: 100%;
	max-width: none;
	margin-inline: auto;
}

.interview-answer__header h1 {
	max-width: 100%;
	text-wrap: balance;
}

.interview-answer__summary {
	max-width: 100%;
	text-wrap: pretty;
}

.interview-answer__hero {
	width: 100%;
	margin: 0 auto 10px;
	overflow: hidden;
	aspect-ratio: 3 / 2;
	border: 1px solid rgba(30, 40, 74, 0.1);
	box-shadow: 0 18px 42px rgba(14, 32, 58, 0.12);
}

.interview-answer__hero img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center center;
	display: block;
}

.interview-answer-template .ad[data-ad-slot="article_after_hero_leaderboard"] {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 90px !important;
	height: 90px !important;
	max-height: 90px !important;
	margin: 10px auto 12px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: var(--navy) !important;
	box-shadow: none !important;
	gap: 0 !important;
	font-size: 0 !important;
	line-height: 0 !important;
	overflow: hidden !important;
}

.interview-answer-template .ad[data-ad-slot="article_after_hero_leaderboard"] :where(.gs-ad-slot, .v2-ad-content) {
	display: block !important;
	width: 970px !important;
	max-width: 970px !important;
	min-height: 90px !important;
	height: 90px !important;
	max-height: 90px !important;
	margin: 0 auto !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	font-size: 0 !important;
	line-height: 0 !important;
	overflow: hidden !important;
}

.interview-answer-template .ad[data-ad-slot="article_after_hero_leaderboard"] :where(.gs-ad-banner, .gs-gam-ad-unit, ins, iframe, img) {
	width: 970px !important;
	max-width: 100% !important;
	height: 90px !important;
	max-height: 90px !important;
	margin: 0 auto !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	object-fit: cover !important;
	overflow: hidden !important;
}

.interview-answer__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 336px;
	gap: 38px;
	align-items: start;
}

.interview-answer__main {
	min-width: 0;
}

.interview-answer__content {
	padding: clamp(22px, 4vw, 44px);
}

.interview-answer__content > :where(p, h2, h3, ul, ol, blockquote, .wp-block-quote, .wp-block-heading) {
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
}

.interview-answer__content > .gs-interview-section {
	max-width: 100%;
	margin: 0;
}

.interview-answer__content .gs-interview-answer {
	min-width: 0;
}

.interview-answer__content .gs-interview-answer > :where(p, h3, ul, ol, blockquote, .wp-block-quote, .wp-block-heading) {
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
}

.interview-answer__content .gs-interview-answer > :where(.wp-block-image, figure, .wp-block-gallery, .wp-block-embed) {
	max-width: 980px;
	margin-left: auto;
	margin-right: auto;
}

.interview-answer__content .gs-interview-answer > :first-child {
	margin-top: 0;
}

.interview-answer__content .gs-interview-answer > :last-child {
	margin-bottom: 0;
}

.interview-answer__content > :where(.wp-block-image, figure, .wp-block-gallery, .wp-block-embed) {
	max-width: 980px;
	margin-left: auto;
	margin-right: auto;
}

.interview-answer__content .gs-interview-intro,
.interview-answer__content .gs-interview-kicker,
.interview-answer__content .gs-interview-intro-placeholder {
	padding: 14px 16px;
	border-left: 5px solid var(--orange);
	border-radius: var(--radius);
	background: var(--orange-soft);
	color: var(--navy-dark);
	font-size: calc(16px * var(--article-reader-scale, 1));
	font-weight: 850;
}

.interview-answer__content .gs-interview-intro {
	padding: 0;
	border-left: 0;
	border-radius: 0;
	background: transparent;
	color: #344054;
	font-size: calc(19px * var(--article-reader-scale, 1));
	font-weight: 650;
	line-height: 1.68;
}

.interview-answer__content .gs-interview-intro:first-child {
	color: var(--navy-dark);
	font-weight: 850;
}

.interview-answer__content .gs-interview-kicker {
	margin-top: 24px;
	margin-bottom: 22px;
}

.interview-answer__content > h2,
.interview-answer__content > .gs-interview-section > h2,
.interview-answer__content .wp-block-heading:is(h2) {
	scroll-margin-top: 116px;
	margin: 0 0 14px;
	color: var(--navy-dark);
	font-size: clamp(25px, 3.1vw, 38px);
	font-weight: 950;
	line-height: 1.12;
	overflow-wrap: anywhere;
}

.interview-answer__content > h2:not(:first-child),
.interview-answer__content > .gs-interview-section:not(:first-child) > h2,
.interview-answer__content .wp-block-heading:is(h2):not(:first-child) {
	margin-top: clamp(34px, 5vw, 52px);
	padding-top: clamp(22px, 3vw, 30px);
	border-top: 1px solid var(--line);
}

.interview-answer__content > h2::before,
.interview-answer__content > .gs-interview-section > h2::before,
.interview-answer__content .wp-block-heading:is(h2)::before {
	content: "";
	display: block;
	width: 44px;
	height: 5px;
	margin-bottom: 13px;
	background: var(--orange);
}

.interview-answer__content .gs-interview-section-caption {
	margin: -2px 0 20px;
	padding: 13px 15px;
	border-left: 4px solid var(--orange);
	border-radius: 8px;
	background: #f6f8fc;
	color: #3f4858;
	font-size: calc(16px * var(--article-reader-scale, 1));
	font-weight: 750;
	line-height: 1.52;
}

.interview-answer__content > h3,
.interview-answer__content .wp-block-heading:is(h3) {
	scroll-margin-top: 112px;
	margin: 28px 0 12px;
	color: var(--navy-dark);
	font-size: clamp(21px, 2.4vw, 28px);
	font-weight: 950;
	line-height: 1.16;
}

.interview-answer__content .gs-interview-answer > h3,
.interview-answer__content .gs-interview-answer > .wp-block-heading:is(h3) {
	margin-top: 26px;
	margin-bottom: 14px;
	padding: 14px 16px;
	border-left: 5px solid var(--orange);
	border-radius: 8px;
	background: #f3f5fa;
	color: var(--navy-dark);
	font-size: clamp(18px, 1.7vw, 22px);
	font-weight: 900;
	line-height: 1.22;
}

.interview-answer__content p,
.interview-answer__content li {
	color: #252b37;
	font-size: calc(18px * var(--article-reader-scale, 1));
	line-height: 1.78;
	overflow-wrap: anywhere;
}

.interview-answer__content > p {
	text-wrap: pretty;
}

.interview-answer__content > p:first-child {
	margin-top: 0;
}

.interview-answer__content blockquote,
.interview-answer__content .wp-block-quote {
	position: relative;
	margin: clamp(24px, 4vw, 34px) 0;
	padding: clamp(22px, 4vw, 34px);
	border: 0;
	border-radius: var(--radius);
	background: var(--navy-dark);
	color: #fff;
}

.interview-answer__content blockquote::before,
.interview-answer__content .wp-block-quote::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 6px;
	background: var(--orange);
}

.interview-answer__content blockquote p,
.interview-answer__content .wp-block-quote p {
	margin: 0;
	color: #fff;
	font-size: clamp(23px, 4vw, 38px);
	font-weight: 950;
	line-height: 1.14;
}

.interview-answer__content blockquote cite,
.interview-answer__content .wp-block-quote cite {
	display: block;
	margin-top: 12px;
	color: var(--orange);
	font-size: 11px;
	font-style: normal;
	font-weight: 950;
	text-transform: uppercase;
}

.interview-answer__content :where(figure, .wp-block-image, .wp-block-gallery) {
	margin: clamp(24px, 4vw, 34px) 0;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: 0 14px 34px rgba(14, 32, 58, 0.08);
}

.interview-answer__content :where(figure, .wp-block-image) img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0;
}

.interview-answer__content .wp-block-image.aligncenter {
	max-width: 820px;
}

.interview-answer__content .wp-block-image.alignwide,
.interview-answer__content .wp-block-image.is-style-gs-interview-wide {
	max-width: min(100%, 1040px);
}

.interview-answer__content .wp-block-image.is-style-gs-interview-wide img {
	aspect-ratio: 3 / 2;
	object-fit: cover;
	object-position: center;
}

.interview-answer__content .wp-block-image.is-style-gs-interview-portrait {
	max-width: min(100%, 620px);
}

.interview-answer__content .wp-block-image.is-style-gs-interview-portrait img {
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: center top;
}

.interview-answer__content .wp-block-gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	padding: 12px;
}

.interview-answer__content .wp-block-gallery.has-nested-images figure.wp-block-image {
	width: 100% !important;
	margin: 0 !important;
	border: 0;
	box-shadow: none;
}

.interview-answer__content .wp-block-gallery img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: center;
}

.interview-answer__content figcaption {
	margin: 0;
	padding: 10px 14px 12px;
	background: #fff;
	color: var(--muted);
	font-size: 12px;
	font-weight: 750;
	line-height: 1.45;
}

.interview-answer__content .wp-block-separator {
	margin: 30px 0;
	border: 0;
	border-top: 1px solid var(--line);
}

.interview-answer__toc {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: 0 8px 20px rgba(14, 32, 58, 0.055);
}

.interview-answer__mobile-nav {
	display: none;
}

.interview-answer__mobile-nav summary {
	list-style: none;
}

.interview-answer__mobile-nav summary::-webkit-details-marker {
	display: none;
}

.interview-answer__toc {
	padding: 16px;
}

.interview-answer__toc > span {
	display: block;
	color: var(--orange);
	font-size: 10px;
	font-weight: 950;
	text-transform: uppercase;
}

.interview-answer__toc h2 {
	margin: 5px 0 12px;
	color: var(--navy-dark);
	font-size: 20px;
	font-weight: 950;
	line-height: 1.12;
}

.interview-answer__toc nav {
	display: grid;
	gap: 7px;
}

.interview-answer__toc a,
.interview-answer__mobile-nav-panel a {
	display: inline-flex;
	align-items: center;
	min-width: 0;
	min-height: 36px;
	padding: 8px 10px;
	border-radius: var(--radius);
	background: #f3f6fb;
	color: var(--navy-dark);
	font-size: 12px;
	font-weight: 900;
	line-height: 1.22;
	text-decoration: none;
	transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.interview-answer__toc a:hover,
.interview-answer__toc a:focus-visible,
.interview-answer__mobile-nav-panel a:hover,
.interview-answer__mobile-nav-panel a:focus-visible {
	background: var(--orange);
	color: #fff;
	outline: 0;
	transform: translateY(-1px);
}

.interview-answer__sidebar {
	position: sticky;
	top: 106px;
}

@media (max-width: 1180px) {
	.interview-answer__layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.interview-answer__sidebar {
		position: static;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.interview-answer__toc {
		display: none;
	}

	.interview-answer__mobile-nav {
		position: fixed;
		right: 14px;
		right: max(14px, env(safe-area-inset-right));
		bottom: 28px;
		bottom: calc(max(16px, env(safe-area-inset-bottom)) + 12px);
		z-index: 2147483000 !important;
		display: block;
		isolation: isolate;
		transform: translateZ(0);
		width: min(360px, calc(100vw - 28px));
		pointer-events: none;
	}

	.interview-answer__mobile-nav summary {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		min-height: 54px;
		margin-left: auto;
		padding: 9px 16px 9px 17px;
		border: 1px solid rgba(255, 255, 255, 0.18);
		border-radius: 999px;
		background: linear-gradient(135deg, var(--orange) 0%, #ff7a1a 100%);
		color: #fff;
		box-shadow: 0 18px 42px rgba(255, 90, 24, 0.34), 0 12px 30px rgba(5, 13, 35, 0.22);
		cursor: pointer;
		pointer-events: auto;
		position: relative;
		z-index: 2147483001 !important;
		-webkit-tap-highlight-color: transparent;
	}

	.interview-answer__mobile-nav summary::before {
		content: "";
		display: inline-block;
		flex: 0 0 auto;
		width: 20px;
		height: 16px;
		background:
			linear-gradient(currentColor 0 0) 0 0 / 20px 2px no-repeat,
			linear-gradient(currentColor 0 0) 0 7px / 20px 2px no-repeat,
			linear-gradient(currentColor 0 0) 0 14px / 20px 2px no-repeat;
	}

	.interview-answer__mobile-nav summary::after {
		content: "";
		display: inline-block;
		flex: 0 0 auto;
		width: 8px;
		height: 8px;
		border-top: 2px solid currentColor;
		border-right: 2px solid currentColor;
		transform: rotate(-45deg);
		transition: transform 0.18s ease;
	}

	.interview-answer__mobile-nav[open] summary::after {
		transform: rotate(135deg);
	}

	.interview-answer__mobile-nav[open] summary {
		display: grid;
		width: 38px;
		min-width: 38px;
		min-height: 38px;
		padding: 0;
		place-items: center;
		border: 1px solid rgba(30, 40, 74, 0.12);
		background: var(--navy-dark);
		box-shadow: 0 10px 24px rgba(5, 13, 35, 0.24);
	}

	.interview-answer__mobile-nav[open] summary::before,
	.interview-answer__mobile-nav[open] summary::after {
		grid-area: 1 / 1;
		width: 17px;
		height: 2px;
		border: 0;
		background: currentColor;
		transform: rotate(45deg);
	}

	.interview-answer__mobile-nav[open] summary::after {
		transform: rotate(-45deg);
	}

	.interview-answer__mobile-nav-copy {
		display: block;
		min-width: 0;
	}

	.interview-answer__mobile-nav[open] .interview-answer__mobile-nav-copy {
		display: none;
	}

	.interview-answer__mobile-nav-label {
		display: block;
		line-height: 1;
	}

	.interview-answer__mobile-nav-label {
		font-size: 14px;
		font-weight: 950;
		letter-spacing: 0;
	}

	.interview-answer__mobile-nav-panel {
		position: absolute;
		right: 0;
		bottom: calc(100% + 10px);
		display: none;
		width: 100%;
		max-height: min(58vh, 430px);
		max-height: min(58dvh, 430px);
		overflow: auto;
		padding: 12px;
		padding-top: 14px;
		border: 1px solid rgba(30, 40, 74, 0.12);
		border-radius: 12px;
		background: rgba(255, 255, 255, 0.98);
		box-shadow: 0 22px 62px rgba(5, 13, 35, 0.28);
		backdrop-filter: blur(16px);
		counter-reset: interview-mobile-nav;
		z-index: 2147483000 !important;
		overscroll-behavior: contain;
		pointer-events: auto;
		scrollbar-color: var(--orange) rgba(30, 40, 74, 0.08);
		scrollbar-width: thin;
		-webkit-overflow-scrolling: touch;
	}

	.interview-answer__mobile-nav[open] .interview-answer__mobile-nav-panel {
		display: block;
	}

	.interview-answer__mobile-nav-heading {
		position: sticky;
		top: -12px;
		z-index: 1;
		display: block;
		margin: -12px -12px 10px;
		padding: 12px;
		border-bottom: 1px solid rgba(30, 40, 74, 0.08);
		background: rgba(255, 255, 255, 0.97);
	}

	.interview-answer__mobile-nav-title {
		display: block;
		color: var(--orange);
		font-size: 12px;
		font-weight: 950;
		text-transform: uppercase;
	}

	.interview-answer__mobile-nav-panel::-webkit-scrollbar {
		width: 7px;
	}

	.interview-answer__mobile-nav-panel::-webkit-scrollbar-thumb {
		border-radius: 999px;
		background: var(--orange);
	}

	.interview-answer__mobile-nav-panel nav {
		display: grid;
		gap: 8px;
	}

	.interview-answer__mobile-nav-panel a {
		display: grid;
		grid-template-columns: 30px minmax(0, 1fr);
		column-gap: 9px;
		align-items: center;
		min-height: 46px;
		padding: 9px 10px;
		border: 1px solid rgba(30, 40, 74, 0.08);
		background: #f3f6fb;
		box-shadow: none;
		color: var(--navy-dark);
		font-size: 13.5px;
		font-weight: 950;
		line-height: 1.2;
		text-align: left;
		white-space: normal;
	}

	.interview-answer__mobile-nav-panel a::before {
		counter-increment: interview-mobile-nav;
		content: counter(interview-mobile-nav, decimal-leading-zero);
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 30px;
		height: 30px;
		margin-right: 0;
		border-radius: 50%;
		background: var(--orange);
		color: #fff;
		font-size: 10px;
		font-weight: 950;
		line-height: 1;
	}

	.interview-answer__mobile-nav-panel a:hover::before,
	.interview-answer__mobile-nav-panel a:focus-visible::before {
		background: #fff;
		color: var(--orange);
	}
}

@media (max-width: 760px) {
	.interview-answer-template .ad[data-ad-slot="article_after_hero_leaderboard"] {
		min-height: 50px !important;
		height: 50px !important;
		max-height: 50px !important;
		margin: 8px auto 10px !important;
	}

	.interview-answer-template .ad[data-ad-slot="article_after_hero_leaderboard"] :where(.gs-ad-slot, .v2-ad-content) {
		width: 320px !important;
		max-width: 320px !important;
		min-height: 50px !important;
		height: 50px !important;
		max-height: 50px !important;
	}

	.interview-answer-template .ad[data-ad-slot="article_after_hero_leaderboard"] :where(.gs-ad-banner, .gs-gam-ad-unit, ins, iframe, img) {
		width: 320px !important;
		max-width: 100% !important;
		height: 50px !important;
		max-height: 50px !important;
	}
}

@media (max-width: 720px) {
	.interview-answer-template {
		background: #f3f5f9;
	}

	.interview-answer__header {
		padding-top: 22px;
	}

	.interview-answer__header h1 {
		font-size: clamp(34px, 10.5vw, 46px);
		line-height: 1.02;
	}

	.interview-answer__summary {
		font-size: 17px;
		line-height: 1.52;
	}

	.interview-answer__hero {
		aspect-ratio: 3 / 2;
		border-radius: 0;
		box-shadow: 0 14px 30px rgba(14, 32, 58, 0.12);
	}

	.interview-answer__hero img {
		object-position: center center;
	}

	.interview-answer__content {
		margin-top: 18px;
		padding: 20px 17px 22px;
	}

	.interview-answer__content > h2,
	.interview-answer__content > .gs-interview-section > h2,
	.interview-answer__content .wp-block-heading:is(h2) {
		scroll-margin-top: 122px;
		font-size: clamp(24px, 8.1vw, 32px);
		line-height: 1.1;
	}

	.interview-answer__content > h3,
	.interview-answer__content .wp-block-heading:is(h3) {
		scroll-margin-top: 118px;
	}

	.interview-answer__content > h2:not(:first-child),
	.interview-answer__content > .gs-interview-section:not(:first-child) > h2,
	.interview-answer__content .wp-block-heading:is(h2):not(:first-child) {
		margin-top: 34px;
		padding-top: 24px;
	}

	.interview-answer__content .gs-interview-section-caption {
		margin-bottom: 17px;
		padding: 12px 13px;
		font-size: calc(15px * var(--article-reader-scale, 1));
		line-height: 1.48;
	}

	.interview-answer__content p,
	.interview-answer__content li {
		font-size: calc(17px * var(--article-reader-scale, 1));
		line-height: 1.72;
	}

	.interview-answer__content .gs-interview-answer > h3,
	.interview-answer__content .gs-interview-answer > .wp-block-heading:is(h3) {
		margin-top: 22px;
		padding: 12px 13px;
		font-size: 18px;
		line-height: 1.25;
	}

	.interview-answer__content blockquote,
	.interview-answer__content .wp-block-quote {
		margin: 24px -1px;
		padding: 22px 18px 22px 20px;
	}

	.interview-answer__content blockquote p,
	.interview-answer__content .wp-block-quote p {
		font-size: clamp(22px, 7.6vw, 30px);
		line-height: 1.12;
	}

	.interview-answer__content :where(figure, .wp-block-image, .wp-block-gallery) {
		border-radius: 0;
	}

	.interview-answer__content .wp-block-image.is-style-gs-interview-wide img {
		aspect-ratio: 3 / 2;
	}

	.interview-answer__content .wp-block-gallery {
		grid-template-columns: 1fr;
		gap: 10px;
		padding: 10px;
	}

	.interview-answer__mobile-nav {
		right: 12px;
		bottom: 24px;
		bottom: calc(max(14px, env(safe-area-inset-bottom)) + 10px);
		width: min(340px, calc(100vw - 24px));
	}

	.interview-answer__mobile-nav summary {
		width: 100%;
		justify-content: space-between;
		min-height: 48px;
		padding: 8px 14px;
	}

	.interview-answer__mobile-nav-panel {
		max-height: calc(100vh - 168px);
		max-height: calc(100dvh - 168px);
		padding: 10px;
		padding-top: 12px;
		border-radius: 12px 12px 10px 10px;
	}

	.interview-answer__mobile-nav-heading {
		top: -10px;
		margin: -12px -10px 10px;
		padding: 12px 10px;
	}

	.interview-answer__mobile-nav-panel a {
		min-height: 44px;
		font-size: 12px;
	}

	.interview-answer__sidebar {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 420px) {
	.interview-answer__content {
		padding-right: 15px;
		padding-left: 15px;
	}

	.interview-answer__content .wp-block-image.is-style-gs-interview-portrait img {
		aspect-ratio: 1 / 1;
	}

	.interview-answer__mobile-nav {
		right: 10px;
		bottom: 22px;
		bottom: calc(max(12px, env(safe-area-inset-bottom)) + 10px);
		width: min(326px, calc(100vw - 20px));
	}

	.interview-answer__mobile-nav-label {
		font-size: 13px;
	}

	.interview-answer__mobile-nav-panel {
		max-height: calc(100vh - 148px);
		max-height: calc(100dvh - 148px);
	}
}
