/*
 * Pippin State insights (the state page's hub): the state's guide as a feature, the state's other content as a list,
 * then the order buttons. Type and colours follow the Kit (the heading takes the Kit's H2 look through .pt-as-h2, the
 * Order button the Kit's button style); the Colours section of the widget overrides the guide background and accent.
 */
.pt-si {
	--pt-si-text: var(--e-global-color-text, #22294e);
	--pt-si-muted: var(--e-global-color-e4427e8, #757575);
	--pt-si-border: var(--e-global-color-b0de001, #d9d9d9);
	--pt-si-accent: var(--e-global-color-accent, #d83040);
	--pt-si-soft: var(--section-subtle, var(--e-global-color-5f0ace1, #fafafa)); /* Surface- Alt: flips in a dark section */
	display: flex;
	flex-direction: column;
	gap: var(--pt-section-xs, 24px);
	color: var(--pt-si-text);
}

.pt-si__head {
	display: flex;
	flex-direction: column;
	gap: var(--pt-section-xs, 16px);
	max-width: 760px;
}
.pt-si .pt-si__eyebrow,
.pt-si .pt-si__guide-eyebrow {
	margin: 0;
	color: var(--e-global-color-5ab0001, var(--pt-si-accent));
	font-family: var(--e-global-typography-5ab0d00-font-family), sans-serif;
	font-size: var(--e-global-typography-5ab0d00-font-size, 0.875rem);
	font-weight: var(--e-global-typography-5ab0d00-font-weight, 700);
	line-height: var(--e-global-typography-5ab0d00-line-height, 1.4);
	letter-spacing: var(--e-global-typography-5ab0d00-letter-spacing, 0.16em);
	text-transform: uppercase;
}
.pt-si .pt-si__title {
	margin: 0;
	color: var(--pt-si-text);
}
.pt-si .pt-si__lead {
	margin: 0;
	color: var(--pt-si-muted);
	font-size: 1.125rem;
	line-height: 1.5;
}

/* The guide */
.pt-si__guide {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	overflow: hidden;
	border: 1px solid var(--pt-si-border);
	border-radius: 16px;
	background: var(--pt-si-soft);
}
.pt-si__guide--plain {
	grid-template-columns: minmax(0, 1fr);
}
.pt-si__guide-media {
	display: block;
	min-height: 220px;
}
.pt-si__guide-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.pt-si__guide-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: clamp(20px, 4vw, 40px);
}
.pt-si .pt-si__guide-title {
	margin: 0;
	font-size: clamp(1.25rem, 2.2vw, 1.625rem);
	line-height: 1.25;
}
.pt-si .pt-si__guide-title a {
	color: inherit;
	text-decoration: none;
}
.pt-si .pt-si__guide-title a:hover,
.pt-si .pt-si__guide-title a:focus-visible {
	text-decoration: underline;
}
.pt-si .pt-si__guide-excerpt {
	margin: 0;
	color: var(--pt-si-muted);
	line-height: 1.55;
}

/* Everything else */
.pt-si__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
	gap: 0 var(--pt-columns, 40px);
	margin: 0;
	padding: 0;
	list-style: none;
}
.pt-si__item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 0;
	border-bottom: 1px solid var(--pt-si-border);
}
.pt-si__item[hidden] {
	display: none;
}
.pt-si .pt-si__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	margin: 0;
	color: var(--pt-si-muted);
	font-size: 0.8125rem;
	line-height: 1.4;
}
.pt-si__type {
	color: var(--pt-si-accent);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.pt-si .pt-si__link {
	color: var(--pt-si-text);
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
}
.pt-si .pt-si__link:hover,
.pt-si .pt-si__link:focus-visible {
	color: var(--pt-si-accent);
	text-decoration: underline;
}

.pt-si__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
}
.pt-si .pt-si__all {
	padding: 10px 20px;
	border: 1px solid var(--pt-si-border);
	border-radius: 999px;
	background: transparent;
	color: var(--pt-si-text);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.pt-si .pt-si__all:hover {
	border-color: var(--pt-si-text);
}
.pt-si .pt-si__search {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--pt-si-accent);
	font-weight: 600;
	text-decoration: none;
}

/* Buttons and arrows */
.pt-si .pt-si__button--ghost {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border: 1px solid currentColor;
	border-radius: 999px;
	color: var(--pt-si-text);
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
}
.pt-si .pt-si__button--ghost:hover,
.pt-si .pt-si__button--ghost:focus-visible {
	color: var(--pt-si-accent);
}
.pt-si__arrow {
	width: 14px;
	height: 10px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='M1 5h12M9 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%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 14 10'%3E%3Cpath d='M1 5h12M9 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Order */
.pt-si__cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	padding: 20px clamp(20px, 4vw, 32px);
	border-radius: 16px;
	background: var(--pt-si-soft);
}
.pt-si .pt-si__cta-text {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.4;
}
.pt-si__buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center; /* not stretch: a stretched Kit button grew taller with its text at the top */
	gap: 12px;
}
/* Both are Kit buttons (Site Settings > Buttons: size, font, padding, radius); text centred either way. */
.pt-si .pt-si__buttons .elementor-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
/* The second one outlined. The border is an inset shadow, so it adds no height. */
.pt-si .pt-si__buttons .pt-si__button--outline {
	background-color: transparent;
	box-shadow: inset 0 0 0 1px currentColor;
	color: var(--pt-si-text);
}

.pt-si__note {
	padding: 16px;
	border: 1px dashed var(--pt-si-border, #d9d9d9);
	color: #757575;
}

@media (max-width: 767px) {
	.pt-si__guide {
		grid-template-columns: minmax(0, 1fr);
	}
	.pt-si__guide-media {
		min-height: 0;
		aspect-ratio: 16 / 9;
	}
	.pt-si__cta {
		flex-direction: column;
		align-items: flex-start;
	}
}
