/*
 * Core block styles from inc/block-styles.php ("Styles" panel in the editor),
 * and how core blocks sit inside the theme's own blocks.
 */

/* Paragraph ---------------------------------------------------------------- */
.is-style-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: fit-content;
	padding: 7px 12px;
	background: var(--wp--preset--color--accent-tint);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--wp--preset--color--accent-dark);
}

p.is-style-lead {
	max-width: 560px;
	font-size: 20px;
	line-height: 1.55;
}

p.is-style-panel {
	max-width: 580px;
	padding: 16px 18px;
	background: var(--wp--preset--color--mist);
	border-radius: 12px;
	font-size: 16px;
	line-height: 1.65;
}

p.is-style-note {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
	padding: 16px 20px;
	background: var(--wp--preset--color--base);
	border: 1px dashed #E0CFC5;
	border-radius: 12px;
	font-size: 14.5px;
}

p.is-style-note strong {
	font-weight: 600;
	color: var(--wp--preset--color--ink);
}

p.is-style-kicker {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

p.is-style-small {
	font-size: 14px;
	color: var(--wp--preset--color--muted);
}

p.is-style-more-link {
	font-size: 16px;
	font-weight: 600;
}

p.is-style-more-link a {
	color: var(--wp--preset--color--accent-dark);
}

p.is-style-link-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	padding-top: 20px;
	border-top: 1px solid var(--wp--preset--color--border);
	font-size: 15px;
	font-weight: 600;
	color: #C7CBD2;
}

p.is-style-link-row a {
	color: var(--wp--preset--color--accent-dark);
}

p.is-style-price {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 34px;
	font-weight: 800;
	color: var(--wp--preset--color--ink);
}

p.is-style-price em {
	font-family: var(--wp--preset--font-family--body);
	font-size: 15px;
	font-style: normal;
	font-weight: 500;
	color: var(--wp--preset--color--muted);
}

p.is-style-badge {
	width: fit-content;
	padding: 5px 10px;
	background: var(--wp--preset--color--accent);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	color: var(--wp--preset--color--ink);
}

p.is-style-quote {
	font-size: 16px;
	line-height: 1.65;
	color: var(--wp--preset--color--ink);
}

p.is-style-tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: fit-content;
	padding: 6px 12px;
	background: var(--wp--preset--color--accent-tint);
	border-radius: 6px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.3;
	text-transform: uppercase;
	color: #9A3412;
}

p.is-style-tag::before {
	content: "";
	flex: none;
	width: 15px;
	height: 15px;
	background: url("../icons/ui/map-pin-small.svg") center / contain no-repeat;
}

/* Heading ------------------------------------------------------------------ */
.wp-block-heading.is-style-label {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink);
}

.wp-block-heading.is-style-medium {
	font-size: clamp(24px, 3vw, 30px);
	font-weight: 800;
	line-height: 1.2;
}

/* List --------------------------------------------------------------------- */
ul.is-style-ticks {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 0;
	list-style: none;
	font-size: 14.5px;
}

ul.is-style-ticks li {
	display: flex;
	gap: 9px;
	margin: 0;
}

ul.is-style-ticks li::before {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	margin-top: 2px;
	background: url("../icons/ui/check.svg") center / contain no-repeat;
}

ul.is-style-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0;
	list-style: none;
}

ul.is-style-chips li {
	margin: 0;
	padding: 7px 12px;
	background: var(--wp--preset--color--mist);
	border-radius: 999px;
	font-size: 14px;
	line-height: 1.3;
	color: var(--wp--preset--color--body);
}

/* A chip with a link has its own page: peach. */
ul.is-style-chips li:has(a) {
	background: var(--wp--preset--color--accent-tint);
	font-weight: 600;
}

ul.is-style-chips a {
	color: var(--wp--preset--color--accent-dark);
	text-decoration: none;
}

ul.is-style-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 0;
	list-style: none;
}

ul.is-style-tags li {
	margin: 0;
	padding: 4px 10px;
	background: #F7F8FA;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--wp--preset--color--ink);
}

/* Table -------------------------------------------------------------------- */
.wp-block-table.is-style-comparison {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border-warm);
	border-radius: 12px;
}

.wp-block-table.is-style-comparison table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.wp-block-table.is-style-comparison :is(thead, th, td) {
	border: 0;
}

.wp-block-table.is-style-comparison figcaption {
	order: -1;
	margin: 0;
	padding: 16px 20px 0;
	font-size: 13px;
	text-align: left;
	color: var(--wp--preset--color--muted);
}

