/*
 * TestAura — content styles for blog articles, SEO pages and normal pages.
 * Loaded on the site AND inside the block editor, so what you write looks the same in both.
 * Scope: .ta-prose on the site, .is-root-container in the editor.
 */

:root {
	--tac-ink: #10272B;
	--tac-text: #2F4448;
	--tac-muted: #5C6F72;
	--tac-brand: #0B6B5C;
	--tac-brand-dark: #084C42;
	--tac-soft: #E6F3F0;
	--tac-mint: #7FD3C3;
	--tac-warm: #FDF0DC;
	--tac-warm-ink: #8A4B00;
	--tac-bg: #F5F8F7;
	--tac-line: #E3EBE9;
	--tac-line-2: #CFDDDA;
	--tac-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Base ---------- */
:where(.ta-prose, .is-root-container) {
	font-family: var(--tac-font);
	font-size: 18px;
	line-height: 1.8;
	color: var(--tac-text);
}
.ta-prose > * { margin-top: 0; margin-bottom: 0; }
.ta-prose > * + * { margin-top: 1.25em; }
.ta-prose > p + p { margin-top: 1em; }

:where(.ta-prose, .is-root-container) :where(h1, h2, h3, h4, h5, h6) {
	font-family: var(--tac-font);
	color: var(--tac-ink);
	letter-spacing: -0.01em;
	margin: 0;
}
.ta-prose > :is(h2, h3, h4) { margin-top: 1.9em; }
.ta-prose > :is(h2, h3, h4):first-child { margin-top: 0; }
.ta-prose > :is(h2, h3, h4) + * { margin-top: 0.6em; }
.ta-prose > .is-style-ta-lead + * { margin-top: 1.4em; }
:where(.ta-prose, .is-root-container) h2 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.25; font-weight: 800; }
:where(.ta-prose, .is-root-container) h3 { font-size: 22px; line-height: 1.3; font-weight: 700; }
:where(.ta-prose, .is-root-container) h4 { font-size: 18px; line-height: 1.4; font-weight: 700; }
:where(.ta-prose, .is-root-container) h5,
:where(.ta-prose, .is-root-container) h6 { font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tac-brand); }

:where(.ta-prose, .is-root-container) a:not(.wp-block-button__link) {
	color: var(--tac-brand);
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
}
:where(.ta-prose, .is-root-container) a:not(.wp-block-button__link):hover { color: var(--tac-brand-dark); }
:where(.ta-prose, .is-root-container) strong { color: var(--tac-ink); font-weight: 700; }
:where(.ta-prose, .is-root-container) mark { background: var(--tac-warm); color: var(--tac-warm-ink); padding: 0 4px; border-radius: 4px; }
:where(.ta-prose, .is-root-container) .has-small-font-size { font-size: 15px; }

/* Lead paragraph style */
:where(.ta-prose, .is-root-container) .is-style-ta-lead { font-size: 21px; line-height: 1.6; font-weight: 500; color: var(--tac-ink); }

/* ---------- Lists ---------- */
:where(.ta-prose, .is-root-container) :where(ul, ol) { margin: 0; padding-left: 0; list-style: none; }
:where(.ta-prose, .is-root-container) :where(ul, ol) li { position: relative; }
:where(.ta-prose, .is-root-container) li + li { margin-top: 0.5em; }
:where(.ta-prose, .is-root-container) ul > li { padding-left: 28px; }
:where(.ta-prose, .is-root-container) ul > li::before {
	content: ""; position: absolute; left: 6px; top: 0.72em;
	width: 8px; height: 8px; border-radius: 999px; background: var(--tac-brand);
}
:where(.ta-prose, .is-root-container) ol { counter-reset: ta-ol; }
:where(.ta-prose, .is-root-container) ol > li { counter-increment: ta-ol; padding-left: 42px; min-height: 30px; }
:where(.ta-prose, .is-root-container) ol > li::before {
	content: counter(ta-ol); position: absolute; left: 0; top: 0.15em;
	width: 28px; height: 28px; border-radius: 999px; background: var(--tac-soft); color: var(--tac-brand);
	font-size: 14px; font-weight: 800; line-height: 28px; text-align: center;
}
:where(.ta-prose, .is-root-container) li > :where(ul, ol) { margin-top: 0.5em; }

