/*
 * WinScholarships theme styles.
 * Loaded on the site AND in the block editor (add_editor_style), so the
 * editor looks like the live page. Colors, fonts and sizes come from
 * theme.json presets; values here mirror the approved designs.
 */

/* ---------------------------------------------------------------------
 * Base
 * ------------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a {
	text-underline-offset: 3px;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
	border-radius: 4px;
}

/* On navy, the focus ring is gold so it stays visible. */
.ws-site-header :focus-visible,
.ws-site-footer :focus-visible {
	outline-color: var(--wp--preset--color--gold);
}

time,
.ws-tabular,
.ws-count-line {
	font-variant-numeric: tabular-nums;
}

summary::marker {
	color: var(--wp--preset--color--primary);
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
		animation: none !important;
	}
}

/* Skip link (added by WordPress for block themes). */
.skip-link.screen-reader-text:focus {
	clip: auto !important;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	padding: 8px 14px;
	border-radius: 6px;
	top: 8px;
	left: 8px;
	z-index: 100000;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(11, 37, 69, .25);
}

/* Full-width bands keep their content in the 1240px column with 24px gutters. */
.ws-site-header__top,
.ws-site-footer__inner {
	padding-inline: max(24px, calc((100% - 1240px) / 2 + 24px));
}

/* ---------------------------------------------------------------------
 * Logo (winscholarships/logo)
 * ------------------------------------------------------------------- */

.ws-logo {
	display: flex;
	align-items: center;
	margin: 0;
	flex: none;
	line-height: 0;
	text-decoration: none;
}

.ws-logo__img {
	display: block;
	width: auto;
	height: 36px;
}

.ws-logo--footer .ws-logo__img {
	height: 32px;
}

/* ---------------------------------------------------------------------
 * Header
 * ------------------------------------------------------------------- */

.ws-site-header {
	position: relative;
	z-index: 2;
}

.ws-site-header__top {
	padding-block: 16px;
	gap: 14px 28px !important;
}

/* Header search: dark field with the icon inside, no button. */
.wp-block-search.is-style-ws-header {
	flex: 1 1 280px;
	max-width: 520px;
	margin: 0;
}

.wp-block-search.is-style-ws-header .wp-block-search__inside-wrapper {
	height: 44px;
	padding: 0 14px 0 42px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 8px;
	background: rgba(255, 255, 255, .08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23C7D2E3' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 14px center;
}

.wp-block-search.is-style-ws-header .wp-block-search__input {
	height: 100%;
	min-width: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--white);
	font: inherit;
	font-size: var(--wp--preset--font-size--s);
}

.wp-block-search.is-style-ws-header .wp-block-search__input::placeholder {
	color: var(--wp--preset--color--on-dark-muted);
	opacity: 1;
}

.wp-block-search.is-style-ws-header .wp-block-search__input:focus-visible {
	outline: none;
}

.wp-block-search.is-style-ws-header .wp-block-search__inside-wrapper:focus-within {
	outline: 3px solid var(--wp--preset--color--gold);
	outline-offset: 2px;
}

.ws-site-header .ws-site-header__cta {
	margin-left: auto !important;
}

/* Gold button with a bell (deadline alerts). */
.wp-block-button.is-style-ws-gold .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--ink);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--s);
	white-space: nowrap;
	border-radius: 8px;
}

.wp-block-button.is-style-ws-gold .wp-block-button__link::before {
	content: "";
	width: 18px;
	height: 18px;
	flex: none;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/%3E%3Cpath d='M10 21a2 2 0 0 0 4 0'/%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='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/%3E%3Cpath d='M10 21a2 2 0 0 0 4 0'/%3E%3C/svg%3E") center / contain no-repeat;
}

.wp-block-button.is-style-ws-gold .wp-block-button__link:hover,
.wp-block-button.is-style-ws-gold .wp-block-button__link:focus {
	background: #FFC933;
	color: var(--wp--preset--color--ink);
}

/* Outline button (secondary). */
.wp-block-button.is-style-ws-outline .wp-block-button__link {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--primary);
	box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--primary);
}

.wp-block-button.is-style-ws-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--primary-tint);
	color: var(--wp--preset--color--primary-dark);
}

/* Primary menu row. */
.ws-site-nav {
	border-top: 1px solid rgba(255, 255, 255, .1);
	padding-inline: max(12px, calc((100% - 1240px) / 2 + 12px));
	gap: 4px !important;
	overflow-x: auto;
	white-space: nowrap;
	scrollbar-width: thin;
}

.ws-primary-nav.wp-block-navigation {
	gap: 4px;
	flex-wrap: nowrap;
}

.ws-primary-nav .wp-block-navigation__container {
	gap: 4px;
	flex-wrap: nowrap;
}

.ws-site-header .ws-primary-nav .wp-block-navigation-item__content {
	display: block;
	padding: 12px !important;
	color: var(--wp--preset--color--on-dark);
	text-decoration: none;
	font-size: var(--wp--preset--font-size--s);
	font-weight: 500;
	line-height: 1.5;
	border-bottom: 3px solid transparent;
}

.ws-site-header .ws-primary-nav .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--white);
	border-bottom-color: rgba(242, 183, 5, .5);
}

.ws-site-header .ws-primary-nav .current-menu-item > .wp-block-navigation-item__content,
.ws-site-header .ws-primary-nav .wp-block-navigation-item__content[aria-current="page"] {
	color: var(--wp--preset--color--white);
	border-bottom-color: var(--wp--preset--color--gold);
}

p.ws-count-line.ws-count-line--updated {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 !important;
	padding: 0 12px;
	font-size: var(--wp--preset--font-size--xs);
	color: var(--wp--preset--color--on-dark-muted);
	white-space: nowrap;
}

.ws-count-line--updated .ws-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #34C38A;
	flex: none;
}

/* ---------------------------------------------------------------------
 * Plain page (page.html)
 * ------------------------------------------------------------------- */

.ws-main--page {
	padding-bottom: 56px;
}

.ws-page-header {
	padding-top: 40px;
}

.ws-page-header > * + * {
	margin-block-start: 10px !important;
}

.ws-page-header__meta {
	gap: 0.3em !important;
	font-size: .875rem;
	color: var(--wp--preset--color--muted);
}

.ws-page-header__meta > * {
	margin: 0;
}

.ws-page-content {
	margin-block-start: 20px !important;
}

/* Section headings in running copy sit 40px below what comes before. */
.ws-page-content > h2,
.editor-styles-wrapper .is-root-container > h2 {
	margin-block-start: 40px;
}

.ws-page-content > h2 + *,
.editor-styles-wrapper .is-root-container > h2 + * {
	margin-block-start: 14px;
}

.ws-page-content > .is-style-ws-steps,
.ws-page-content > .wp-block-table,
.ws-page-content > .is-style-ws-warning {
	margin-block-start: 32px;
}

p.is-style-ws-lead {
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.7;
}

p.is-style-ws-meta {
	font-size: .875rem;
	color: var(--wp--preset--color--muted);
}

/* Lists in running copy. */
:where(.ws-page-content, .editor-styles-wrapper) ul.wp-block-list:not([class*="is-style-"]),
:where(.ws-page-content, .editor-styles-wrapper) ol.wp-block-list:not([class*="is-style-"]) {
	padding-left: 1.25em;
}

:where(.ws-page-content, .editor-styles-wrapper) .wp-block-list:not([class*="is-style-"]) > li + li {
	margin-top: 8px;
}

/* Numbered steps: a group holding one group per step (heading + paragraph). */
.wp-block-group.is-style-ws-steps {
	counter-reset: ws-step;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.wp-block-group.is-style-ws-steps > * {
	margin: 0 !important;
}

.wp-block-group.is-style-ws-steps > .wp-block-group {
	counter-increment: ws-step;
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-height: 88px;
	padding: 22px 22px 22px 82px;
	border: 1px solid #DDE3FB;
	border-radius: 14px;
	background: var(--wp--preset--color--white);
}

.wp-block-group.is-style-ws-steps > .wp-block-group::before {
	content: counter(ws-step);
	position: absolute;
	left: 22px;
	top: 22px;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	display: grid;
	place-items: center;
	font-family: var(--wp--preset--font-family--source-serif);
	font-weight: 700;
	font-size: 1.25rem;
	line-height: 1;
}

.wp-block-group.is-style-ws-steps > .wp-block-group:nth-child(3n + 2)::before {
	background: var(--wp--preset--color--verified);
}

.wp-block-group.is-style-ws-steps > .wp-block-group:nth-child(3n + 3)::before {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--gold);
}

.wp-block-group.is-style-ws-steps > .wp-block-group > * {
	margin: 0 !important;
}

.wp-block-group.is-style-ws-steps h2,
.wp-block-group.is-style-ws-steps h3 {
	font-size: 1.1875rem;
}

.wp-block-group.is-style-ws-steps p {
	font-size: 1rem;
	line-height: 1.65;
	color: #374151;
}

/* Table: rounded frame, grey header row, row rules, scrolls sideways on phones. */
.wp-block-table.is-style-ws-table {
	overflow-x: auto;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 10px;
}

.wp-block-table.is-style-ws-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--wp--preset--font-size--s);
}

.wp-block-table.is-style-ws-table th,
.wp-block-table.is-style-ws-table td {
	border: 0;
	padding: 12px 14px;
	text-align: left;
	vertical-align: middle;
}

.wp-block-table.is-style-ws-table thead {
	border: 0;
	background: var(--wp--preset--color--surface);
}

.wp-block-table.is-style-ws-table th {
	font-weight: 600;
	color: var(--wp--preset--color--ink);
}

