/*
 * Standard WordPress blocks (Paragraph, Heading, List, Buttons, Image, Quote, Table, Separator)
 * added inside LeaseVantage pages: brand fonts, colours and spacing.
 * Text colours switch automatically on dark sections (class lv-on-dark, set by core-ctx.js).
 */
.wp-block-paragraph { color: #475569; font-size: 1rem; line-height: 1.75; margin: 0 0 1rem; }
h1.wp-block-heading, h2.wp-block-heading, h3.wp-block-heading,
h4.wp-block-heading, h5.wp-block-heading, h6.wp-block-heading {
	font-family: Montserrat, 'Hanken Grotesk', sans-serif; font-weight: 800; color: #0F1B25;
	line-height: 1.2; letter-spacing: -0.01em; margin: 1.75rem 0 0.75rem;
}
h1.wp-block-heading { font-size: clamp(2rem, 4vw, 3rem); }
h2.wp-block-heading { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3.wp-block-heading { font-size: 1.35rem; }
h4.wp-block-heading { font-size: 1.15rem; }
h5.wp-block-heading, h6.wp-block-heading { font-size: 1rem; }
.wp-block-list { color: #475569; font-size: 1rem; line-height: 1.75; margin: 0 0 1rem; padding-left: 1.4em; }
ul.wp-block-list { list-style: disc; }
ol.wp-block-list { list-style: decimal; }
.wp-block-list li { margin: 0.25rem 0; }
.wp-block-paragraph a, .wp-block-list a, .wp-block-heading a, .wp-block-quote a, .wp-block-table a {
	color: #15708A; text-decoration: underline; text-underline-offset: 2px;
}
.wp-block-paragraph strong, .wp-block-list strong { font-weight: 700; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0; }
.wp-block-buttons .wp-block-button__link {
	display: inline-flex; align-items: center; gap: 0.5rem; background: #15708A; color: #fff;
	font-family: 'Hanken Grotesk', sans-serif; font-weight: 600; font-size: 0.875rem; line-height: 1.25rem;
	padding: 0.75rem 1.5rem; border: 1px solid #15708A; border-radius: 2px; letter-spacing: 0.01em;
	text-decoration: none; transition: background-color 0.2s, border-color 0.2s;
}
.wp-block-buttons .wp-block-button__link:hover { background: #1A8BAA; border-color: #1A8BAA; color: #fff; }
.wp-block-buttons .is-style-outline .wp-block-button__link { background: transparent; color: #15708A; }
.wp-block-buttons .is-style-outline .wp-block-button__link:hover { background: #15708A; color: #fff; }
.wp-block-image { margin: 1.5rem 0; }
.wp-block-image img { max-width: 100%; height: auto; }
.wp-block-image figcaption { font-size: 0.8125rem; color: #64748b; margin-top: 0.5rem; }
.wp-block-quote { border-left: 3px solid #1A8BAA; padding-left: 1.25rem; margin: 1.5rem 0; color: #475569; font-style: italic; }
.wp-block-separator { border: 0; border-top: 1px solid #e2e8f0; margin: 2rem 0; }
.wp-block-table { margin: 1.5rem 0; overflow-x: auto; }
.wp-block-table table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; color: #475569; }
.wp-block-table td, .wp-block-table th { border: 1px solid #e2e8f0; padding: 0.5rem 0.75rem; text-align: left; }

/* On dark sections */
.lv-on-dark.wp-block-paragraph, .lv-on-dark.wp-block-list, .lv-on-dark.wp-block-quote,
.lv-on-dark.wp-block-table table { color: rgba(255, 255, 255, 0.72); }
.lv-on-dark.wp-block-heading { color: #fff; }
.lv-on-dark a { color: #4DBDD0; }
.lv-on-dark.wp-block-separator { border-top-color: rgba(255, 255, 255, 0.15); }
.lv-on-dark.wp-block-table td, .lv-on-dark.wp-block-table th { border-color: rgba(255, 255, 255, 0.15); }
.lv-on-dark.wp-block-buttons .is-style-outline .wp-block-button__link { color: #fff; border-color: rgba(255, 255, 255, 0.4); }

/* Blocks placed directly on the page, between designed sections */
.lv-core-top { max-width: 56rem; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
:not(.lv-core-top) + .lv-core-top, .lv-core-top:first-child { padding-top: 4rem; }
.lv-core-top:not(:has(+ .lv-core-top)) { padding-bottom: 4rem; }
.lv-core-top > :first-child { margin-top: 0; }
.lv-core-top > :last-child { margin-bottom: 0; }

/* Never wider than the space they are placed in (e.g. dropped into a narrow row) */
.wp-block-paragraph, .wp-block-heading, .wp-block-list, .wp-block-quote, .wp-block-table,
.wp-block-buttons, .wp-block-image, .wp-block-separator {
	min-width: 0; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word;
}
/* Dropped into a side-by-side row: the row wraps and the new block takes its own full-width line */
.flex:has(> :is(.wp-block-paragraph, .wp-block-heading, .wp-block-list, .wp-block-quote, .wp-block-buttons, .wp-block-image, .wp-block-table, .wp-block-separator)) { flex-wrap: wrap; }
.flex > :is(.wp-block-paragraph, .wp-block-heading, .wp-block-list, .wp-block-quote, .wp-block-buttons, .wp-block-image, .wp-block-table, .wp-block-separator) { flex: 1 1 100%; }
[class*="grid-cols"] > :is(.wp-block-paragraph, .wp-block-heading, .wp-block-list, .wp-block-quote, .wp-block-buttons, .wp-block-image, .wp-block-table, .wp-block-separator) { grid-column: 1 / -1; }
.wp-block-buttons .wp-block-button { max-width: 100%; }
.wp-block-buttons .wp-block-button__link { max-width: 100%; white-space: normal; }