/* Checklist style (List block → Styles → Checklist) */
:where(.ta-prose, .is-root-container) ul.is-style-ta-checklist > li { padding-left: 34px; }
:where(.ta-prose, .is-root-container) ul.is-style-ta-checklist > li::before {
	left: 0; top: 0.3em; width: 22px; height: 22px; border-radius: 999px;
	background: var(--tac-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* Steps style (List block, numbered → Styles → Steps) */
:where(.ta-prose, .is-root-container) ol.is-style-ta-steps > li {
	padding: 18px 20px 18px 66px; background: #FFFFFF; border: 1px solid var(--tac-line); border-radius: 16px;
}
:where(.ta-prose, .is-root-container) ol.is-style-ta-steps > li + li { margin-top: 12px; }
:where(.ta-prose, .is-root-container) ol.is-style-ta-steps > li::before {
	left: 18px; top: 18px; width: 34px; height: 34px; line-height: 34px; background: var(--tac-brand); color: #FFFFFF; font-size: 15px;
}

/* ---------- Quotes ---------- */
:where(.ta-prose, .is-root-container) blockquote,
:where(.ta-prose, .is-root-container) .wp-block-quote {
	margin-left: 0; margin-right: 0; padding: 22px 24px 22px 64px; position: relative;
	background: var(--tac-soft); border: 0; border-radius: 18px;
	color: var(--tac-ink); font-size: 19px; line-height: 1.6; font-weight: 500;
}
:where(.ta-prose, .is-root-container) .wp-block-quote::before {
	content: "“"; position: absolute; left: 20px; top: 6px;
	font-size: 64px; line-height: 1; font-weight: 800; color: var(--tac-brand);
}
:where(.ta-prose, .is-root-container) .wp-block-quote p + p { margin-top: 0.6em; }
:where(.ta-prose, .is-root-container) .wp-block-quote cite {
	display: block; margin-top: 10px; font-size: 14px; font-style: normal; font-weight: 600; color: var(--tac-muted);
}
:where(.ta-prose, .is-root-container) .wp-block-pullquote {
	margin-left: 0; margin-right: 0; padding: 32px 8px; border-top: 3px solid var(--tac-brand); border-bottom: 3px solid var(--tac-brand); text-align: center;
}
:where(.ta-prose, .is-root-container) .wp-block-pullquote blockquote { background: none; padding: 0; font-size: 26px; line-height: 1.4; font-weight: 800; }
:where(.ta-prose, .is-root-container) .wp-block-pullquote blockquote::before { content: none; }
:where(.ta-prose, .is-root-container) .wp-block-pullquote cite { font-size: 15px; font-weight: 600; color: var(--tac-muted); }

/* ---------- Tables ---------- */
:where(.ta-prose, .is-root-container) .wp-block-table { margin-left: 0; margin-right: 0; overflow-x: auto; }
:where(.ta-prose, .is-root-container) .wp-block-table table,
:where(.ta-prose) > table {
	width: 100%; border-collapse: separate; border-spacing: 0;
	background: #FFFFFF; border: 1px solid var(--tac-line); border-radius: 16px; overflow: hidden;
	font-size: 16px; line-height: 1.5;
}
:where(.ta-prose, .is-root-container) .wp-block-table :where(th, td),
:where(.ta-prose) > table :where(th, td) { border: 0; border-bottom: 1px solid var(--tac-line); padding: 14px 16px; text-align: left; vertical-align: top; }
:where(.ta-prose, .is-root-container) .wp-block-table thead th,
:where(.ta-prose, .is-root-container) .wp-block-table thead td,
:where(.ta-prose) > table thead th { background: var(--tac-ink); color: #FFFFFF; font-weight: 700; font-size: 14px; letter-spacing: 0.02em; border-bottom: 0; }
:where(.ta-prose, .is-root-container) .wp-block-table tbody tr:nth-child(even) td { background: var(--tac-bg); }
:where(.ta-prose, .is-root-container) .wp-block-table tbody tr:last-child td { border-bottom: 0; }
:where(.ta-prose, .is-root-container) .wp-block-table tfoot td { background: var(--tac-soft); font-weight: 700; color: var(--tac-ink); border-bottom: 0; }
:where(.ta-prose, .is-root-container) .wp-block-table td strong { color: var(--tac-brand); }
:where(.ta-prose, .is-root-container) .wp-block-table figcaption { margin-top: 10px; }
:where(.ta-prose, .is-root-container) .wp-block-table.is-style-stripes { border-bottom: 0; }
:where(.ta-prose, .is-root-container) .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: transparent; }

/* ---------- Images, media, embeds ---------- */
:where(.ta-prose, .is-root-container) .wp-block-image { margin-left: 0; margin-right: 0; }
:where(.ta-prose, .is-root-container) .wp-block-image img,
:where(.ta-prose) > p img { border-radius: 18px; max-width: 100%; height: auto; }
:where(.ta-prose, .is-root-container) .wp-block-image.is-style-rounded img { border-radius: 999px; }
:where(.ta-prose, .is-root-container) :where(figcaption, .wp-element-caption) {
	margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--tac-muted); text-align: center;
}
:where(.ta-prose, .is-root-container) .wp-block-gallery { gap: 12px; }
:where(.ta-prose, .is-root-container) .wp-block-gallery img { border-radius: 14px; }
:where(.ta-prose, .is-root-container) .wp-block-media-text { background: var(--tac-bg); border-radius: 20px; overflow: hidden; }
:where(.ta-prose, .is-root-container) .wp-block-media-text__content { padding: 24px 28px; }
:where(.ta-prose, .is-root-container) .wp-block-cover { border-radius: 20px; overflow: hidden; padding: 40px 28px; }
:where(.ta-prose, .is-root-container) .wp-block-embed { margin-left: 0; margin-right: 0; }
:where(.ta-prose, .is-root-container) .wp-block-embed iframe { border-radius: 18px; max-width: 100%; }
:where(.ta-prose, .is-root-container) .wp-block-video video { border-radius: 18px; width: 100%; }

/* ---------- Buttons ---------- */
:where(.ta-prose, .is-root-container) .wp-block-buttons { gap: 10px; }
:where(.ta-prose, .is-root-container) .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 52px; padding: 0 26px; border-radius: 12px;
	background: var(--tac-brand); color: #FFFFFF; border: 1.5px solid var(--tac-brand);
	font-family: var(--tac-font); font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none;
}
:where(.ta-prose) .wp-block-button__link:hover { background: var(--tac-brand-dark); border-color: var(--tac-brand-dark); color: #FFFFFF; }
:where(.ta-prose, .is-root-container) .wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--tac-brand); }
:where(.ta-prose) .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--tac-soft); color: var(--tac-brand-dark); }