.wp-block-table.is-style-ws-table tbody tr {
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.wp-block-table.is-style-ws-table tbody tr:last-child {
	border-bottom: 0;
}

.wp-block-table.is-style-ws-table tbody td {
	color: #374151;
}

.wp-block-table.is-style-ws-table tbody td:first-child {
	font-weight: 600;
	color: var(--wp--preset--color--ink);
}

.wp-block-table.is-style-ws-table figcaption {
	padding: 10px 14px;
	margin: 0;
	border-top: 1px solid var(--wp--preset--color--border);
	text-align: left;
}

/* Warning box: red rule, warning icon, bold first line. */
.wp-block-group.is-style-ws-warning {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-height: 72px;
	padding: 18px 20px 18px 70px;
	border-radius: 10px;
	background: #FEF2F2;
	border: 1px solid #FECACA;
	border-left: 4px solid var(--wp--preset--color--urgent);
}

.wp-block-group.is-style-ws-warning::before {
	content: "";
	position: absolute;
	left: 20px;
	top: 18px;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--wp--preset--color--urgent-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23B91C1C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 2 20h20z'/%3E%3Cpath d='M12 10v4M12 17h.01'/%3E%3C/svg%3E") no-repeat center;
}

.wp-block-group.is-style-ws-warning > * {
	margin: 0 !important;
}

.wp-block-group.is-style-ws-warning > p:first-of-type {
	font-weight: 700;
	color: #991B1B;
}

.wp-block-group.is-style-ws-warning > p:not(:first-of-type) {
	font-size: 1rem;
	line-height: 1.6;
	color: var(--wp--preset--color--text);
}

/* Panel: white card with a soft shadow (forms, callouts). */
.wp-block-group.is-style-ws-panel {
	padding: 36px;
	border-radius: 14px;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	box-shadow: var(--wp--preset--shadow--card);
}

/* ---------------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------------- */

.ws-site-footer {
	border-top: 4px solid var(--wp--preset--color--gold);
	font-size: var(--wp--preset--font-size--s);
	margin-block-start: 0 !important;
}

.ws-site-footer a {
	color: var(--wp--preset--color--on-dark);
}

.ws-site-footer a:hover {
	color: var(--wp--preset--color--white);
}

.ws-site-footer__inner {
	padding-block: 48px 32px;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.ws-site-footer__inner > * {
	margin: 0 !important;
}

.ws-site-footer__cols {
	gap: 32px 48px !important;
	align-items: flex-start;
}

.ws-site-footer__about {
	flex: 2 1 300px;
	max-width: 440px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ws-site-footer__about > * {
	margin: 0 !important;
}

.ws-site-footer__about p {
	line-height: 1.6;
}

.ws-site-footer__about .ws-site-footer__small {
	font-size: .875rem;
	line-height: 1.55;
}

.ws-site-footer__about .ws-site-footer__small a {
	color: var(--wp--preset--color--white);
}

.ws-check-line {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--wp--preset--color--white);
	font-weight: 600;
}

.ws-check-line::before {
	content: "";
	width: 16px;
	height: 16px;
	flex: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%2334C38A'/%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-4.8' fill='none' stroke='%230B2545' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}

.ws-site-footer__col {
	flex: 1 1 160px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ws-site-footer__col > * {
	margin: 0 !important;
}

.ws-site-footer__heading {
	color: var(--wp--preset--color--white);
	font-weight: 600;
}

ul.is-style-ws-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: inherit;
	line-height: 1.6;
}

ul.is-style-ws-links a {
	text-decoration: none;
}

ul.is-style-ws-links a:hover {
	text-decoration: underline;
}

ul.is-style-ws-inline-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	font-size: inherit;
	line-height: 1.6;
}

.ws-site-footer__bottom {
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, .14);
	font-size: var(--wp--preset--font-size--xs);
	gap: 12px 24px !important;
}

.ws-site-footer__bottom p,
.ws-site-footer__bottom nav {
	margin: 0;
}

/* ---------------------------------------------------------------------
 * Phones
 * ------------------------------------------------------------------- */

@media (max-width: 600px) {
	.ws-main--page {
		padding-bottom: 40px;
	}

	.wp-block-group.is-style-ws-panel {
		padding: 24px;
	}

	/* 44px tap targets in link lists. */
	ul.is-style-ws-links a,
	ul.is-style-ws-inline-links a {
		display: inline-block;
		min-height: 44px;
		line-height: 44px;
	}

	ul.is-style-ws-links {
		gap: 0;
	}
}

/* Menu labels never wrap (the editor wraps them otherwise). */
.ws-primary-nav .wp-block-navigation-item,
.ws-primary-nav .wp-block-navigation-item__content,
.ws-primary-nav .wp-block-navigation-item__label {
	white-space: nowrap;
}

.ws-site-nav > * {
	flex-shrink: 0;
}

/* =====================================================================
 * Listing blocks from the WinScholarships Directory plugin
 * (cards, badges, chips, count line, closing soon, closed list,
 *  trust strip, tiles, pagination). Markup: plugin class-ws-blocks.php.
 * =================================================================== */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.ws-icon {
	flex: none;
}

/* Card grid */
.ws-cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
	gap: 20px;
}

.ws-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 22px;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 10px;
	box-shadow: 0 1px 2px rgba(11, 37, 69, .06), 0 4px 12px rgba(11, 37, 69, .06);
	overflow: hidden;
	transition: border-color .15s, transform .15s, box-shadow .15s;
	margin: 0 !important;
}

.ws-card:hover,
.ws-card:focus-within {
	border-color: var(--wp--preset--color--primary);
	transform: translateY(-2px);
	box-shadow: 0 2px 4px rgba(11, 37, 69, .06), 0 12px 28px rgba(11, 37, 69, .12);
}

.ws-card > * {
	margin: 0;
}

/* Colored top stripe by date state (the badge text says the same thing). */
.ws-card__stripe {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	height: 4px;
	background: var(--wp--preset--color--verified);
}