.wp-block-table.is-style-comparison thead th {
	padding: 16px 20px;
	border-bottom: 1px solid var(--wp--preset--color--border);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 15px;
	font-weight: 700;
	text-align: left;
	color: var(--wp--preset--color--ink);
}

.wp-block-table.is-style-comparison thead th:first-child {
	font-size: 14px;
	font-weight: 600;
	color: var(--wp--preset--color--muted);
}

.wp-block-table.is-style-comparison tbody :is(th, td) {
	padding: 13px 20px;
	border-bottom: 1px solid #F0F1F3;
	text-align: left;
}

.wp-block-table.is-style-comparison tbody tr:last-child :is(th, td) {
	border-bottom: 0;
}

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

/* The second column is the highlighted one. */
.wp-block-table.is-style-comparison :is(th, td):nth-child(2) {
	background: var(--wp--preset--color--cream);
}

.wp-block-table.is-style-comparison tbody td:nth-child(2) {
	font-weight: 600;
	color: var(--wp--preset--color--success);
}

@media (max-width: 781px) {
	.wp-block-table.is-style-comparison {
		overflow-x: auto;
	}

	.wp-block-table.is-style-comparison table {
		min-width: 620px;
	}
}

/* Buttons ------------------------------------------------------------------ */
.wp-block-button.is-style-dark > .wp-block-button__link {
	background: #000;
	color: #fff;
}

.wp-block-button.is-style-dark > .wp-block-button__link:hover {
	background: #2A2E37;
	color: #fff;
}

.wp-block-button.is-style-outline-dark > .wp-block-button__link {
	background: transparent;
	border: 2px solid var(--wp--preset--color--ink);
	box-shadow: none;
	color: var(--wp--preset--color--ink);
}

.wp-block-button.is-style-outline-dark > .wp-block-button__link:hover {
	background: rgba(20, 23, 31, 0.08);
}

/* Buttons in the theme's sections are a size up from the default. */
.fhb-section .wp-block-button__link {
	padding: 15px 24px;
	font-size: 16px;
}

.fhb-section.is-bg-accent .wp-block-button__link {
	padding: 16px 26px;
	font-size: 17px;
}

.fhb-section.is-bg-accent .is-style-outline-dark > .wp-block-button__link {
	padding: 14px 24px;
}

.fhb-card .wp-block-buttons {
	margin-top: auto;
	padding-top: 12px;
}

.fhb-card .wp-block-button,
.fhb-card .wp-block-button__link {
	width: 100%;
	justify-content: center;
	text-align: center;
}

.fhb-card .wp-block-button__link {
	padding: 13px 18px;
	font-size: 15px;
}

/* Columns inside a section line up with the design's two-column bands. */
.fhb-section .wp-block-columns {
	gap: 48px 56px;
	margin-bottom: 0;
}

.fhb-section .wp-block-column > * {
	margin-block: 0;
}

.fhb-section .wp-block-column > * + * {
	margin-top: 18px;
}

/* Column proportions used by the home page bands. */
@media (min-width: 782px) {
	.fhb-section .fh-cols-85-100 > .wp-block-column:first-child {
		flex: 0.85 1 0;
	}

	.fhb-section .fh-cols-85-100 > .wp-block-column:last-child {
		flex: 1 1 0;
	}

	/* Text takes the room, the buttons take what they need. */
	.fhb-section .wp-block-columns.fh-cols-cta {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 40px;
	}
}

.fhb-section__inner > .fh-gap-lg {
	margin-top: 44px;
}

.fhb-section.is-bg-dark .wp-block-column p {
	font-size: 17px;
	line-height: 1.7;
}

/* Links in the theme's blocks are not underlined until hovered, also inside
   page content (where theme.json underlines links). */
:is(.fhb-section, .fhb-hero, .fhb-card) a:not(.wp-element-button) {
	text-decoration: none;
}

:is(.fhb-section, .fhb-hero, .fhb-card) a:not(.wp-element-button):hover {
	text-decoration: underline;
}

a.fhb-card:hover,
.fhb-posts__card:hover {
	text-decoration: none;
}

/* Line lengths from the designs. */
.fh-measure-20 {
	max-width: 20ch;
}

.fh-measure-62 {
	max-width: 62ch !important;
}

/* In-page links (#how-it-works) stop below the sticky header. */
:is(.fhb-section, .fhb-hero, .fhb-card)[id] {
	scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + 88px);
}

/* ---------------------------------------------------------------------------
 * Industry pages (Single Solution)
 * ------------------------------------------------------------------------- */