/* ---------- Separator, code, details ---------- */
:where(.ta-prose, .is-root-container) hr,
:where(.ta-prose, .is-root-container) .wp-block-separator {
	border: 0; height: 1px; background: var(--tac-line); margin: 2.2em 0; opacity: 1;
}
:where(.ta-prose, .is-root-container) .wp-block-separator.is-style-dots { background: none; height: auto; text-align: center; color: var(--tac-brand); }
:where(.ta-prose, .is-root-container) .wp-block-separator.is-style-dots::before { color: var(--tac-brand); font-size: 24px; letter-spacing: 1em; }
:where(.ta-prose, .is-root-container) :not(pre) > code { background: var(--tac-soft); color: var(--tac-brand-dark); padding: 2px 6px; border-radius: 6px; font-size: 0.9em; }
:where(.ta-prose, .is-root-container) pre { background: var(--tac-ink); color: #DCE9E6; padding: 18px 20px; border-radius: 14px; overflow-x: auto; font-size: 15px; line-height: 1.6; }

:where(.ta-prose, .is-root-container) .wp-block-details {
	background: #FFFFFF; border: 1px solid var(--tac-line); border-radius: 14px; padding: 0;
}
:where(.ta-prose, .is-root-container) .wp-block-details + .wp-block-details { margin-top: 10px; }
:where(.ta-prose, .is-root-container) .wp-block-details summary {
	list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; position: relative;
	font-size: 17px; font-weight: 700; color: var(--tac-ink); line-height: 1.5;
}
:where(.ta-prose, .is-root-container) .wp-block-details summary::-webkit-details-marker { display: none; }
:where(.ta-prose, .is-root-container) .wp-block-details summary::after {
	content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
	border-right: 2px solid var(--tac-ink); border-bottom: 2px solid var(--tac-ink); transform: rotate(45deg); transition: transform .2s;
}
:where(.ta-prose, .is-root-container) .wp-block-details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
:where(.ta-prose, .is-root-container) .wp-block-details > :not(summary) { padding: 0 20px 18px; margin: 0; font-size: 16px; }

/* ---------- Columns & groups ---------- */
:where(.ta-prose, .is-root-container) .wp-block-columns { gap: 20px; margin-left: 0; margin-right: 0; }
:where(.ta-prose, .is-root-container) .wp-block-group.has-background { padding: 24px 26px; border-radius: 18px; }
:where(.ta-prose, .is-root-container) .wp-block-column.has-background { padding: 22px; border-radius: 16px; }

/* Box styles (Group block → Styles) */
:where(.ta-prose, .is-root-container) .wp-block-group:is(.is-style-ta-info, .is-style-ta-tip, .is-style-ta-warning, .is-style-ta-card, .is-style-ta-dark) {
	padding: 24px 26px; border-radius: 18px;
}
:where(.ta-prose, .is-root-container) .wp-block-group:is(.is-style-ta-info, .is-style-ta-tip, .is-style-ta-warning, .is-style-ta-card, .is-style-ta-dark) > * { margin-top: 0; margin-bottom: 0; }
:where(.ta-prose, .is-root-container) .wp-block-group:is(.is-style-ta-info, .is-style-ta-tip, .is-style-ta-warning, .is-style-ta-card, .is-style-ta-dark) > * + * { margin-top: 0.8em; }
:where(.ta-prose, .is-root-container) .wp-block-group:is(.is-style-ta-info, .is-style-ta-tip, .is-style-ta-warning) { padding-left: 64px; position: relative; }
:where(.ta-prose, .is-root-container) .wp-block-group:is(.is-style-ta-info, .is-style-ta-tip, .is-style-ta-warning)::before {
	content: ""; position: absolute; left: 22px; top: 26px; width: 26px; height: 26px; border-radius: 999px;
	background-position: center; background-repeat: no-repeat; background-size: 15px;
}
:where(.ta-prose, .is-root-container) .wp-block-group.is-style-ta-info { background: var(--tac-soft); color: var(--tac-ink); }
:where(.ta-prose, .is-root-container) .wp-block-group.is-style-ta-info::before {
	background-color: var(--tac-brand);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 11v6M12 7h.01'/%3E%3C/svg%3E");
}
:where(.ta-prose, .is-root-container) .wp-block-group.is-style-ta-tip { background: #FFFFFF; border: 1.5px solid var(--tac-mint); color: var(--tac-ink); }
:where(.ta-prose, .is-root-container) .wp-block-group.is-style-ta-tip::before {
	background-color: var(--tac-mint);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310272B' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.5 10.9c.6.4 1 1.1 1 1.8V16h5v-.3c0-.7.4-1.4 1-1.8A6 6 0 0 0 12 3z'/%3E%3C/svg%3E");
}
:where(.ta-prose, .is-root-container) .wp-block-group.is-style-ta-warning { background: var(--tac-warm); color: #4A2A00; }
:where(.ta-prose, .is-root-container) .wp-block-group.is-style-ta-warning strong { color: var(--tac-warm-ink); }
:where(.ta-prose, .is-root-container) .wp-block-group.is-style-ta-warning::before {
	background-color: var(--tac-warm-ink);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E");
}
:where(.ta-prose, .is-root-container) .wp-block-group.is-style-ta-card { background: #FFFFFF; border: 1px solid var(--tac-line); box-shadow: 0 12px 32px rgba(16, 39, 43, 0.07); }
:where(.ta-prose, .is-root-container) .wp-block-group.is-style-ta-dark { background: var(--tac-ink); color: #DCE9E6; padding: 30px; }
:where(.ta-prose, .is-root-container) .wp-block-group.is-style-ta-dark :where(h2, h3, h4, strong) { color: #FFFFFF; }
:where(.ta-prose, .is-root-container) .wp-block-group.is-style-ta-dark a:not(.wp-block-button__link) { color: var(--tac-mint); }
:where(.ta-prose, .is-root-container) .wp-block-group.is-style-ta-dark .wp-block-button__link { background: var(--tac-mint); border-color: var(--tac-mint); color: var(--tac-ink); }
:where(.ta-prose, .is-root-container) .wp-block-group.is-style-ta-dark .wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; border-color: #FFFFFF; color: #FFFFFF; }
:where(.ta-prose, .is-root-container) .wp-block-group.is-style-ta-dark ul > li::before { background: var(--tac-mint); }

/* ---------- Theme colour & size presets (editor palette) ---------- */
:where(.ta-prose, .is-root-container) .has-ta-brand-color { color: var(--tac-brand) !important; }
:where(.ta-prose, .is-root-container) .has-ta-brand-background-color { background-color: var(--tac-brand) !important; }
:where(.ta-prose, .is-root-container) .has-ta-brand-dark-color { color: var(--tac-brand-dark) !important; }
:where(.ta-prose, .is-root-container) .has-ta-brand-dark-background-color { background-color: var(--tac-brand-dark) !important; }
:where(.ta-prose, .is-root-container) .has-ta-ink-color { color: var(--tac-ink) !important; }
:where(.ta-prose, .is-root-container) .has-ta-ink-background-color { background-color: var(--tac-ink) !important; }
:where(.ta-prose, .is-root-container) .has-ta-mint-color { color: var(--tac-mint) !important; }
:where(.ta-prose, .is-root-container) .has-ta-mint-background-color { background-color: var(--tac-mint) !important; }
:where(.ta-prose, .is-root-container) .has-ta-soft-color { color: var(--tac-soft) !important; }
:where(.ta-prose, .is-root-container) .has-ta-soft-background-color { background-color: var(--tac-soft) !important; }
:where(.ta-prose, .is-root-container) .has-ta-warm-color { color: var(--tac-warm) !important; }
:where(.ta-prose, .is-root-container) .has-ta-warm-background-color { background-color: var(--tac-warm) !important; }
:where(.ta-prose, .is-root-container) .has-ta-warm-ink-color { color: var(--tac-warm-ink) !important; }
:where(.ta-prose, .is-root-container) .has-ta-warm-ink-background-color { background-color: var(--tac-warm-ink) !important; }
:where(.ta-prose, .is-root-container) .has-ta-light-color { color: var(--tac-bg) !important; }
:where(.ta-prose, .is-root-container) .has-ta-light-background-color { background-color: var(--tac-bg) !important; }
:where(.ta-prose, .is-root-container) .has-ta-white-color { color: #FFFFFF !important; }
:where(.ta-prose, .is-root-container) .has-ta-white-background-color { background-color: #FFFFFF !important; }
:where(.ta-prose, .is-root-container) .has-ta-small-font-size { font-size: 15px !important; }
:where(.ta-prose, .is-root-container) .has-ta-normal-font-size { font-size: 18px !important; }
:where(.ta-prose, .is-root-container) .has-ta-medium-font-size { font-size: 21px !important; }
:where(.ta-prose, .is-root-container) .has-ta-large-font-size { font-size: 26px !important; line-height: 1.35; }
:where(.ta-prose, .is-root-container) .has-ta-huge-font-size { font-size: 34px !important; line-height: 1.2; }

/* ---------- Embedded test cards ([testaura_tests]) ---------- */
:where(.ta-prose) .ta-embed-tests { margin-top: 1.4em; }
:where(.ta-prose) .ta-embed-tests .ta-testcard { font-size: 16px; line-height: 1.55; }
:where(.ta-prose) .ta-embed-tests a { text-decoration: none; }
:where(.ta-prose) .ta-embed-tests .ta-testcard__title a { color: var(--tac-ink); }
:where(.ta-prose) .ta-embed-tests .ta-btn { color: var(--tac-brand); }
:where(.ta-prose) .ta-embed-tests .ta-btn:hover { color: #FFFFFF; }

@media (max-width: 600px) {
	:where(.ta-prose, .is-root-container) { font-size: 17px; }
	:where(.ta-prose, .is-root-container) .wp-block-group:is(.is-style-ta-info, .is-style-ta-tip, .is-style-ta-warning) { padding: 22px 20px 22px 56px; }
	:where(.ta-prose, .is-root-container) .wp-block-group:is(.is-style-ta-info, .is-style-ta-tip, .is-style-ta-warning)::before { left: 18px; }
	:where(.ta-prose, .is-root-container) ol.is-style-ta-steps > li { padding-left: 60px; }
}
