/* Levin Global: styles for page content (loaded on the site and inside the editor). */
:root, .editor-styles-wrapper {
	--lgc-indigo: #213661;
	--lgc-indigo-bg: #EEF4F5;
	--lgc-orange: #3D5487;
	--lgc-orange-bg: #F8EEE9;
	--lgc-amber: #C0D5D8;
	--lgc-ink: #261734;
	--lgc-grey: #56506A;
	--lgc-bg: #F4F2F0;
	--lgc-line: #DDD8D4;
	--lgc-grad: linear-gradient(90deg, #C0D5D8, #E0BBAB);
}
.editor-styles-wrapper { font-family: "Inter", "Segoe UI", system-ui, sans-serif; color: var(--lgc-ink); line-height: 1.65; }
.editor-styles-wrapper h1, .editor-styles-wrapper h2, .editor-styles-wrapper h3 { font-family: "Manrope", "Segoe UI", system-ui, sans-serif; color: var(--lgc-indigo); }

/* Headings get a short brand bar above them */
:is(.prose, .editor-styles-wrapper) h2 { font-size: clamp(1.35rem, 2.2vw, 1.65rem); font-weight: 800; margin: 0 0 14px; }
:is(.prose, .editor-styles-wrapper) h2::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 4px; background: var(--lgc-grad); margin-bottom: 12px; }
:is(.prose, .editor-styles-wrapper) h3 { font-size: 1.15rem; margin: 1.4em 0 8px; }
.prose > h2:not(:first-child) { margin-top: 48px; }
.prose > * + * { margin-top: 16px; }
.prose p { color: #3B3350; }

/* Intro text */
.is-style-lg-lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--lgc-ink) !important; padding-bottom: 8px; }

/* Plain bullet lists: orange dots */
:is(.prose, .editor-styles-wrapper) ul:not([class*="is-style-"]) { list-style: none; padding-inline-start: 0; }
:is(.prose, .editor-styles-wrapper) ul:not([class*="is-style-"]) > li { position: relative; padding-inline-start: 24px; }
:is(.prose, .editor-styles-wrapper) ul:not([class*="is-style-"]) > li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--lgc-orange); }
:is(.prose, .editor-styles-wrapper) ul > li + li, :is(.prose, .editor-styles-wrapper) ol > li + li { margin-top: 8px; }

/* Numbered lists: indigo number circles */
:is(.prose, .editor-styles-wrapper) ol:not([class*="is-style-"]) { list-style: none; padding-inline-start: 0; counter-reset: lgc; }
:is(.prose, .editor-styles-wrapper) ol:not([class*="is-style-"]) > li { position: relative; padding-inline-start: 40px; counter-increment: lgc; min-height: 28px; }
:is(.prose, .editor-styles-wrapper) ol:not([class*="is-style-"]) > li::before { content: counter(lgc); position: absolute; inset-inline-start: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--lgc-indigo); color: #fff; font: 700 .85rem/28px "Manrope", sans-serif; text-align: center; }

/* Checklist */
ul.is-style-lg-check { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
ul.is-style-lg-check > li { position: relative; margin: 0 !important; background: #fff; border: 1px solid var(--lgc-line); border-radius: 10px; padding: 12px 14px; padding-inline-start: 48px; font-weight: 500; color: var(--lgc-ink); }
ul.is-style-lg-check > li::before { content: ""; position: absolute; inset-inline-start: 14px; top: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--lgc-orange-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23213661' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }

/* Panel */
.wp-block-group.is-style-lg-panel { background: var(--lgc-bg); border: 1px solid var(--lgc-line); border-radius: 18px; padding: clamp(20px, 3vw, 32px); }
.prose > .is-style-lg-panel { margin-top: 28px; }
.prose > .is-style-lg-panel:first-child, .prose > .is-style-lg-lead + .is-style-lg-panel { margin-top: 20px; }
.is-style-lg-panel > :last-child { margin-bottom: 0; }
.is-style-lg-panel > * + * { margin-top: 14px; }
.is-style-lg-panel p { margin-bottom: 0; }

/* Good to know */
.wp-block-group.is-style-lg-note { background: var(--lgc-orange-bg); border-inline-start: 4px solid #E0BBAB; border-radius: 12px; padding: 16px 20px; }
.is-style-lg-note p { margin: 0; color: #4A2E24 !important; }
.is-style-lg-note strong { color: #8E5A47; }

/* Tables */
:is(.prose, .editor-styles-wrapper) .wp-block-table { margin: 0; overflow-x: auto; border: 1px solid var(--lgc-line); border-radius: 14px; }
:is(.prose, .editor-styles-wrapper) .wp-block-table table { width: 100%; border-collapse: collapse; }
:is(.prose, .editor-styles-wrapper) .wp-block-table :is(th, td) { border: 0; border-bottom: 1px solid var(--lgc-line); padding: 14px 18px; text-align: start; }
:is(.prose, .editor-styles-wrapper) .wp-block-table thead { border: 0; }
:is(.prose, .editor-styles-wrapper) .wp-block-table th { background: var(--lgc-indigo); color: #fff; font: 700 .9rem "Manrope", sans-serif; }
:is(.prose, .editor-styles-wrapper) .wp-block-table tbody tr:nth-child(even) { background: var(--lgc-bg); }
:is(.prose, .editor-styles-wrapper) .wp-block-table tbody tr:last-child td { border-bottom: 0; }
:is(.prose, .editor-styles-wrapper) .wp-block-table td:last-child { font-weight: 700; color: var(--lgc-indigo); }
.prose .wp-block-table + .is-style-lg-note { margin-top: 14px; }

/* Questions */
.prose details.wp-block-details, .editor-styles-wrapper .wp-block-details { background: #fff; border: 1px solid var(--lgc-line); border-radius: 12px; padding: 0 20px; }
.prose details.wp-block-details + details.wp-block-details { margin-top: 10px; }
.prose details.wp-block-details[open] { border-color: var(--lgc-indigo); box-shadow: 0 8px 24px rgba(38,23,52,.08); }
.prose details.wp-block-details summary { padding: 16px 0; }
.prose details.wp-block-details > :not(summary) { margin: 0 0 16px; }

/* Images */
.prose figure.wp-block-image img { border-radius: 14px; }

/* Phones: tighter panels and a table that fits the screen */
@media (max-width: 600px) {
	.wp-block-group.is-style-lg-panel { padding: 20px 16px; border-radius: 14px; }
	:is(.prose, .editor-styles-wrapper) .wp-block-table :is(th, td) { padding: 12px 10px; font-size: .92rem; }
	ul.is-style-lg-check { grid-template-columns: 1fr; }
}