p.is-style-callout {
	padding: 14px 18px;
	background: #F7F8FA;
	border-radius: 10px;
	font-size: 15.5px;
	line-height: 1.6;
}

p.is-style-callout strong { color: var(--wp--preset--color--ink); }

p.is-style-number {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 14px;
	font-weight: 800;
	color: var(--wp--preset--color--accent-dark);
}

p.is-style-big-number {
	justify-self: end;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 28px;
	font-weight: 800;
	line-height: 1;
	color: var(--wp--preset--color--mist);
}

p.is-style-code-label {
	font-size: 12.5px;
	color: #9AA1AC;
}

p.is-style-mono {
	font-family: ui-monospace, Menlo, monospace;
	font-size: 14px;
	line-height: 1.9;
}

.wp-block-heading.is-style-underlined {
	padding-bottom: 12px;
	border-bottom: 2px solid var(--wp--preset--color--accent);
	font-size: 18px;
	font-weight: 700;
}

/* Lists */
ul:is(.is-style-ticks-inline, .is-style-check-grid, .is-style-check-lines, .is-style-checkboxes, .is-style-crosses, .is-style-points, .is-style-keywords) {
	padding: 0;
	list-style: none;
}

ul:is(.is-style-ticks-inline, .is-style-check-grid, .is-style-check-lines, .is-style-checkboxes, .is-style-crosses, .is-style-points, .is-style-keywords) li {
	margin: 0;
}

ul.is-style-ticks-inline {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	font-size: 14.5px;
	color: var(--wp--preset--color--ink);
}

ul.is-style-ticks-inline li,
ul.is-style-check-lines li,
ul.is-style-check-grid li,
ul.is-style-checkboxes li,
ul.is-style-crosses li {
	display: flex;
	align-items: center;
	gap: 6px;
}

ul:is(.is-style-ticks-inline, .is-style-check-grid, .is-style-check-lines) li::before {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	background: url("../icons/ui/check.svg") center / contain no-repeat;
}

ul.is-style-check-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: 8px;
}

ul.is-style-check-grid li {
	align-items: flex-start;
	gap: 10px;
	padding: 10px 12px;
	background: #F7F8FA;
	border-radius: 8px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--wp--preset--color--ink);
}

ul.is-style-check-grid li::before { margin-top: 3px; }

ul.is-style-check-lines {
	display: flex;
	flex-direction: column;
}

ul.is-style-check-lines li {
	gap: 12px;
	min-height: 46px;
	border-bottom: 1px solid #F0F1F3;
	font-size: 16px;
	color: var(--wp--preset--color--ink);
}

ul.is-style-checkboxes li {
	gap: 12px;
	min-height: 40px;
	font-size: 15px;
	color: var(--wp--preset--color--ink);
}

ul.is-style-checkboxes li::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	border: 2px solid #C4C8CF;
	border-radius: 4px;
}

ul.is-style-crosses {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: 10px;
}

ul.is-style-crosses li {
	gap: 12px;
	min-height: 52px;
	padding: 10px 14px;
	background: var(--wp--preset--color--base);
	border: 1px solid #F3D3D0;
	border-radius: 10px;
	font-size: 15.5px;
	font-weight: 600;
	color: var(--wp--preset--color--ink);
}

ul.is-style-crosses li::before {
	content: "";
	flex: none;
	width: 26px;
	height: 26px;
	background: #FDECEC url("../icons/ui/cross-red.svg") center / 14px no-repeat;
	border-radius: 50%;
}

ul.is-style-points {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	border-top: 1px solid #F0F1F3;
}

ul.is-style-points li {
	padding: 14px 16px 14px 0;
	border-bottom: 1px solid #F0F1F3;
	font-size: 15.5px;
	line-height: 1.55;
}

ul.is-style-points strong { color: var(--wp--preset--color--ink); }