.ws-card--urgent .ws-card__stripe { background: var(--wp--preset--color--urgent); }
.ws-card--soon .ws-card__stripe { background: #D97706; }
.ws-card--upcoming .ws-card__stripe { background: var(--wp--preset--color--primary); }
.ws-card--closed .ws-card__stripe { background: #6B7280; }
.ws-card--tbd .ws-card__stripe { background: #9CA3AF; }

.ws-card__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

/* Badges */
.ws-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 6px;
	font-weight: 600;
	font-size: var(--wp--preset--font-size--xs);
	line-height: 1.4;
	font-variant-numeric: tabular-nums;
}

.ws-badge--amount {
	background: var(--wp--preset--color--verified-tint);
	color: var(--wp--preset--color--money);
	font-weight: 700;
	font-size: 1rem;
}

.ws-badge--urgent { background: var(--wp--preset--color--urgent-tint); color: var(--wp--preset--color--urgent); }
.ws-badge--soon { background: #FEF3C7; color: #92400E; }
.ws-badge--normal { background: #E6ECF5; color: var(--wp--preset--color--ink); }
.ws-badge--rolling { background: var(--wp--preset--color--verified-tint); color: var(--wp--preset--color--money); }
.ws-badge--upcoming { background: var(--wp--preset--color--primary-tint); color: var(--wp--preset--color--primary); }
.ws-badge--closed { background: #F3F4F6; color: #374151; border: 1px solid #D1D5DB; }
.ws-badge--tbd { background: #F3F4F6; color: #374151; border: 1px solid #D1D5DB; }

.ws-card__head {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.ws-card__head > * {
	margin: 0;
}

.ws-card__title {
	font-family: var(--wp--preset--font-family--source-serif);
	font-weight: 600;
	font-size: 1.25rem;
	line-height: 1.3;
	color: var(--wp--preset--color--ink);
	text-wrap: pretty;
}

.ws-card__title a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.ws-card__title a:hover {
	color: var(--wp--preset--color--ink);
	text-decoration: underline;
}

.ws-card__provider {
	font-size: .875rem;
	color: var(--wp--preset--color--muted);
}

.ws-card__reopen {
	font-size: .875rem;
	font-weight: 500;
	color: #374151;
}

.ws-card__elig {
	font-size: var(--wp--preset--font-size--s);
	line-height: 1.55;
	color: var(--wp--preset--color--text);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Chips */
.ws-card__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ws-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	color: var(--wp--preset--color--text);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 500;
	line-height: 1.5;
	text-decoration: none;
}

a.ws-chip:hover {
	background: var(--wp--preset--color--primary-tint);
	border-color: #C7D2FE;
	color: var(--wp--preset--color--text);
}

.ws-chip--county {
	background: #E6ECF5;
	border-color: var(--wp--preset--color--on-dark-muted);
	color: var(--wp--preset--color--ink);
	font-weight: 600;
}

.ws-card__foot {
	margin-top: auto !important;
	padding-top: 14px;
	border-top: 1px solid var(--wp--preset--color--border);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.ws-card__checked {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 500;
	color: var(--wp--preset--color--verified);
}

.ws-card__details {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 0 14px;
	border-radius: 8px;
	background: var(--wp--preset--color--primary-tint);
	color: var(--wp--preset--color--primary);
	font-weight: 600;
	font-size: .875rem;
	text-decoration: none;
}

.ws-card__details:hover,
.ws-card__details:focus {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}

/* Pagination under a card grid */
.ws-pagination {
	margin-top: 24px;
}

.ws-pagination ul.page-numbers {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.ws-pagination .page-numbers li {
	margin: 0;
}

.ws-pagination a.page-numbers,
.ws-pagination button.page-numbers,
.ws-pagination span.page-numbers {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 10px;
	border-radius: 8px;
	border: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--s);
	text-decoration: none;
	font-variant-numeric: tabular-nums;
}

.ws-pagination button.page-numbers {
	font-family: inherit;
	cursor: pointer;
}

.ws-pagination a.page-numbers:hover,
.ws-pagination button.page-numbers:hover {
	border-color: var(--wp--preset--color--primary);
}

.ws-pagination span.page-numbers.current {
	border-color: var(--wp--preset--color--primary);
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}

.ws-pagination .page-numbers.next,
.ws-pagination .page-numbers.prev {
	border-color: transparent;
	background: transparent;
	color: var(--wp--preset--color--primary);
	padding: 0 14px;
}

.ws-pagination span.page-numbers.dots {
	border-color: transparent;
}

/* State page filters (WS_List_Filters): a form, never links. */
.ws-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 14px 16px;
	margin: 0 0 20px;
	padding: 18px 20px;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
}

.ws-filters__title {
	flex: 0 0 100%;
	margin: 0;
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.ws-filters__fields {
	flex: 1 1 auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
	gap: 12px 16px;
}

.ws-filters__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	font-size: .875rem;
	font-weight: 600;
	color: var(--wp--preset--color--ink);
}

.ws-filters__field select {
	width: 100%;
	min-height: 44px;
	padding: 8px 36px 8px 12px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 8px;
	background: var(--wp--preset--color--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
	color: var(--wp--preset--color--text);
	font: inherit;
	font-weight: 400;
	font-size: 1rem;
	-webkit-appearance: none;
	appearance: none;
}

.ws-filters__field select:hover {
	border-color: var(--wp--preset--color--primary);
}

.ws-filters__apply {
	flex: none;
	min-height: 44px;
}

/* With the script running, choices apply as soon as they change. */
.ws-filters.is-live .ws-filters__apply {
	display: none;
}

.ws-results {
	scroll-margin-top: 24px;
}

.ws-results:focus {
	outline: none;
}

.ws-results[aria-busy="true"] {
	opacity: .55;
	transition: opacity .15s;
}

p.ws-filters__status {
	margin: 0 0 16px;
	font-size: 1rem;
	color: #374151;
}

p.ws-filters__status strong {
	color: var(--wp--preset--color--ink);
}

.ws-filters__clear {
	margin-left: 6px;
	font-weight: 600;
	white-space: nowrap;
}

p.ws-filters__empty {
	margin: 0;
	padding: 24px;
	border: 1px dashed var(--wp--preset--color--border);
	border-radius: 12px;
	text-align: center;
	color: var(--wp--preset--color--muted);
}

/* Count line */
p.ws-count-line {
	font-size: var(--wp--preset--font-size--m);
	color: #374151;
}

p.ws-count-line strong {
	color: var(--wp--preset--color--ink);
	font-weight: 700;
}

/* Closing soon */
.ws-soon__summary {
	font-size: 1rem;
	color: var(--wp--preset--color--muted);
	margin: 0 0 24px;
}

/* Closed for this cycle: small cards, "reopens" pill on top, name, provider. */
.ws-closed__heading,
.ws-list__heading {
	margin: 0 0 16px;
	font-size: var(--wp--preset--font-size--heading-l);
}

.ws-closed {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
	gap: 12px;
}

.ws-closed__item {
	margin: 0;
}

.ws-closed__link {
	display: flex;
	flex-direction: column;
	gap: 6px;
	height: 100%;
	box-sizing: border-box;
	padding: 16px 18px;
	background: #F8FAFC;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 10px;
	color: var(--wp--preset--color--text);
	text-decoration: none;
	transition: border-color .15s, background-color .15s, box-shadow .15s;
}

.ws-closed__link:hover,
.ws-closed__link:focus-visible {
	background: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 8px 20px rgba(11, 37, 69, .08);
	color: var(--wp--preset--color--text);
}

.ws-closed__when {
	order: -1;
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 2px;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--wp--preset--color--gold-tint);
	color: var(--wp--preset--color--gold-text);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
	line-height: 1.4;
}

.ws-closed__when .ws-icon {
	flex: none;
}

.ws-closed__name {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	color: var(--wp--preset--color--ink);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--s);
	line-height: 1.4;
}

.ws-closed__link:hover .ws-closed__name {
	text-decoration: underline;
}

.ws-closed__provider {
	margin-top: auto;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--xs);
	line-height: 1.4;
}

/* Trust strip (Site stats) */
.ws-stats {
	list-style: none;
	margin: 0;
	padding: 28px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: 24px;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(11, 37, 69, .06), 0 12px 32px rgba(11, 37, 69, .10);
}

.ws-stat {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	margin: 0;
}

.ws-stat__icon {
	flex: none;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	display: grid;
	place-items: center;
}

.ws-stat__icon .ws-icon {
	stroke-width: 1.8;
}

.ws-stat--verified .ws-stat__icon { background: var(--wp--preset--color--verified-tint); color: var(--wp--preset--color--verified); }
.ws-stat--primary .ws-stat__icon { background: var(--wp--preset--color--primary-tint); color: var(--wp--preset--color--primary); }
.ws-stat--gold .ws-stat__icon { background: var(--wp--preset--color--gold-tint); color: var(--wp--preset--color--gold-text); }
.ws-stat--ink .ws-stat__icon { background: #E6ECF5; color: var(--wp--preset--color--ink); }

.ws-stat__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ws-stat__number {
	font-family: var(--wp--preset--font-family--source-serif);
	font-weight: 700;
	font-size: 1.75rem;
	line-height: 1.1;
	color: var(--wp--preset--color--ink);
	font-variant-numeric: tabular-nums;
}

.ws-stat__label {
	font-size: var(--wp--preset--font-size--s);
	color: var(--wp--preset--color--text);
}

.ws-stat__link {
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 500;
}

/* Tiles */
.ws-tiles {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
	gap: 14px;
}

.ws-tiles--state {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
	gap: 12px;
}

.ws-tile {
	margin: 0;
}

.ws-tile__link {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	height: 100%;
	padding: 20px;
	background: var(--wp--preset--color--white);
	border: 1px solid #EDE3C8;
	border-radius: 10px;
	color: var(--wp--preset--color--text);
	text-decoration: none;
	transition: border-color .15s, box-shadow .15s;
}

.ws-tile__link:hover {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 8px 20px rgba(11, 37, 69, .08);
	color: var(--wp--preset--color--text);
}

.ws-tile__mark {
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	background: var(--wp--preset--color--primary-tint);
	color: var(--wp--preset--color--primary);
}

.ws-tile__mark .ws-icon {
	stroke-width: 1.8;
}

.ws-tile--tone-0 .ws-tile__mark { background: var(--wp--preset--color--gold-tint); color: var(--wp--preset--color--gold-text); }
.ws-tile--tone-1 .ws-tile__mark { background: var(--wp--preset--color--primary-tint); color: var(--wp--preset--color--primary); }
.ws-tile--tone-2 .ws-tile__mark { background: var(--wp--preset--color--verified-tint); color: var(--wp--preset--color--verified); }
.ws-tile--tone-3 .ws-tile__mark { background: #E6ECF5; color: var(--wp--preset--color--ink); }

.ws-tile__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.ws-tile__name {
	font-weight: 600;
	font-size: var(--wp--preset--font-size--m);
	color: var(--wp--preset--color--ink);
}

.ws-tile__count {
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
	color: var(--wp--preset--color--muted);
	font-variant-numeric: tabular-nums;
}

.ws-tile__desc {
	font-size: .875rem;
	line-height: 1.5;
	color: var(--wp--preset--color--muted);
}

/* "New states every month": last tile in each state grid. */
.ws-tile--more-states .ws-tile__link {
	background: var(--wp--preset--color--gold-tint);
	border: 1px dashed var(--wp--preset--color--gold-text);
}

.ws-tile--more-states .ws-tile__mark {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--gold-text);
}

.ws-tile--more-states .ws-tile__desc {
	color: var(--wp--preset--color--text);
}

.ws-tiles .ws-tile__badge.ws-tile__badge--soon {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--gold-text);
	font-size: .8125rem;
	text-transform: uppercase;
	letter-spacing: .04em;
}

/* Type and grade tiles: icon | name and description | count badge.
   The badge has its own column, so it sits in the same place whatever
   the length of the name. */
/* Every tile: icon | name, with the count badge on the right of the first
   line; the description runs underneath across the full width. */
.ws-tiles .ws-tile__link {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) auto;
	grid-template-rows: auto 1fr;
	column-gap: 14px;
	row-gap: 4px;
	align-items: start;
}

.ws-tiles .ws-tile__mark {
	grid-column: 1;
	grid-row: 1 / span 2;
}

.ws-tiles .ws-tile__text {
	display: contents;
}

.ws-tiles .ws-tile__name {
	grid-column: 2;
	grid-row: 1;
	padding-top: 9px;
	line-height: 1.4;
	overflow-wrap: break-word;
}

.ws-tiles .ws-tile__badge {
	grid-column: 3;
	grid-row: 1;
}

.ws-tiles .ws-tile__desc {
	grid-column: 2 / span 2;
	grid-row: 2;
}

.ws-tile__badge {
	margin-top: 9px;
	display: inline-flex;
	align-items: baseline;
	gap: 3px;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--wp--preset--color--primary-tint);
	color: var(--wp--preset--color--primary-dark);
	font-size: .9375rem;
	font-weight: 700;
	line-height: 1.35;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.ws-tile__badge-label {
	font-size: .75rem;
	font-weight: 600;
}

.ws-tile__link:hover .ws-tile__badge {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}

.ws-tile--national .ws-tile__badge,
.ws-tile--national .ws-tile__link:hover .ws-tile__badge {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--ink);
}

.ws-tile--national .ws-tile__desc {
	color: var(--wp--preset--color--on-dark);
}

/* State tiles: abbreviation mark, count under the name. */
.ws-tile--state .ws-tile__link {
	padding: 18px;
	border-color: var(--wp--preset--color--border);
}

.ws-tile--state .ws-tile__mark {
	border-radius: 10px;
	font-weight: 700;
	font-size: var(--wp--preset--font-size--s);
}

.ws-tile--state .ws-tile__text {
	gap: 2px;
}

.ws-tile--national .ws-tile__link {
	background: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
}

.ws-tile--national .ws-tile__link:hover {
	background: #163B6E;
	color: var(--wp--preset--color--white);
}

.ws-tile--national .ws-tile__mark {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--ink);
}

.ws-tile--national .ws-tile__name {
	color: var(--wp--preset--color--white);
}

.ws-empty {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--s);
}

@media (prefers-reduced-motion: reduce) {
	.ws-card:hover,
	.ws-card:focus-within {
		transform: none;
	}
}

/* Cards with no amount on the provider's page: neutral, not money-green. */
.ws-badge--amount.ws-badge--no-amount {
	background: #F3F4F6;
	color: #374151;
	font-weight: 600;
	font-size: var(--wp--preset--font-size--xs);
}

.ws-chip--more {
	background: transparent;
	border-style: dashed;
	color: var(--wp--preset--color--muted);
}

/* =====================================================================
 * Single scholarship (templates/single-scholarship.html)
 * =================================================================== */

.ws-main--single {
	padding-bottom: 56px;
}

.ws-main--single > * + * {
	margin-block-start: 0;
}

/* Breadcrumbs */
.ws-crumbs {
	padding-top: 28px;
}

.ws-crumbs ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 8px;
	font-size: .875rem;
}

.ws-crumbs li {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--wp--preset--color--muted);
}

.ws-crumbs a {
	text-decoration: none;
}

.ws-crumbs a:hover {
	text-decoration: underline;
}

.ws-crumbs__sep {
	color: #9CA3AF;
}

/* Top: badges, H1, subhead, provider and checked date */
.ws-top {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding-top: 24px;
}

.ws-top > * {
	margin: 0;
}

.ws-top__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.ws-top__title {
	font-family: var(--wp--preset--font-family--source-serif);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--heading-xl);
	line-height: 1.1;
	letter-spacing: -.015em;
	color: var(--wp--preset--color--ink);
	text-wrap: balance;
}

.ws-top__subhead {
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.45;
	font-weight: 500;
	color: #374151;
	text-wrap: pretty;
}

.ws-top__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
}

.ws-top__from {
	margin: 0;
	font-size: 1rem;
	color: var(--wp--preset--color--muted);
}

.ws-top__from a,
.ws-top__from strong {
	font-weight: 600;
}

.ws-badge--checked {
	background: var(--wp--preset--color--verified-tint);
	color: var(--wp--preset--color--verified);
}

.ws-badge--checked .ws-icon path {
	stroke: #FFFFFF;
}

/* Closed notice */
.ws-notice {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	margin-top: 24px !important;
	padding: 18px 20px;
	border-radius: 10px;
	background: #FBF7EE;
	border: 1px solid #F0E6CC;
}

