.vstfav-page {
	--vstfav-ink: #17324d;
	--vstfav-text: #33485b;
	--vstfav-muted: #586b7b;
	--vstfav-blue: #2067d5;
	--vstfav-border: #d9e2ea;
	--vstfav-heart: #b4235a;
}
.vstfav-page .vstfav-summary,
.vstfav-page .vstfav-notice {
	margin: 0 0 24px;
}
.vstfav-page .vstfav-summary:empty {
	display: none;
}
.vstfav-page .vstfav-summary:focus {
	outline: none;
}
.vstfav-page [hidden] {
	display: none !important;
}
.vstfav-page .vstfav-group {
	--vstfav-color: #586b7b;
	margin: 0 0 40px;
}
.vstfav-page .vstfav-group-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	padding-left: 12px;
	border-left: 5px solid var(--vstfav-color);
	color: inherit;
	font-size: 1.4rem;
	line-height: 1.3;
}
.vstfav-page .vstfav-count {
	min-width: 1.8em;
	padding: 1px 8px;
	border-radius: 999px;
	background: rgba(127, 127, 127, 0.2);
	color: inherit;
	font-size: 0.85rem;
	font-weight: 600;
	text-align: center;
}
.vstfav-page .vstfav-grid {
	display: grid;
	/* At most 3 columns; fewer when a column would drop below 260px. */
	grid-template-columns: repeat(auto-fill, minmax(max(260px, calc((100% - 40px) / 3)), 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.vstfav-page .vstfav-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	border: 1px solid #e0e1e5;
	border-top: 5px solid var(--vstfav-color);
	border-radius: 12px;
	background: #fff;
	color: var(--vstfav-text);
	box-shadow: 0 2px 6px #00000006;
}
.vstfav-page .vstfav-image {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 10;
	margin: 14px 16px 0;
	overflow: hidden;
	border: 1px solid #ebebee;
	border-radius: 7px;
	background: #fafafa;
}
.vstfav-page .vstfav-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.vstfav-page .vstfav-image-fallback {
	color: var(--vstfav-muted);
	font-weight: 600;
}
.vstfav-page .vstfav-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 14px 16px 16px;
}
.vstfav-page .vstfav-type {
	margin: 0 0 4px;
	color: var(--vstfav-color);
	font-size: 12px;
	font-weight: 700;
}
.vstfav-page .vstfav-title {
	margin: 0 0 8px;
	color: var(--vstfav-ink);
	font-size: 1.05rem;
	line-height: 1.3;
}
.vstfav-page .vstfav-description {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.5;
}
/* Open and copy link buttons, stacked full width like the finder's card buttons. */
.vstfav-page .vstfav-links {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: auto;
}
.vstfav-page .vstfav-links .vstfav-open {
	justify-content: center;
}
.vstfav-page .vstfav-copy {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
	min-height: 40px;
	margin: 0;
	padding: 8px 14px;
	border: 2px solid #111;
	border-radius: 7px;
	background: #fff;
	color: #111;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	cursor: pointer;
}
.vstfav-page .vstfav-copy:hover,
.vstfav-page .vstfav-copy:focus {
	border-color: #111;
	background: #f3f3f1;
	color: #111;
}
.vstfav-page .vstfav-copy:focus-visible {
	outline: 3px solid #111;
	outline-offset: 3px;
}
.vstfav-page .vstfav-copy-status {
	min-height: 1em;
	margin: 0;
	color: #14532d;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
}
/* Kept in the layout while empty so screen readers announce it when it fills; the margin cancels the gap. */
.vstfav-page .vstfav-copy-status:empty {
	min-height: 0;
	margin-top: -8px;
}
.vstfav-page .vstfav-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}
.vstfav-page .vstfav-open,
.vstfav-page .vstfav-remove {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	box-sizing: border-box;
	min-height: 40px;
	padding: 8px 14px;
	border-radius: 7px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}