ul.is-style-keywords {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

ul.is-style-keywords li {
	padding: 7px 12px;
	background: #F7F8FA;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	font-size: 14.5px;
	color: var(--wp--preset--color--ink);
}

ul.is-style-keywords code {
	padding: 1px 6px;
	background: var(--wp--preset--color--accent-tint);
	border-radius: 4px;
	font-family: ui-monospace, Menlo, monospace;
	font-size: 0.92em;
	color: #9A3412;
}

/* Tables */
.wp-block-table:is(.is-style-versus, .is-style-fields, .is-style-audit) table {
	width: 100%;
	border-collapse: collapse;
}

.wp-block-table:is(.is-style-versus, .is-style-fields, .is-style-audit) :is(thead, th, td) {
	border: 0;
}

.wp-block-table:is(.is-style-versus, .is-style-fields, .is-style-audit) figcaption {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.wp-block-table.is-style-versus {
	overflow-x: auto;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
}

.wp-block-table.is-style-versus table {
	min-width: 480px;
	font-size: 16px;
}

.wp-block-table.is-style-versus th {
	padding: 16px 20px;
	background: #F7F8FA;
	border-bottom: 1px solid var(--wp--preset--color--border);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 16px;
	text-align: left;
	color: var(--wp--preset--color--ink);
}

.wp-block-table.is-style-versus th:last-child {
	background: #FFF0E8;
	border-bottom: 2px solid var(--wp--preset--color--accent);
}

.wp-block-table.is-style-versus td {
	padding: 14px 20px;
	border-bottom: 1px solid #F0F1F3;
}

.wp-block-table.is-style-versus td:last-child {
	background: #FFFBF8;
	font-weight: 600;
	color: var(--wp--preset--color--ink);
}

.wp-block-table.is-style-versus td:last-child::before {
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-right: 8px;
	vertical-align: -2px;
	background: url("../icons/ui/check.svg") center / contain no-repeat;
}

/* Two short columns fit a phone once they wrap, so drop the scroll width. */
@media (max-width: 599px) {
	.wp-block-table.is-style-versus table { min-width: 0; font-size: 14.5px; }
	.wp-block-table.is-style-versus :is(th, td) { padding: 12px 14px; }
}

.wp-block-table.is-style-fields {
	padding: 8px 20px;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
}

.wp-block-table.is-style-fields td {
	padding: 11px 0;
	border-bottom: 1px solid #F0F1F3;
	font-size: 14.5px;
	text-align: right;
	color: var(--wp--preset--color--ink);
}

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

.wp-block-table.is-style-fields td:first-child {
	font-family: ui-monospace, Menlo, monospace;
	font-size: 14px;
	text-align: left;
	color: #9A3412;
}

.wp-block-table.is-style-audit th {
	padding: 14px 18px;
	background: #F7F8FA;
	border-bottom: 1px solid var(--wp--preset--color--border);
	font-size: 13px;
	font-weight: 700;
	text-align: left;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.wp-block-table.is-style-audit :is(th, td):last-child {
	text-align: right;
	text-transform: none;
}

.wp-block-table.is-style-audit td {
	padding: 14px 18px;
	border-bottom: 1px solid #F0F1F3;
	font-size: 15px;
	color: var(--wp--preset--color--ink);
}

.wp-block-table.is-style-audit td:first-child::before {
	content: "";
	display: inline-block;
	width: 28px;
	height: 28px;
	margin-right: 10px;
	vertical-align: middle;
	background: var(--wp--preset--color--mist);
	border-radius: 6px;
}

/* Status pills inside a status list: <span class="fh-pill is-ok">. */
.fh-pill {
	display: inline-block;
	padding: 5px 10px;
	background: var(--wp--preset--color--mist);
	border-radius: 6px;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
	color: var(--wp--preset--color--body);
}

.fh-pill.is-ok { background: #E7F6EE; color: #166534; }
.fh-pill.is-warn { background: #FFF4E5; color: #9A5B00; }
.fh-pill.is-bad { background: #FDECEC; color: #B42318; }
.fh-pill.is-info { background: #EEF2FF; color: #3730A3; }

/* Code inside a dark card. */
.fhb-card.is-variant-dark .wp-block-code {
	margin: 0;
	padding: 0;
	overflow-x: auto;
	background: none;
	border: 0;
	font-family: ui-monospace, Menlo, monospace;
	font-size: 13px;
	line-height: 1.6;
	color: var(--wp--preset--color--border);
}

.fhb-card.is-variant-dark .wp-block-code code {
	display: block;
	font: inherit;
	white-space: pre;
}

.fhb-card.is-variant-dark p.is-style-mono { color: var(--wp--preset--color--border); }

.wp-block-button.is-style-outline-light > .wp-block-button__link {
	background: transparent;
	border: 1.5px solid rgba(255, 255, 255, 0.6);
	box-shadow: none;
	color: #fff;
}

.wp-block-button.is-style-outline-light > .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

/* Buttons that end in an arrow (class added in the editor's Advanced panel). */
.wp-block-button.fh-btn-arrow > .wp-block-button__link::after {
	content: "→";
	margin-left: 10px;
}

.fh-text-accent,
p.is-style-kicker.fh-text-accent {
	color: var(--wp--preset--color--accent);
}

.fh-measure-22 {
	max-width: 22ch;
}