.ws-notice p {
	margin: 0;
	font-size: 1rem;
	line-height: 1.55;
	color: var(--wp--preset--color--text);
}

.ws-notice strong {
	color: var(--wp--preset--color--ink);
}

.ws-notice__icon {
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--wp--preset--color--gold-tint);
	color: var(--wp--preset--color--gold-text);
	display: grid;
	place-items: center;
}

.ws-notice__icon .ws-icon {
	stroke-width: 2;
}

/* Body: sections are 880px; similar scholarships use the full 1240px. */
.ws-single-body .ws-facts > :not(.ws-similar) {
	max-width: 880px;
	margin-left: auto;
	margin-right: auto;
}

.ws-facts > * {
	margin-top: 0;
	margin-bottom: 0;
}

/* Answer box */
.ws-answer {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-top: 24px !important;
	padding: 36px;
	border-radius: 14px;
	background: var(--wp--preset--color--primary-tint);
	border: 1px solid #DDE3FB;
}

.ws-answer__text {
	margin: 0;
	font-size: 1.125rem;
	line-height: 1.55;
	color: var(--wp--preset--color--ink);
	font-weight: 500;
	text-wrap: pretty;
}

.ws-facts__grid {
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
	gap: 12px;
}

.ws-fact {
	padding: 14px 16px;
	border-radius: 10px;
	background: var(--wp--preset--color--white);
	border: 1px solid #DDE3FB;
}

.ws-fact dt {
	font-size: var(--wp--preset--font-size--xs);
	color: var(--wp--preset--color--muted);
	font-weight: 500;
}

.ws-fact dd {
	margin: 2px 0 0;
	font-weight: 600;
	font-size: var(--wp--preset--font-size--m);
	color: var(--wp--preset--color--ink);
	font-variant-numeric: tabular-nums;
}

/* Apply and alerts buttons */
.ws-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px !important;
}

.ws-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 22px;
	border-radius: 8px;
	font: inherit;
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	border: 0;
}

.ws-actions .ws-btn--primary {
	flex: 1 1 260px;
}

.ws-actions .ws-btn--outline {
	flex: 1 1 220px;
}

.ws-btn--primary {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}

.ws-btn--primary:hover,
.ws-btn--primary:focus {
	background: var(--wp--preset--color--primary-dark);
	color: var(--wp--preset--color--white);
}

.ws-btn--outline {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--primary);
	border: 2px solid var(--wp--preset--color--primary);
}

.ws-btn--outline:hover,
.ws-btn--outline:focus {
	background: var(--wp--preset--color--primary-tint);
	color: var(--wp--preset--color--primary-dark);
}

/* Sections */
.ws-section {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: 40px !important;
}

.ws-section--who {
	margin-top: 48px !important;
}

.ws-section > * {
	margin: 0;
}

.ws-section h2,
.ws-similar__title {
	font-size: var(--wp--preset--font-size--heading-l);
	line-height: 1.2;
	margin: 0;
}

.ws-section__sub {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: 6px;
}

.ws-section__sub h3 {
	margin: 0;
	font-size: 1rem;
	color: var(--wp--preset--color--muted);
}

/* Checklists: green check circles; "can't apply" gets grey crosses. */
.ws-checklist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ws-checklist li {
	position: relative;
	margin: 0;
	padding-left: 34px;
	font-size: var(--wp--preset--font-size--m);
	line-height: 1.5;
	color: var(--wp--preset--color--text);
}

.ws-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1px;
	width: 22px;
	height: 22px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%230F7B4F'/%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-4.8' fill='none' stroke='%23FFFFFF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

.ws-checklist--no {
	gap: 8px;
}

.ws-checklist--no li {
	font-size: 1rem;
	color: var(--wp--preset--color--muted);
}

.ws-checklist--no li::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%23E5E7EB'/%3E%3Cpath d='m5.5 5.5 5 5m0-5-5 5' fill='none' stroke='%236B7280' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}

.ws-checklist--plain li::before {
	top: 9px;
	left: 8px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
}

/* Where you must live or study */
.ws-places {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ws-places li {
	margin: 0;
}

.ws-place {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 0 14px;
	border-radius: 999px;
	background: #E6ECF5;
	border: 1px solid var(--wp--preset--color--on-dark-muted);
	color: var(--wp--preset--color--ink);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--s);
	text-decoration: none;
}

a.ws-place:hover {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--ink);
}

.ws-place--school {
	background: var(--wp--preset--color--white);
}

/* How to apply: numbered steps */
.ws-how {
	list-style: none;
	counter-reset: ws-how;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ws-how li {
	counter-increment: ws-how;
	position: relative;
	margin: 0;
	min-height: 52px;
	padding: 14px 16px 14px 64px;
	border: 1px solid #DDE3FB;
	border-radius: 10px;
	background: var(--wp--preset--color--white);
	font-size: 1rem;
	line-height: 1.6;
}

.ws-how li::before {
	content: counter(ws-how);
	position: absolute;
	left: 14px;
	top: 12px;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	display: grid;
	place-items: center;
	font-family: var(--wp--preset--font-family--source-serif);
	font-weight: 700;
	font-size: 1.0625rem;
	line-height: 1;
}

/* Key dates */
.ws-dates {
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
	gap: 12px;
}

.ws-date {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 16px;
	border-radius: 10px;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
}

.ws-date__icon {
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	display: grid;
	place-items: center;
}

.ws-date__icon .ws-icon {
	stroke-width: 2;
}

.ws-date--verified .ws-date__icon { background: var(--wp--preset--color--verified-tint); color: var(--wp--preset--color--verified); }
.ws-date--soon .ws-date__icon { background: #FEF3C7; color: #92400E; }
.ws-date--primary .ws-date__icon { background: var(--wp--preset--color--primary-tint); color: var(--wp--preset--color--primary); }

.ws-date dt {
	font-size: var(--wp--preset--font-size--xs);
	color: var(--wp--preset--color--muted);
	font-weight: 500;
}

.ws-date dd {
	margin: 2px 0 0;
	font-weight: 600;
	font-size: var(--wp--preset--font-size--m);
	color: var(--wp--preset--color--ink);
}

.ws-dates__past {
	font-size: .875rem;
	color: var(--wp--preset--color--muted);
}

/* Common questions: open, a heading per question */
.ws-faq {
	gap: 18px;
}

.ws-faq__item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.ws-faq__item > * {
	margin: 0;
}

.ws-faq__q {
	font-size: 1.125rem;
	line-height: 1.4;
	color: var(--wp--preset--color--ink);
}

.ws-faq__a {
	font-size: 1rem;
	line-height: 1.6;
}

/* Editor's note */
.ws-note {
	margin-top: 40px !important;
	padding: 20px 22px;
	border-left: 4px solid var(--wp--preset--color--gold);
	background: #FBF7EE;
	border-radius: 0 10px 10px 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: var(--wp--preset--font-size--m);
	line-height: 1.6;
}

.ws-note > * {
	margin: 0;
}

.ws-note__label {
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold-text);
}

/* Source line */
.ws-source {
	margin-top: 32px !important;
	padding-top: 20px;
	border-top: 1px solid var(--wp--preset--color--border);
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: var(--wp--preset--font-size--s);
	color: #374151;
}

.ws-source p {
	margin: 0;
}

.ws-source__nofee {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Similar scholarships */
.ws-similar {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin-top: 56px !important;
	margin-bottom: 56px !important;
}

/* Ad slot: only output when ads are on; reserves its height. */
.ws-ad-slot {
	display: block;
	margin: 40px auto 0;
	max-width: 100%;
}

.ws-ad-slot--leaderboard {
	width: 728px;
	min-height: 90px;
}

.ws-ad-slot--full {
	width: 100%;
	min-height: 90px;
}

@media (max-width: 760px) {
	.ws-ad-slot--leaderboard {
		width: 300px;
		min-height: 250px;
	}

	.ws-ad-slot--full {
		min-height: 250px;
	}
}

.ws-editor-empty {
	padding: 12px 14px;
	border: 1px dashed #9CA3AF;
	border-radius: 8px;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--xs);
}

/* =====================================================================
 * Alerts panel (pattern) and form placeholder
 * =================================================================== */

.wp-block-group.is-style-ws-alerts {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 36px;
	border-radius: 14px;
	background: var(--wp--preset--color--white);
	border: 2px solid var(--wp--preset--color--primary);
	box-shadow: 0 12px 32px rgba(29, 78, 216, .12);
}

.wp-block-group.is-style-ws-alerts::before {
	content: "";
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background: var(--wp--preset--color--primary-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%231D4ED8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/%3E%3Cpath d='M10 21a2 2 0 0 0 4 0'/%3E%3C/svg%3E") no-repeat center;
}

.wp-block-group.is-style-ws-alerts > * {
	margin: 0 !important;
}

.wp-block-group.is-style-ws-alerts h2 {
	font-size: var(--wp--preset--font-size--heading-l);
	line-height: 1.2;
}

.wp-block-group.is-style-ws-alerts > p:not(.ws-eyebrow) {
	font-size: 1rem;
}

p.ws-eyebrow {
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
}

.ws-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
}

.ws-form__row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	gap: 10px;
	max-width: 960px;
}

.ws-form__field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
	color: var(--wp--preset--color--ink);
}

.ws-form input[type="email"],
.ws-form input[type="text"],
.ws-form input[type="url"],
.ws-form select,
.ws-form textarea {
	height: 46px;
	padding: 0 12px;
	border: 1px solid #9CA3AF;
	border-radius: 6px;
	font: inherit;
	font-size: 1rem;
	font-weight: 400;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--text);
}

.ws-form textarea {
	height: auto;
	padding: 10px 12px;
	resize: vertical;
}

.ws-form__check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: .875rem;
	line-height: 1.45;
	color: var(--wp--preset--color--text);
}

.ws-form__check input {
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	flex: none;
	accent-color: var(--wp--preset--color--primary);
}

.ws-form__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
}

.ws-form__foot .ws-btn {
	min-height: 46px;
	padding: 0 20px;
	font-size: var(--wp--preset--font-size--s);
}

.ws-form__privacy {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: var(--wp--preset--font-size--xs);
	color: var(--wp--preset--color--muted);
}

.ws-form__note {
	margin: 0;
	font-size: var(--wp--preset--font-size--xs);
	color: var(--wp--preset--color--muted);
	font-style: italic;
}

/* A line of small print added under the alerts form on a page. */
.wp-block-group.is-style-ws-alerts > p.ws-alerts__note {
	margin-top: .5rem;
	font-size: var(--wp--preset--font-size--xs);
	color: var(--wp--preset--color--muted);
}