.vstfav-page .vstfav-open {
	border: 1px solid var(--vstfav-blue);
	background: var(--vstfav-blue);
	color: #fff;
}
.vstfav-page .vstfav-open:hover {
	background: #1855b3;
	color: #fff;
}
.vstfav-page .vstfav-remove {
	border: 1px solid var(--vstfav-border);
	background: #fff;
	color: var(--vstfav-heart);
}
.vstfav-page .vstfav-remove:hover {
	border-color: var(--vstfav-heart);
	background: #fdf2f6;
	color: var(--vstfav-heart);
}
.vstfav-page .vstfav-remove:disabled {
	opacity: 0.6;
	cursor: progress;
}
.vstfav-page .vstfav-remove svg {
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.vstfav-page :is(.vstfav-open, .vstfav-remove, .vstfav-group-title):focus-visible {
	outline: 3px solid #111;
	outline-offset: 3px;
}
/* Headings sit on the theme background, so match its text colour. */
.vstfav-page .vstfav-group-title:focus-visible {
	outline-color: currentColor;
}
.vstfav-page .vstfav-error {
	margin: 10px 0 0;
	color: #a8261b;
	font-size: 13px;
}
.vstfav-page .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Filters, styled like the resource finder's */
.vstfav-page .vstfav-filters {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin: 0 0 32px;
	padding: 20px;
	border: 1px solid var(--vstfav-border);
	border-radius: 12px;
	background: #fff;
	color: #171715;
}
.vstfav-page .vstfav-filter-label {
	display: block;
	margin: 0 0 7px;
	color: #171715;
	font-size: 14px;
	font-weight: 700;
}
.vstfav-page :is(.vstfav-subjects, .vstfav-types) {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.vstfav-page :is(.vstfav-filters, .vstfav-no-matches) button {
	margin: 0;
	box-shadow: none;
	font: inherit;
	letter-spacing: normal;
	line-height: 1.2;
	text-transform: none;
	cursor: pointer;
}
.vstfav-page .vstfav-subjects button {
	min-height: 48px;
	padding: 10px 16px;
	border: 3px solid transparent;
	border-radius: 8px;
	background: var(--vstfav-subject-color, #586b7b);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
}
.vstfav-page .vstfav-subjects button:hover {
	background: var(--vstfav-subject-color, #586b7b);
	color: #fff;
	filter: brightness(0.9);
}
.vstfav-page .vstfav-subjects button[aria-pressed="true"] {
	outline: 3px solid #171715;
	outline-offset: 3px;
}
.vstfav-page .vstfav-subjects button[aria-pressed="true"]::after {
	content: " ✓";
}
.vstfav-page .vstfav-subjects .vstfav-subject-all,
.vstfav-page .vstfav-subjects .vstfav-subject-all:hover {
	border: 1px solid #748196;
	background: #fff;
	color: #171715;
	font-size: 14px;
	font-weight: 600;
	filter: none;
}
.vstfav-page .vstfav-subjects .vstfav-subject-all[aria-pressed="true"] {
	border-color: #171715;
	background: #171715;
	color: #fff;
	outline: none;
}
.vstfav-page .vstfav-subjects .vstfav-subject-all[aria-pressed="true"]::after {
	content: none;
}
.vstfav-page .vstfav-types button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 7px 10px;
	border: 2px solid transparent;
	border-radius: 6px;
	background: var(--vstfav-type-color, #586b7b);
	color: #fff;
	font-size: 13px;
	font-weight: 650;
}
.vstfav-page .vstfav-types button:hover {
	background: var(--vstfav-type-color, #586b7b);
	color: #fff;
	filter: brightness(0.9);
}
.vstfav-page .vstfav-types .vstfav-type-all,
.vstfav-page .vstfav-types .vstfav-type-all:hover {
	border-color: #748196;
	background: #fff;
	color: #171715;
	filter: none;
}
.vstfav-page .vstfav-types button[aria-pressed="true"] {
	outline: 2px solid #171715;
	outline-offset: 2px;
}
.vstfav-page .vstfav-types button[aria-pressed="true"]::before {
	content: "✓";
}
.vstfav-page .vstfav-types [data-vstfav-filter-count] {
	opacity: 0.85;
}
.vstfav-page .vstfav-topic {
	box-sizing: border-box;
	display: block;
	width: 100%;
	max-width: 520px;
	min-height: 48px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid #748196;
	border-radius: 7px;
	background-color: #fff;
	color: #171715;
	font: inherit;
	/* 16px keeps phones from zooming in on the menu. */
	font-size: 16px;
}
.vstfav-page .vstfav-filter-options {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 12px;
}
.vstfav-page .vstfav-printables-filter {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	margin: 0;
	color: #171715;
	font-size: 14px;
	cursor: pointer;
}
.vstfav-page .vstfav-printables-filter input {
	width: 18px;
	height: 18px;
	margin: 0;
}
.vstfav-page .vstfav-filters .vstfav-clear,
.vstfav-page .vstfav-filters .vstfav-clear:hover {
	min-height: 44px;
	padding: 8px;
	border: 0;
	background: none;
	color: #171715;
	font-size: 14px;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.vstfav-page .vstfav-showing {
	margin: 0;
	color: #465365;
	font-size: 14px;
}
.vstfav-page .vstfav-showing:empty {
	display: none;
}
.vstfav-page .vstfav-no-matches {
	margin: 0 0 32px;
	padding: 28px;
	border: 1px solid var(--vstfav-border);
	border-radius: 10px;
	background: #fff;
	color: #171715;
}
.vstfav-page .vstfav-no-matches p {
	margin: 0 0 10px;
}
.vstfav-page .vstfav-no-matches .vstfav-no-matches-title {
	font-size: 1.1rem;
	font-weight: 700;
}
.vstfav-page .vstfav-no-matches .vstfav-clear,
.vstfav-page .vstfav-no-matches .vstfav-clear:hover {
	min-height: 46px;
	margin-top: 6px;
	padding: 10px 24px;
	border: 1px solid #ced9e6;
	border-radius: 6px;
	background: #fff;
	color: #171715;
	font-weight: 650;
}
.vstfav-page :is(.vstfav-filters, .vstfav-no-matches) :is(button, select, input):focus-visible {
	outline: 3px solid #125de0;
	outline-offset: 3px;
}

/* Notes */
.vstfav-page .vstfav-note {
	margin: 0 0 14px;
}
.vstfav-page .vstfav-note-display {
	margin: 0 0 8px;
	padding: 8px 10px;
	border-left: 3px solid var(--vstfav-color);
	border-radius: 0 6px 6px 0;
	background: #f6f8fa;
}
.vstfav-page .vstfav-note-label {
	display: block;
	margin: 0 0 4px;
	color: var(--vstfav-muted);
	font-size: 12px;
	font-weight: 700;
}
.vstfav-page .vstfav-note-text {
	margin: 0;
	color: var(--vstfav-ink);
	font-size: 14px;
	line-height: 1.5;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}
.vstfav-page .vstfav-note-edit {
	padding: 4px 0;
	border: 0;
	background: none;
	color: var(--vstfav-blue);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.vstfav-page .vstfav-note-edit:hover {
	background: none;
	color: #1855b3;
}
.vstfav-page .vstfav-note-form textarea {
	display: block;
	box-sizing: border-box;
	width: 100%;
	min-height: 90px;
	padding: 8px 10px;
	border: 1px solid #8fa8c1;
	border-radius: 6px;
	color: var(--vstfav-ink);
	font: inherit;
	font-size: 14px;
	line-height: 1.5;
	resize: vertical;
}
.vstfav-page .vstfav-note-hint {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	margin: 4px 0 8px;
	color: var(--vstfav-muted);
	font-size: 12px;
}
.vstfav-page .vstfav-note-count {
	flex: none;
	font-variant-numeric: tabular-nums;
}
.vstfav-page .vstfav-note-buttons {
	display: flex;
	gap: 8px;
}
.vstfav-page .vstfav-note-save,
.vstfav-page .vstfav-note-cancel {
	min-height: 36px;
	padding: 6px 12px;
	border-radius: 6px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.vstfav-page .vstfav-note-save {
	border: 1px solid var(--vstfav-blue);
	background: var(--vstfav-blue);
	color: #fff;
}
.vstfav-page .vstfav-note-cancel {
	border: 1px solid var(--vstfav-border);
	background: #fff;
	color: var(--vstfav-ink);
}
.vstfav-page .vstfav-note-status:not(:empty) {
	margin: 6px 0 0;
	color: var(--vstfav-muted);
	font-size: 13px;
}
.vstfav-page .vstfav-note-status:empty {
	margin: 0;
}
.vstfav-page :is(.vstfav-note-edit, .vstfav-note-save, .vstfav-note-cancel):focus-visible,
.vstfav-page .vstfav-note-form textarea:focus-visible {
	outline: 3px solid #111;
	outline-offset: 2px;
}

/* Printables */
.vstfav-page .vstfav-printables {
	margin: 0 0 14px;
	padding: 12px;
	border: 1px solid #d6e2f3;
	border-radius: 8px;
	background: #f4f8fe;
}
.vstfav-page .vstfav-printables-heading {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	margin: 0 0 8px;
	color: var(--vstfav-ink);
	font-size: 13px;
	font-weight: 700;
}
.vstfav-page .vstfav-printables-heading span + span {
	color: var(--vstfav-muted);
	font-weight: 500;
}
.vstfav-page .vstfav-printables-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
}
.vstfav-page .vstfav-printables-choice {
	box-sizing: border-box;
	flex: 1 1 100%;
	min-height: 44px;
	padding: 8px;
	border: 1px solid #8fa8c1;
	border-radius: 6px;
	background: #fff;
	color: var(--vstfav-ink);
	font: inherit;
	font-size: 14px;
}
.vstfav-page .vstfav-printables-label {
	flex: 1 1 auto;
	color: var(--vstfav-ink);
	font-size: 14px;
	font-weight: 600;
}
.vstfav-page .vstfav-printables-buttons {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
}
.vstfav-page .vstfav-printables-preview {
	color: var(--vstfav-muted);
	font-size: 13px;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.vstfav-page .vstfav-printables-preview:hover {
	color: var(--vstfav-blue);
}
.vstfav-page .vstfav-printables-download {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 8px 12px;
	border: 1px solid var(--vstfav-blue);
	border-radius: 7px;
	background: #fff;
	color: var(--vstfav-blue);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
}
.vstfav-page .vstfav-printables-download:hover {
	background: #e9f1fd;
	color: #1855b3;
}
.vstfav-page .vstfav-printables-download[aria-busy="true"] {
	opacity: 0.6;
	cursor: progress;
}
.vstfav-page .vstfav-printables-download svg {
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.vstfav-page .vstfav-printables-result:not(:empty) {
	margin-top: 8px;
	color: var(--vstfav-ink);
	font-size: 13px;
}
.vstfav-page :is(.vstfav-printables-preview, .vstfav-printables-download, .vstfav-printables-choice):focus-visible {
	outline: 3px solid #111;
	outline-offset: 2px;
}

/* Printable preview dialog */
.vstfav-page .vstfav-preview {
	box-sizing: border-box;
	width: min(1100px, 94vw);
	max-width: 94vw;
	max-height: 94vh;
	padding: 22px;
	overflow: auto;
	border: 1px solid #d6dae2;
	border-radius: 12px;
	background: #fff;
	color: var(--vstfav-text);
	box-shadow: 0 25px 90px #0006;
}
.vstfav-page .vstfav-preview::backdrop {
	background: #0009;
	backdrop-filter: blur(3px);
}
.vstfav-page .vstfav-preview-top {
	display: flex;
	flex-wrap: wrap;
	align-items: start;
	justify-content: space-between;
	gap: 12px 20px;
	margin-bottom: 14px;
}
.vstfav-page .vstfav-preview-eyebrow {
	margin: 0 0 6px;
	color: var(--vstfav-muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.vstfav-page .vstfav-preview-title {
	margin: 0;
	color: var(--vstfav-ink);
	font-size: 1.3rem;
	line-height: 1.4;
}
.vstfav-page .vstfav-preview-close {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	margin-left: auto;
	padding: 8px 14px;
	border: 1px solid var(--vstfav-border);
	border-radius: 7px;
	background: #fff;
	color: var(--vstfav-ink);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.vstfav-page .vstfav-preview-image {
	display: block;
	max-width: 100%;
	height: auto;
	max-height: 68vh;
	margin: 0 auto;
	object-fit: contain;
	background: #fff;
}
.vstfav-page .vstfav-preview-description {
	max-width: 850px;
	margin: 14px auto 0;
	font-size: 15px;
	line-height: 1.6;
}
.vstfav-page .vstfav-preview-error {
	margin: 14px 0 0;
	color: #a8261b;
	font-size: 14px;
}
.vstfav-page .vstfav-preview-launch {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	margin-top: 14px;
	padding: 10px 18px;
	border-radius: 7px;
	background: var(--vstfav-blue);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}
.vstfav-page .vstfav-preview-launch:hover {
	background: #1855b3;
	color: #fff;
}
.vstfav-page :is(.vstfav-preview-close, .vstfav-preview-launch):focus-visible {
	outline: 3px solid #111;
	outline-offset: 3px;
}
/* Printable access dialog */
.vstfav-page .vstfav-access {
	box-sizing: border-box;
	width: calc(100% - 32px);
	max-width: 460px;
	padding: 24px;
	border: 0;
	border-radius: 12px;
	background: #fff;
	color: var(--vstfav-ink);
	font-size: 16px;
	line-height: 1.55;
}
.vstfav-page .vstfav-access::backdrop {
	background: #0008;
}
.vstfav-page .vstfav-access-top {
	display: flex;
	align-items: start;
	justify-content: space-between;
	gap: 12px;
}
.vstfav-page .vstfav-access-title {
	margin: 5px 0 15px;
	color: var(--vstfav-ink);
	font-size: 1.4rem;
	line-height: 1.2;
}
.vstfav-page .vstfav-access-close {
	flex: none;
	min-width: 44px;
	min-height: 44px;
	border: 1px solid var(--vstfav-border);
	border-radius: 6px;
	background: #fff;
	color: var(--vstfav-ink);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}
.vstfav-page .vstfav-access-content p {
	margin: 12px 0;
}
.vstfav-page .vstfav-access-content a {
	color: var(--vstfav-blue);
	text-underline-offset: 3px;
}
.vstfav-page .vstfav-access-content .vstfav-access-primary {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 15px;
	border-radius: 7px;
	background: var(--vstfav-blue);
	color: #fff;
	font-weight: 650;
	text-decoration: none;
}
.vstfav-page .vstfav-access-content .vstfav-access-primary:hover {
	background: #1855b3;
	color: #fff;
}
.vstfav-page .vstfav-access :is(a, button):focus-visible {
	outline: 3px solid #111;
	outline-offset: 3px;
}
@media (max-width: 600px) {
	.vstfav-page .vstfav-filters {
		padding: 16px;
	}
	.vstfav-page .vstfav-subjects button {
		flex: 1 1 auto;
		font-size: 14px;
	}
	.vstfav-page .vstfav-preview {
		padding: 15px;
	}
	.vstfav-page .vstfav-preview-title {
		font-size: 1.1rem;
	}
}