@media (max-width: 600px) {
	.ws-answer,
	.wp-block-group.is-style-ws-alerts {
		padding: 24px;
	}

	.ws-main--single {
		padding-bottom: 40px;
	}
}

/* Editor's note typed into the listing (post content), styled like the note box. */
.ws-single-body .ws-note-content {
	max-width: 880px;
	margin: 40px auto 0 !important;
	padding: 20px 22px;
	border-left: 4px solid var(--wp--preset--color--gold);
	background: #FBF7EE;
	border-radius: 0 10px 10px 0;
	font-size: var(--wp--preset--font-size--m);
	line-height: 1.6;
}

.ws-single-body .ws-note-content::before {
	content: "Editor\2019s note";
	display: block;
	margin-bottom: 8px;
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold-text);
}

.ws-single-body .ws-note-content > * {
	margin-top: 0;
	margin-bottom: 0;
}

.ws-single-body .ws-note-content > * + * {
	margin-top: 10px;
}

.ws-facts--end > .ws-source {
	margin-top: 32px !important;
}

/* =====================================================================
 * State, type and grade pages (taxonomy.html, Directory pages)
 * =================================================================== */

.ws-main--list {
	padding-bottom: 56px;
}

.ws-main--list > * + * {
	margin-block-start: 0;
}

.ws-term-page__title {
	margin: 20px 0 0;
	font-size: var(--wp--preset--font-size--heading-xl);
	line-height: 1.1;
}

.ws-term-page__content > * {
	margin-top: 0;
	margin-bottom: 0;
}

.ws-term-page__content > .wp-block-ws-count-line,
.ws-term-page__content > p.ws-count-line {
	margin-top: 20px;
}

/* Summary bar under the H1 on state, type and grade pages. */
p.ws-count-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 28px;
	margin: 0;
	padding: 18px 24px;
	background: var(--wp--preset--color--primary-tint);
	border: 1px solid #D3E0F2;
	border-left: 5px solid var(--wp--preset--color--primary);
	border-radius: 12px;
	font-size: 1rem;
	line-height: 1.4;
	color: #374151;
}

.ws-count-bar__main {
	display: inline-flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin-right: auto;
}

p.ws-count-bar strong.ws-count-bar__num {
	font-size: 2.25rem;
	line-height: 1;
	font-weight: 800;
	color: var(--wp--preset--color--primary);
	letter-spacing: -.01em;
}

.ws-count-bar__label {
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--wp--preset--color--ink);
}

.ws-count-bar__meta {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ws-count-bar__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: .9375rem;
	font-weight: 500;
	white-space: nowrap;
}

.ws-count-bar__item .ws-icon {
	flex: none;
	color: var(--wp--preset--color--verified);
}

@media (max-width: 700px) {
	p.ws-count-bar {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
		padding: 16px 18px;
	}

	.ws-count-bar__item {
		white-space: normal;
	}
}

.ws-term-page__content p.ws-intro {
	margin-top: 24px;
	max-width: none;
	font-size: var(--wp--preset--font-size--m);
	line-height: 1.65;
}

.ws-term-page__content > .is-style-ws-facts-box,
.ws-term-page__content > .is-style-ws-related {
	margin-top: 28px;
}

.ws-term-page__content > .wp-block-ws-scholarship-list {
	margin-top: 36px;
}

.ws-term-page__content > .wp-block-ws-closed-list {
	margin-top: 48px;
}

.ws-term-page__content > .is-style-ws-faq {
	margin-top: 48px;
}

.ws-term-page__content > .is-style-ws-alerts {
	margin-top: 56px;
}

/* State facts box */
.wp-block-group.is-style-ws-facts-box {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 36px;
	border-radius: 14px;
	background: #FBF7EE;
	border: 1px solid #F0E6CC;
}

.wp-block-group.is-style-ws-facts-box > * {
	margin: 0 !important;
}

.wp-block-group.is-style-ws-facts-box h2 {
	font-size: 1.375rem;
	line-height: 1.25;
}

.ws-facts-box__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
	gap: 12px;
}

.ws-facts-box__grid > * {
	margin: 0 !important;
}

.ws-fact-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px;
	border-radius: 10px;
	background: var(--wp--preset--color--white);
	border: 1px solid #EDE3C8;
}

.ws-fact-item > * {
	margin: 0 !important;
	font-size: var(--wp--preset--font-size--s);
	line-height: 1.5;
}

p.ws-fact-item__label {
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
	color: var(--wp--preset--color--gold-text);
}

/* Related lists row */
.wp-block-group.is-style-ws-related {
	gap: 10px !important;
}

.wp-block-group.is-style-ws-related > * {
	margin: 0 !important;
}

p.ws-related__label {
	font-size: var(--wp--preset--font-size--s);
	font-weight: 600;
	color: var(--wp--preset--color--ink);
	margin-right: 4px !important;
}

ul.is-style-ws-chips {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	font-size: var(--wp--preset--font-size--s);
}

ul.is-style-ws-chips li {
	margin: 0;
}

ul.is-style-ws-chips a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	font-weight: 500;
}

ul.is-style-ws-chips a:hover {
	border-color: var(--wp--preset--color--primary);
	background: var(--wp--preset--color--primary-tint);
	color: var(--wp--preset--color--ink);
}

/* FAQ group: questions open and close (core Details) */
.ws-term-page__content > .wp-block-group.is-style-ws-faq {
	max-width: 880px;
	margin-left: auto !important;
	margin-right: auto !important;
}

.wp-block-group.is-style-ws-faq {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.wp-block-group.is-style-ws-faq > * {
	margin: 0 !important;
}

.wp-block-group.is-style-ws-faq > h2 {
	margin-bottom: 8px !important;
	font-size: var(--wp--preset--font-size--heading-l);
	line-height: 1.2;
}

.is-style-ws-faq .wp-block-details {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 10px;
	background: var(--wp--preset--color--white);
}

.is-style-ws-faq .wp-block-details summary {
	cursor: pointer;
	padding: 18px 20px;
	font-weight: 600;
	font-size: var(--wp--preset--font-size--m);
	line-height: 1.4;
	color: var(--wp--preset--color--ink);
}

.is-style-ws-faq .wp-block-details > :not(summary) {
	margin: 0;
	padding: 0 20px 18px;
	font-size: 1rem;
	line-height: 1.6;
}

/* On the live page, sections nobody has filled in yet stay hidden. */
.ws-live p.ws-intro:empty,
.ws-live .ws-fact-item:has(> p:last-child:empty),
.ws-live .is-style-ws-facts-box:not(:has(.ws-fact-item > p:last-child:not(:empty))),
.ws-live ul.is-style-ws-chips li:empty,
.ws-live .is-style-ws-related:not(:has(a)),
.ws-live .is-style-ws-faq .wp-block-details:has(> summary:empty),
.ws-live .is-style-ws-faq:not(:has(.wp-block-details > summary:not(:empty))) {
	display: none;
}

@media (max-width: 600px) {
	.wp-block-group.is-style-ws-facts-box {
		padding: 24px;
	}

	.ws-main--list {
		padding-bottom: 40px;
	}
}

/* =====================================================================
 * Homepage (front-page.html + homepage pattern)
 * =================================================================== */

.ws-home > * {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* Full-width bands keep content in the 1240px column. */
.ws-band,
.wp-block-group.is-style-ws-hero > .ws-hero__inner {
	padding-inline: max(24px, calc((100% - 1240px) / 2 + 24px));
}

.ws-band {
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding-block: 64px;
}

.ws-band > * {
	margin: 0 !important;
}

.ws-band__head {
	gap: 16px !important;
}

.ws-band__head > * {
	margin: 0 !important;
}

.ws-band__titles {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ws-band__titles > * {
	margin: 0 !important;
}

.ws-band__titles--wide {
	max-width: 640px;
	gap: 10px;
}

.ws-band h2 {
	font-size: clamp(1.875rem, 1.6rem + 1vw, 2.25rem);
	line-height: 1.2;
}

.ws-band__lead {
	font-size: 1rem;
	color: var(--wp--preset--color--muted);
	max-width: 60ch;
}

.ws-band__titles--wide .ws-band__lead {
	font-size: var(--wp--preset--font-size--m);
	color: var(--wp--preset--color--text);
	max-width: none;
}

.ws-band__note {
	font-size: var(--wp--preset--font-size--s);
	color: var(--wp--preset--color--muted);
}

.ws-band__link a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	font-size: var(--wp--preset--font-size--s);
	text-decoration: none;
}

.ws-band__link a::after {
	content: "";
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%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='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.wp-block-group.is-style-ws-band-gold {
	background: #FBF7EE;
	border-top: 1px solid #F0E6CC;
	border-bottom: 1px solid #F0E6CC;
}

.wp-block-group.is-style-ws-band-blue {
	background: var(--wp--preset--color--primary-tint);
	border-top: 1px solid #DDE3FB;
	border-bottom: 1px solid #DDE3FB;
	gap: 36px;
}

/* Eyebrows with a small icon */
p.ws-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

p.ws-eyebrow--clock { color: #B45309; }
p.ws-eyebrow--gold { color: var(--wp--preset--color--gold-text); }
p.ws-eyebrow--pin { color: var(--wp--preset--color--primary); }
p.ws-eyebrow--shield { color: var(--wp--preset--color--verified); }
p.ws-eyebrow--book { color: var(--wp--preset--color--primary); }

p.ws-eyebrow--clock::before,
p.ws-eyebrow--pin::before,
p.ws-eyebrow--shield::before,
p.ws-eyebrow--book::before {
	content: "";
	width: 18px;
	height: 18px;
	flex: none;
	background: currentColor;
	-webkit-mask: var(--ws-eyebrow-icon) center / contain no-repeat;
	mask: var(--ws-eyebrow-icon) center / contain no-repeat;
}

p.ws-eyebrow--clock { --ws-eyebrow-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
p.ws-eyebrow--pin { --ws-eyebrow-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11a7 7 0 0 1 14 0c0 4.8-7 11-7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E"); }
p.ws-eyebrow--shield { --ws-eyebrow-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v6c0 4.5-3 7.7-7 9-4-1.3-7-4.5-7-9V6l7-3z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
p.ws-eyebrow--book { --ws-eyebrow-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 5h6a4 4 0 0 1 4 4v12a3 3 0 0 0-3-3H2z'/%3E%3Cpath d='M22 5h-6a4 4 0 0 0-4 4v12a3 3 0 0 1 3-3h7z'/%3E%3C/svg%3E"); }

/* Hero */
.wp-block-group.is-style-ws-hero {
	position: relative;
	overflow: hidden;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
}

.wp-block-group.is-style-ws-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
	background-size: 44px 44px;
	-webkit-mask-image: radial-gradient(ellipse at 30% 20%, #000 20%, transparent 75%);
	mask-image: radial-gradient(ellipse at 30% 20%, #000 20%, transparent 75%);
	pointer-events: none;
}

.wp-block-group.is-style-ws-hero::after {
	content: "";
	position: absolute;
	right: -180px;
	top: -160px;
	width: 560px;
	height: 560px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(29, 78, 216, .45), transparent 65%);
	pointer-events: none;
}

.ws-hero__inner {
	position: relative;
	z-index: 1;
	padding-top: 64px;
	padding-bottom: 136px;
	gap: 56px !important;
}

.ws-hero__text {
	flex: 1 1 520px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.ws-hero__text > * {
	margin: 0 !important;
}

.ws-hero__text > .wp-block-ws-count-line {
	align-self: flex-start;
}

.ws-week-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 6px 14px 6px 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .14);
	font-size: .875rem;
	font-weight: 500;
	color: var(--wp--preset--color--on-dark);
}

.ws-week-pill__count {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--wp--preset--color--verified-tint);
	color: var(--wp--preset--color--money);
	font-weight: 600;
	font-size: .75rem;
	font-variant-numeric: tabular-nums;
}

h1.ws-hero__title {
	font-size: clamp(2.5rem, 1.6rem + 3vw, 3.75rem);
	line-height: 1.06;
	letter-spacing: -.02em;
	color: var(--wp--preset--color--white);
	text-wrap: balance;
}

/* Bold words get the gold underline; italic words turn gold. */
h1.ws-hero__title strong {
	font-weight: inherit;
	white-space: nowrap;
	background: linear-gradient(var(--wp--preset--color--gold), var(--wp--preset--color--gold)) no-repeat 0 92% / 100% .14em;
}

h1.ws-hero__title em {
	color: var(--wp--preset--color--gold);
}

p.ws-count-hero {
	margin: 0;
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.55;
	color: var(--wp--preset--color--on-dark);
	max-width: 56ch;
	text-wrap: pretty;
}

p.ws-count-hero strong {
	color: var(--wp--preset--color--white);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

/* Hero search: white box, field and button side by side. */
.wp-block-search.is-style-ws-hero {
	max-width: 640px;
	margin: 0;
}

.wp-block-search.is-style-ws-hero .wp-block-search__inside-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 8px;
	border: 0;
	border-radius: 14px;
	background: var(--wp--preset--color--white);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

.wp-block-search.is-style-ws-hero .wp-block-search__input {
	flex: 1 1 220px;
	min-width: 0;
	height: 48px;
	padding: 0 12px 0 44px;
	border: 0;
	font: inherit;
	font-size: var(--wp--preset--font-size--m);
	color: var(--wp--preset--color--text);
	background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234B5563' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center;
}

.wp-block-search.is-style-ws-hero .wp-block-search__input:focus-visible {
	outline: 3px solid var(--wp--preset--color--primary);
	outline-offset: 0;
}

.wp-block-search.is-style-ws-hero .wp-block-search__button {
	flex: 0 0 auto;
	min-height: 48px;
	margin: 0;
	padding: 0 24px;
	border: 0;
	border-radius: 8px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	font: inherit;
	font-weight: 600;
	font-size: 1rem;
}

.wp-block-search.is-style-ws-hero .wp-block-search__button:hover {
	background: var(--wp--preset--color--primary-dark);
}

.ws-hero__popular {
	gap: 10px !important;
}

.ws-hero__popular > * {
	margin: 0 !important;
}

.ws-hero__popular > p {
	font-size: .875rem;
	color: var(--wp--preset--color--on-dark-muted);
}

ul.is-style-ws-chips-dark {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	font-size: .875rem;
}

ul.is-style-ws-chips-dark li {
	margin: 0;
}

ul.is-style-ws-chips-dark a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: 999px;
	color: var(--wp--preset--color--white);
	text-decoration: none;
	font-weight: 500;
}

ul.is-style-ws-chips-dark a:hover {
	background: rgba(255, 255, 255, .1);
	color: var(--wp--preset--color--white);
}

/* Hero photo slot (empty until a real photo is added) and the closing-soonest card. */
.ws-hero__media {
	position: relative;
	flex: 1 1 400px;
	min-width: 0;
	max-width: 520px;
	margin: 0 auto !important;
}

.ws-hero__media::before {
	content: "";
	position: absolute;
	right: -18px;
	top: -18px;
	width: 62%;
	height: 58%;
	border-radius: 14px;
	background: var(--wp--preset--color--gold);
}

.ws-hero__media::after {
	content: "";
	position: absolute;
	left: -18px;
	bottom: 40px;
	width: 120px;
	height: 120px;
	border-radius: 50%;
	border: 2px dashed rgba(255, 255, 255, .3);
}

.ws-hero__photo {
	position: relative;
	z-index: 1;
	height: 460px;
	border-radius: 14px;
	overflow: hidden;
	background: #163B6E;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}

.ws-hero__photo .wp-block-image,
.ws-hero__photo .wp-block-image img {
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

.ws-hero__media > .wp-block-ws-next-closing {
	position: absolute;
	z-index: 2;
	left: 16px;
	right: 16px;
	bottom: -40px;
	max-width: 360px;
	margin: 0 !important;
}

.ws-next {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px 18px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--text);
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(11, 37, 69, .28);
}

.ws-next > * {
	margin: 0;
}

.ws-next__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ws-next__badges .ws-badge--amount {
	font-size: .875rem;
	padding: 3px 9px;
}

.ws-next__badges .ws-badge {
	padding: 3px 9px;
}

.ws-next__name {
	font-family: var(--wp--preset--font-family--source-serif);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--m);
	line-height: 1.3;
}

.ws-next__name a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.ws-next__name a:hover {
	text-decoration: underline;
}

.ws-next__meta {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: var(--wp--preset--font-size--xs);
	color: var(--wp--preset--color--verified);
	font-weight: 500;
}

/* Trust strip overlaps the bottom of the hero. */
.ws-trust {
	position: relative;
	z-index: 3;
	margin-top: -72px !important;
	padding-inline: max(24px, calc((100% - 1240px) / 2 + 24px));
}

/* Three verify cards */
.wp-block-group.is-style-ws-verify-row {
	counter-reset: ws-verify;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: 20px;
}

.wp-block-group.is-style-ws-verify-row > .wp-block-group {
	counter-increment: ws-verify;
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0 !important;
	padding: 98px 28px 28px;
	background: var(--wp--preset--color--white);
	border: 1px solid #DDE3FB;
	border-radius: 14px;
}

.wp-block-group.is-style-ws-verify-row > .wp-block-group > * {
	margin: 0 !important;
}

.wp-block-group.is-style-ws-verify-row > .wp-block-group::before {
	content: "";
	position: absolute;
	left: 28px;
	top: 28px;
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background: var(--wp--preset--color--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='m9 14 2 2 4-4'/%3E%3C/svg%3E") no-repeat center;
}

.wp-block-group.is-style-ws-verify-row > .wp-block-group:nth-child(2)::before {
	background: var(--wp--preset--color--verified) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m5.7 5.7 12.6 12.6'/%3E%3C/svg%3E") no-repeat center;
}

.wp-block-group.is-style-ws-verify-row > .wp-block-group:nth-child(3)::before {
	background: var(--wp--preset--color--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%23F2B705' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-3-6.7L21 8'/%3E%3Cpath d='M21 3v5h-5'/%3E%3C/svg%3E") no-repeat center;
}

.wp-block-group.is-style-ws-verify-row > .wp-block-group::after {
	content: counter(ws-verify, decimal-leading-zero);
	position: absolute;
	right: 28px;
	top: 34px;
	font-family: var(--wp--preset--font-family--source-serif);
	font-weight: 700;
	font-size: 2.75rem;
	line-height: 1;
	color: #DDE3FB;
}

.wp-block-group.is-style-ws-verify-row h3 {
	font-size: 1.1875rem;
}

.wp-block-group.is-style-ws-verify-row p {
	font-size: var(--wp--preset--font-size--s);
	color: var(--wp--preset--color--muted);
}

/* Guide cards (query loop) */
.ws-guide-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
	gap: 24px;
}

.ws-guide-grid > li {
	margin: 0 !important;
}

.ws-guide-card {
	height: 100%;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 14px;
	background: var(--wp--preset--color--white);
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(11, 37, 69, .06), 0 4px 12px rgba(11, 37, 69, .06);
}

.ws-guide-card > * {
	margin: 0 !important;
}

.ws-guide-card__media {
	position: relative;
	height: 200px;
	background: #E6ECF5;
}

.ws-guide-card__media > * {
	margin: 0 !important;
}

/* Covers the core featured-image block and the plain <img> the related-guides and state-guides cards print.
   The whole cover always shows ("contain"); any gap is filled with the covers' own navy, so it doesn't show. */
.ws-guide-card__media img {
	display: block;
	width: 100%;
	height: 200px;
	object-fit: contain;
	background-color: var(--wp--preset--color--ink, #0B2545);
}

.ws-guide-card__cat {
	position: absolute;
	left: 14px;
	top: 14px;
	display: inline-flex;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	font-size: .75rem;
	font-weight: 600;
	color: var(--wp--preset--color--ink);
}

.ws-guide-card__cat a {
	color: inherit;
	text-decoration: none;
}

.ws-guide-card__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 22px;
}

.ws-guide-card__body > * {
	margin: 0 !important;
}

.ws-guide-card__title {
	font-size: 1.3125rem;
	line-height: 1.3;
	text-wrap: pretty;
}

.ws-guide-card__title a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.ws-guide-card__title a:hover {
	text-decoration: underline;
}

.ws-guide-card__dek {
	font-size: var(--wp--preset--font-size--s);
	line-height: 1.55;
}

.ws-guide-card__dek .wp-block-post-excerpt__more-text {
	display: none;
}

.ws-guide-card__meta {
	margin-top: auto !important;
	padding-top: 12px;
	border-top: 1px solid var(--wp--preset--color--border);
	gap: 0 .3em !important;
	font-size: var(--wp--preset--font-size--xs);
	color: var(--wp--preset--color--muted);
}

.ws-guide-card__meta > * {
	margin: 0 !important;
}

/* No guides yet: the whole row stays hidden (not in the editor). */
.ws-guides:not(:has(.wp-block-post-template > li)) {
	display: none;
}

.editor-styles-wrapper .ws-guides:not(:has(.wp-block-post-template > li)) {
	display: flex;
}

/* The alerts panel sits close under a white band, but needs its full
   spacing under a coloured one (the blue "How we verify" band when the
   guides band is hidden). */
.ws-band:not([class*="is-style-ws-band-"]) + .ws-band--alerts {
	padding-top: 0;
}

@media (max-width: 782px) {
	.ws-hero__inner {
		padding-top: 40px;
		padding-bottom: 120px;
	}

	.ws-hero__photo {
		height: 300px;
	}

	.ws-band {
		padding-block: 48px;
	}
}

main.ws-main--home {
	margin-block-start: 0 !important;
}

/* Popular chips in the hero: pin, bolt, sprout. */
ul.is-style-ws-chips-dark a::before {
	content: "";
	width: 16px;
	height: 16px;
	flex: none;
	background: currentColor;
	-webkit-mask: var(--ws-chip-icon, none) center / contain no-repeat;
	mask: var(--ws-chip-icon, none) center / contain no-repeat;
}

ul.is-style-ws-chips-dark li:nth-child(1) a { --ws-chip-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11a7 7 0 0 1 14 0c0 4.8-7 11-7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E"); }
ul.is-style-ws-chips-dark li:nth-child(2) a { --ws-chip-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E"); }
ul.is-style-ws-chips-dark li:nth-child(3) a { --ws-chip-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21v-9'/%3E%3Cpath d='M12 12c0-4 3-7 8-7 0 4-3 7-8 7z'/%3E%3Cpath d='M12 14c0-3-2.5-5-7-5 0 3 2.5 5 7 5z'/%3E%3C/svg%3E"); }
ul.is-style-ws-chips-dark li:nth-child(n+4) a::before { display: none; }

/* =====================================================================
 * Guide and page patterns
 * =================================================================== */

/* Key takeaways */
.wp-block-group.is-style-ws-takeaways {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 36px;
	border-radius: 14px;
	background: var(--wp--preset--color--primary-tint);
	border: 1px solid #DDE3FB;
}

.wp-block-group.is-style-ws-takeaways > * {
	margin: 0 !important;
}

.wp-block-group.is-style-ws-takeaways ul {
	padding-left: 1.25em;
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 1rem;
	line-height: 1.55;
}

.wp-block-group.is-style-ws-takeaways li {
	margin: 0 !important;
}

p.ws-eyebrow--muted {
	color: var(--wp--preset--color--muted);
}

/* On this page */
.wp-block-group.is-style-ws-toc {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.wp-block-group.is-style-ws-toc > * {
	margin: 0 !important;
}

p.ws-toc__title {
	font-weight: 600;
	color: var(--wp--preset--color--ink);
}

.wp-block-group.is-style-ws-toc ul {
	padding-left: 1.25em;
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 1rem;
}

.wp-block-group.is-style-ws-toc li {
	margin: 0 !important;
}

/* Fact callout */
.wp-block-group.is-style-ws-fact-callout {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 20px;
	padding: 20px 22px;
	border-radius: 12px;
	background: var(--wp--preset--color--verified-tint);
	border: 1px solid #BFE5D0;
}

.wp-block-group.is-style-ws-fact-callout > * {
	margin: 0 !important;
}

p.ws-fact-callout__number {
	font-family: var(--wp--preset--font-family--source-serif);
	font-weight: 700;
	font-size: 3rem;
	line-height: 1;
	color: var(--wp--preset--color--money);
	font-variant-numeric: tabular-nums;
}

.ws-fact-callout__text {
	flex: 1 1 260px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ws-fact-callout__text > * {
	margin: 0 !important;
}

.ws-fact-callout__text p {
	font-size: var(--wp--preset--font-size--m);
	line-height: 1.5;
}

.ws-fact-callout__text p.ws-fact-callout__source {
	font-size: var(--wp--preset--font-size--xs);
	color: var(--wp--preset--color--muted);
}

/* Comparison table: caption on top, scrolls sideways on phones. */
.wp-block-table.ws-table--compare {
	display: flex;
	flex-direction: column-reverse;
}

.wp-block-table.ws-table--compare table {
	min-width: 600px;
}

.wp-block-table.is-style-ws-table.ws-table--compare figcaption {
	border-top: 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
	font-size: .875rem;
	color: var(--wp--preset--color--muted);
}

/* Button with an arrow */
.wp-block-button.is-style-ws-arrow .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 22px;
	font-size: 1rem;
}

.wp-block-button.is-style-ws-arrow .wp-block-button__link::after {
	content: "";
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%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='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* In-article link box */
.wp-block-group.is-style-ws-linkbox {
	gap: 14px 20px !important;
	padding: 20px 22px;
	border-radius: 12px;
	background: var(--wp--preset--color--white);
	border: 2px solid var(--wp--preset--color--primary);
}

.wp-block-group.is-style-ws-linkbox > * {
	margin: 0 !important;
}

.ws-linkbox__text {
	flex: 1 1 280px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ws-linkbox__text > * {
	margin: 0 !important;
}

p.ws-linkbox__line {
	font-weight: 600;
	font-size: 1.125rem;
	color: var(--wp--preset--color--ink);
}

/* About the editor */
.wp-block-group.is-style-ws-about-editor {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	align-items: flex-start;
	padding: 36px;
	border-radius: 14px;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
}

.wp-block-group.is-style-ws-about-editor > * {
	margin: 0 !important;
}

.ws-about-editor__photo {
	flex: none;
	width: 88px;
	height: 88px;
	border-radius: 50%;
	overflow: hidden;
	background: #E6ECF5;
}

.ws-about-editor__text {
	flex: 1 1 260px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ws-about-editor__text > * {
	margin: 0 !important;
}

p.ws-about-editor__name {
	font-family: var(--wp--preset--font-family--source-serif);
	font-weight: 600;
	font-size: 1.375rem;
	color: var(--wp--preset--color--ink);
}

p.ws-about-editor__links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	font-size: var(--wp--preset--font-size--s);
	font-weight: 600;
}

/* Affiliate disclosure line */
p.is-style-ws-disclosure {
	font-size: var(--wp--preset--font-size--xs);
	line-height: 1.5;
	color: var(--wp--preset--color--muted);
	padding: 10px 14px;
	border-radius: 8px;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
}

/* Paying the gap */
.wp-block-group.is-style-ws-paying-gap {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 22px;
	border-radius: 12px;
	background: #FBF7EE;
	border: 1px solid #F0E6CC;
}

.wp-block-group.is-style-ws-paying-gap > * {
	margin: 0 !important;
}

p.ws-paying-gap__title {
	font-family: var(--wp--preset--font-family--source-serif);
	font-weight: 600;
	font-size: 1.375rem;
	line-height: 1.25;
	color: var(--wp--preset--color--ink);
}

p.ws-paying-gap__disclosure {
	font-size: var(--wp--preset--font-size--xs);
	line-height: 1.5;
	color: var(--wp--preset--color--muted);
}

/* Navy alerts box at the end of a guide */
.wp-block-group.is-style-ws-alerts-dark {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 36px;
	border-radius: 14px;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
}

.wp-block-group.is-style-ws-alerts-dark > * {
	margin: 0 !important;
}

.wp-block-group.is-style-ws-alerts-dark h2 {
	font-size: 1.5rem;
	line-height: 1.2;
	color: var(--wp--preset--color--white);
}

.wp-block-group.is-style-ws-alerts-dark p {
	font-size: 1rem;
	color: var(--wp--preset--color--on-dark);
}

.ws-form--compact {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 10px;
}

.ws-form--compact input[type="email"] {
	flex: 1 1 220px;
	height: 48px;
	border-radius: 8px;
}

.ws-form--compact .ws-form__check {
	flex: 1 1 100%;
}

.is-style-ws-alerts-dark .ws-form__check {
	color: var(--wp--preset--color--on-dark);
}

.is-style-ws-alerts-dark .ws-form__check input {
	accent-color: var(--wp--preset--color--gold);
}

.ws-btn--gold {
	flex: 0 0 auto;
	min-height: 48px;
	padding: 0 20px;
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--ink);
}

.ws-btn--gold:hover,
.ws-btn--gold:focus {
	background: #FFC933;
	color: var(--wp--preset--color--ink);
}

.is-style-ws-alerts-dark .ws-form__note {
	flex: 1 1 100%;
	color: var(--wp--preset--color--on-dark-muted);
}

@media (max-width: 600px) {
	.wp-block-group.is-style-ws-takeaways,
	.wp-block-group.is-style-ws-about-editor,
	.wp-block-group.is-style-ws-alerts-dark {
		padding: 24px;
	}
}

/* =====================================================================
 * Guides (single.html, home.html, category.html, author.html)
 * =================================================================== */

.ws-main--guide {
	padding-bottom: 56px;
}

.ws-main--guide > * + * {
	margin-block-start: 0;
}

.ws-guide__title {
	margin-top: 20px !important;
	font-size: var(--wp--preset--font-size--heading-xl);
	line-height: 1.12;
	letter-spacing: -.015em;
	text-wrap: balance;
}

/* Byline */
.ws-byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	margin-top: 20px !important;
	padding: 14px 0;
	border-top: 1px solid var(--wp--preset--color--border);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.ws-byline__who {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--wp--preset--color--text);
	text-decoration: none;
}

.ws-byline__who:hover {
	color: var(--wp--preset--color--text);
}

.ws-byline__text {
	display: flex;
	flex-direction: column;
	line-height: 1.35;
}

.ws-byline__name {
	font-weight: 600;
	color: var(--wp--preset--color--ink);
}

.ws-byline__link {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ws-byline__creds {
	font-size: var(--wp--preset--font-size--xs);
	color: var(--wp--preset--color--muted);
}

.ws-byline__dates {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin: 0 0 0 auto;
	font-size: var(--wp--preset--font-size--xs);
	color: var(--wp--preset--color--muted);
}

.ws-avatar {
	flex: none;
	border-radius: 50%;
	object-fit: cover;
}

.ws-avatar--initials {
	display: grid;
	place-items: center;
	background: #E6ECF5;
	color: var(--wp--preset--color--ink);
	font-weight: 700;
	font-size: .9375rem;
}

/* Featured image: under the byline, full column width, never cropped. Prints nothing when a guide has none. */
.ws-guide__image {
	margin-top: 24px !important;
	margin-bottom: 0;
}

.ws-guide__image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
}

/* Article body: 720px column, sections 40px apart. */
.ws-guide__content {
	margin-top: 24px !important;
}

.ws-guide__content > * {
	margin-top: 20px;
	margin-bottom: 0;
}

.ws-guide__content > :first-child {
	margin-top: 0;
}

.ws-guide__content > h2 {
	margin-top: 40px;
	scroll-margin-top: 16px;
}

.ws-guide__content > p {
	font-size: var(--wp--preset--font-size--m);
	line-height: 1.7;
}

.ws-guide__content > p.is-style-ws-lead {
	font-size: var(--wp--preset--font-size--lead);
}

.ws-guide__content > .is-style-ws-takeaways,
.ws-guide__content > .is-style-ws-toc {
	margin-top: 28px;
}

.ws-guide__content > .is-style-ws-faq,
.ws-guide__content > .is-style-ws-about-editor,
.ws-guide__content > .is-style-ws-alerts-dark {
	margin-top: 40px;
}

.ws-guide__content > .is-style-ws-faq {
	margin-top: 48px;
	gap: 10px;
}

.ws-guide__content figure.wp-block-image figcaption {
	font-size: .875rem;
	color: var(--wp--preset--color--muted);
	text-align: left;
}

.ws-guide__content figure.wp-block-image img {
	border-radius: 12px;
}

.ws-guide__content ul:not([class*="is-style-"]),
.ws-guide__content ol:not([class*="is-style-"]) {
	padding-left: 1.25em;
	font-size: var(--wp--preset--font-size--m);
	line-height: 1.7;
}

.ws-related-guides {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin-top: 56px !important;
}

.ws-related-guides > *,
.ws-state-guides > * {
	margin: 0;
}

.ws-related-guides .ws-band__head,
.ws-state-guides .ws-band__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
}

.ws-related-guides h2,
.ws-state-guides h2 {
	margin: 0;
	font-size: var(--wp--preset--font-size--heading-l);
	line-height: 1.2;
}

.ws-state-guides {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.ws-term-page__content > .wp-block-ws-state-guides {
	margin-top: 48px;
}

/* Guides index, categories, author */
.ws-guides__intro {
	margin-top: 12px !important;
}

.ws-main--guides .ws-guide-cats {
	margin-top: 24px !important;
}

.ws-main--guides .ws-guide-cards,
.ws-main--author .ws-guide-cards {
	margin-top: 32px !important;
}

.ws-main--author .ws-author-box {
	margin-top: 24px;
}

.ws-main--author h1.ws-about-editor__name {
	margin: 0;
	font-size: 1.75rem;
	line-height: 1.2;
}

.ws-author-box__creds {
	margin: 0;
	font-weight: 600;
	color: var(--wp--preset--color--ink);
}

.ws-author__guides-title {
	margin-top: 48px !important;
	font-size: var(--wp--preset--font-size--heading-l);
}

.ws-query-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 24px !important;
}

.ws-query-pagination .page-numbers,
.ws-query-pagination .wp-block-query-pagination-next,
.ws-query-pagination .wp-block-query-pagination-previous {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border-radius: 8px;
	border: 1px solid var(--wp--preset--color--border);
	color: var(--wp--preset--color--ink);
	font-weight: 600;
	text-decoration: none;
}

.ws-query-pagination .page-numbers.current {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}

@media (max-width: 600px) {
	.ws-byline__dates {
		margin-left: 0;
	}
}

/* Forms on plain pages: Submit a scholarship and Contact (milestone 7) */
.ws-form--submit,
.ws-form--contact {
	gap: 14px;
}

.ws-form__submit {
	align-self: flex-start;
	min-height: 46px;
	padding: 0 20px;
	font-size: var(--wp--preset--font-size--s);
}

.ws-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ws-form__status {
	margin: 0 0 12px;
	padding: 12px 16px;
	border-radius: 8px;
	font-weight: 600;
}

.ws-form__status--ok {
	background: #ECFDF5;
	border: 1px solid #A7F3D0;
	color: #065F46;
}

.ws-form__status--error {
	background: #FEF2F2;
	border: 1px solid #FECACA;
	color: #991B1B;
}

/* "Confirm deadline alerts" button, from the email sent to existing subscribers. */
.ws-form__confirm {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
}

/* Cloudflare Turnstile check (appears only when a visitor must interact). */
.ws-form__turnstile:not(:empty) {
	margin-bottom: 12px;
}

/* Scholarships hub (/scholarships/: archive-scholarship.html shows Pages → Scholarships) */
.ws-main--hub {
	padding-bottom: 64px;
}

.ws-main--hub > * + * {
	margin-block-start: 0;
}

.ws-hub > * {
	margin-top: 0;
	margin-bottom: 0;
}

.ws-hub > .ws-hub__title,
.ws-hub > h1 {
	margin-top: 20px;
	font-size: var(--wp--preset--font-size--heading-xl);
	line-height: 1.1;
}

.ws-hub p.ws-intro {
	margin-top: 16px;
	max-width: 68ch;
	font-size: var(--wp--preset--font-size--m);
	line-height: 1.65;
}

.ws-hub > p.ws-count-line,
.ws-hub > .wp-block-ws-count-line {
	margin-top: 12px;
}

.ws-hub__stats {
	margin-top: 32px !important;
}

.ws-hub__section {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: 56px !important;
}

.ws-hub__section > * {
	margin: 0 !important;
}

.ws-hub__section h2 {
	font-size: var(--wp--preset--font-size--heading-l);
}

@media (max-width: 600px) {
	.ws-hub__section {
		margin-top: 40px !important;
	}

	.ws-main--hub {
		padding-bottom: 40px;
	}
}

/* Search results and 404 */
.ws-main--plain {
	padding-bottom: 64px;
}

.ws-main--plain > * {
	margin-top: 0;
	margin-bottom: 0;
}

.ws-main--plain > .ws-plain__title {
	margin-top: 32px;
	font-size: var(--wp--preset--font-size--heading-xl);
	line-height: 1.15;
}

.ws-main--plain > .wp-block-winscholarships-breadcrumbs + .ws-plain__title {
	margin-top: 20px;
}

.ws-main--plain > p.ws-intro {
	margin-top: 16px;
	font-size: var(--wp--preset--font-size--m);
	line-height: 1.65;
}

.ws-main--plain > .ws-plain__search {
	margin-top: 24px;
}

.ws-plain__search .wp-block-search__inside-wrapper {
	min-height: 52px;
	padding: 4px;
	border: 1px solid #9CA3AF;
	border-radius: 8px;
	background: var(--wp--preset--color--white);
}

.ws-plain__search .wp-block-search__input {
	border: 0;
	padding-inline: 12px;
	font-size: 1rem;
}

.ws-plain__search .wp-block-search__button {
	margin: 0;
	padding: 0 20px;
	border: 0;
	border-radius: 6px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	font-weight: 600;
}

.ws-main--plain .ws-hub__section {
	margin-top: 48px !important;
}

.ws-results {
	margin-top: 32px !important;
}

.ws-results__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ws-results__list > li {
	padding: 20px 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.ws-results__list > li > * {
	margin: 0;
}

.ws-results__title {
	font-size: var(--wp--preset--font-size--heading-s);
}

.ws-results__excerpt {
	margin-top: 6px !important;
	color: var(--wp--preset--color--muted);
}

.ws-results__excerpt .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.ws-results__pages {
	margin-top: 24px;
}

.ws-results__none {
	margin: 0;
	font-size: var(--wp--preset--font-size--m);
}

.ws-plain__back {
	margin-top: 40px !important;
}

/* Draft note: marks sample copy that still needs Brian's text or approval. */
p.is-style-ws-draft {
	padding: 12px 16px;
	border: 2px dashed #B45309;
	border-radius: 8px;
	background: #FFFBEB;
	color: #78350F;
	font-size: var(--wp--preset--font-size--s);
	font-weight: 600;
}

/* Hub: keep the narrow intro left-aligned in the editor too, and space the draft note. */
.ws-hub > p.ws-intro {
	margin-left: 0 !important;
	margin-right: auto !important;
}

.ws-hub > p.is-style-ws-draft {
	margin-top: 16px;
}

/* =====================================================================
 * Milestone 8: 44px tap targets on phones
 * =================================================================== */
@media (max-width: 600px) {
	.ws-card__details,
	.ws-place,
	ul.is-style-ws-chips a,
	ul.is-style-ws-chips-dark a,
	.ws-logo--header {
		min-height: 44px;
	}

	.ws-crumbs a,
	.ws-stat__link,
	.ws-band__link a,
	.ws-about-editor__links a,
	.ws-form__privacy a,
	.wp-block-group.is-style-ws-toc li a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}

	.ws-form__check {
		min-height: 44px;
		align-items: center;
	}

	.wp-block-search.is-style-ws-header .wp-block-search__input,
	.wp-block-search.is-style-ws-header .wp-block-search__inside-wrapper {
		min-height: 44px;
	}
}

/* Menu row on tablets: no visible scrollbar, and the "Directory updated"
 * note only where it fits beside the menu (it is repeated in the page). */
.ws-site-nav {
	scrollbar-width: none;
}

.ws-site-nav::-webkit-scrollbar {
	display: none;
}

@media (max-width: 1100px) {
	.ws-site-nav .ws-site-nav__updated {
		display: none;
	}
}

/* Contact Form 7 (its own stylesheet is switched off; the form uses .ws-form) */
.wpcf7 .screen-reader-response {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.wpcf7 .hidden-fields-container {
	display: none;
}

.wpcf7-form .wpcf7-form-control-wrap {
	display: flex;
	flex-direction: column;
}

.wpcf7-form .wpcf7-form-control-wrap input,
.wpcf7-form .wpcf7-form-control-wrap textarea {
	width: 100%;
	box-sizing: border-box;
}

.wpcf7-form .wpcf7-not-valid {
	border-color: #B91C1C;
}

.wpcf7-not-valid-tip {
	margin-top: 4px;
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
	color: #991B1B;
}

.wpcf7-form .wpcf7-submit {
	border: 0;
	cursor: pointer;
}

.wpcf7-form .wpcf7-submit:disabled {
	opacity: .7;
	cursor: progress;
}

.wpcf7-spinner {
	display: none;
}

.wpcf7-form.submitting .wpcf7-spinner {
	display: inline-block;
	width: 18px;
	height: 18px;
	margin-left: 10px;
	vertical-align: middle;
	border: 2px solid #CBD5E1;
	border-top-color: var(--wp--preset--color--primary);
	border-radius: 50%;
	animation: ws-spin .8s linear infinite;
}

@keyframes ws-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.wpcf7-form.submitting .wpcf7-spinner {
		animation: none;
	}
}

.wpcf7-response-output:empty,
.wpcf7-form.init .wpcf7-response-output {
	display: none;
}

.wpcf7-response-output {
	margin: 4px 0 0;
	padding: 12px 16px;
	border-radius: 8px;
	font-weight: 600;
	background: #FEF2F2;
	border: 1px solid #FECACA;
	color: #991B1B;
}

.wpcf7-form.sent .wpcf7-response-output {
	background: #ECFDF5;
	border-color: #A7F3D0;
	color: #065F46;
}
