/* UnifiedIQ article kit (1.46.0). Styles portal-published articles on any theme.
 * Every rule is wrapped in :where() (specificity 0): the site's theme always wins.
 * Tokens: --uiq-accent, --uiq-accent-2, --uiq-surface, --uiq-line, --uiq-measure. Fonts + text color inherit. */
:where(.uiq-article) {
	--uiq-accent: #1f3b73;
	--uiq-accent-2: var(--uiq-accent);
	--uiq-surface: #f4f6f9;
	--uiq-line: rgba(0, 0, 0, .12);
	--uiq-measure: none;
	display: block;
	max-width: var(--uiq-measure);
	margin-inline: auto;
	overflow-wrap: break-word;
}
:where(.uiq-article) :where(img, video, svg) { max-width: 100%; height: auto; }
:where(.uiq-article) :where(h2, h3) { scroll-margin-top: 110px; }
:where(.uiq-article) :where(h2) { margin: 1.8em 0 .55em; line-height: 1.2; }
:where(.uiq-article) :where(h3) { margin: 1.4em 0 .45em; line-height: 1.25; }
:where(.uiq-article) :where(p) { margin: 0 0 1.05em; }
:where(.uiq-article) :where(ul) { list-style: disc; margin: 0 0 1.2em; padding-left: 1.4em; }
:where(.uiq-article) :where(ol) { list-style: decimal; margin: 0 0 1.2em; padding-left: 1.5em; }
:where(.uiq-article) :where(li) { margin: 0 0 .45em; }
:where(.uiq-article) :where(li)::marker { color: var(--uiq-accent); }
:where(.uiq-article) :where(a) { color: var(--uiq-accent-2); text-decoration: underline; text-underline-offset: 3px; }

/* Byline ("Reviewed by … · Updated …"): the engine's small div holding a <time> */
:where(.uiq-article) :where(div:has(> time[datetime]):not(:has(div, p, h2))) { font-size: max(15px, .9em); opacity: .85; padding-bottom: .8em; margin-bottom: 1em; border-bottom: 1px solid var(--uiq-line); }

/* Answer-first box */
:where(.uiq-article) :where(#quick-answer) { margin-top: .6em; }
:where(.uiq-article) :where(#quick-answer + p) { background: var(--uiq-surface); border-left: 5px solid var(--uiq-accent); padding: 1em 1.2em; font-size: 1.08em; }

/* Table of contents: a box with a numbered list (never a horizontal bar) */
:where(.uiq-article) :where(nav[aria-label="Table of contents"]) { display: block; background: var(--uiq-surface); border-top: 4px solid var(--uiq-accent); padding: 1em 1.3em; margin: 1.6em 0; position: static; overflow: visible; }
:where(.uiq-article) :where(nav[aria-label="Table of contents"]) :where(strong) { display: block; margin-bottom: .5em; font-size: max(15px, .85em); letter-spacing: .06em; text-transform: uppercase; color: var(--uiq-accent); }
:where(.uiq-article) :where(nav[aria-label="Table of contents"]) :where(ol) { display: block; margin: 0; padding-left: 1.4em; }
:where(.uiq-article) :where(nav[aria-label="Table of contents"]) :where(li) { display: list-item; margin: 0 0 .35em; }
:where(.uiq-article) :where(nav[aria-label="Table of contents"]) :where(a) { display: inline; padding: 0; border: 0; white-space: normal; background: none; }

/* Callouts: Pro tip / Watch out */
:where(.uiq-article) :where(aside) { display: block; margin: 1.5em 0; padding: 1em 1.2em; background: var(--uiq-surface); border-left: 5px solid var(--uiq-accent); }
:where(.uiq-article) :where(aside[aria-label="Watch out"]) { border-left-color: #c2410c; background: #fff5ef; }
:where(.uiq-article) :where(aside) :where(p:last-child) { margin-bottom: 0; }

/* Reviewer / author box */
:where(.uiq-article) :where(aside[aria-label="About the reviewer"]) { display: grid; grid-template-columns: auto 1fr; gap: 0 18px; align-items: center; background: none; border-left: 0; border-top: 2px solid var(--uiq-line); padding: 1.2em 0 0; }
:where(.uiq-article) :where(aside[aria-label="About the reviewer"]) :where(img) { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; grid-row: span 2; }
:where(.uiq-article) :where(aside[aria-label="About the reviewer"]) :where(p) { margin: 0 0 .3em; }

/* Figures */
:where(.uiq-article) :where(figure) { margin: 1.8em 0; }
:where(.uiq-article) :where(figure img) { display: block; width: 100%; height: auto; }
:where(.uiq-article) :where(figcaption) { margin-top: .5em; font-size: max(15px, .9em); opacity: .8; padding-left: .8em; border-left: 3px solid var(--uiq-accent); }

/* Tables: scroll sideways on phones instead of breaking the page */
:where(.uiq-article) :where(table) { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.6em 0; font-size: max(15px, .92em); line-height: 1.45; }
:where(.uiq-article) :where(caption) { caption-side: top; text-align: left; font-weight: 700; padding-bottom: .6em; }
:where(.uiq-article) :where(th, td) { padding: .7em .85em; text-align: left; vertical-align: top; border-bottom: 1px solid var(--uiq-line); }
:where(.uiq-article) :where(thead th) { background: var(--uiq-accent); color: #fff; }
:where(.uiq-article) :where(tbody tr:nth-child(even)) { background: var(--uiq-surface); }

/* FAQ (details/summary) */
:where(.uiq-article) :where(details) { border-top: 1px solid var(--uiq-line); padding: .9em 0; }
:where(.uiq-article) :where(details:last-of-type) { border-bottom: 1px solid var(--uiq-line); }
:where(.uiq-article) :where(summary) { cursor: pointer; font-weight: 700; }
:where(.uiq-article) :where(details[open] summary) { margin-bottom: .5em; }

/* Quotes + video */
:where(.uiq-article) :where(blockquote) { margin: 1.6em 0; padding-left: 1.1em; border-left: 4px solid var(--uiq-accent); font-style: italic; }
:where(.uiq-article) :where(iframe) { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; margin: 1.6em 0; }

/* List markers: one notch more specific than :where() so a theme's global ul/ol reset can't strip them
   (fleet scan 2026-11-19: Golden Process, 360 Narrative, Serpe). Only list-style + padding. */
.uiq-article :is(ul) { list-style: disc outside; padding-left: 1.3em; }
.uiq-article :is(ol) { list-style: decimal outside; padding-left: 1.4em; }
.uiq-article :is(nav) :is(ol) { list-style: decimal outside; }

/* Bare mode (1.48.0): the theme printed no title at all (body-only themes print just the_content), so nothing
   frames the article. The plugin adds the H1 and this class: a centered reading column on a plain card that
   stays readable on dark sites (Aces 2026-11-19: dark text on a dark page, full-bleed). One class of
   specificity so a theme's global `h2 { color:#fff }` can't make text vanish on the card. */
.uiq-article--bare {
	box-sizing: border-box;
	width: calc(100% - 32px);
	max-width: var(--uiq-bare-measure, 860px);
	margin: clamp(28px, 5vw, 56px) auto clamp(40px, 7vw, 80px);
	padding: clamp(24px, 4vw, 52px) clamp(18px, 4vw, 56px);
	background: var(--uiq-paper, #fff);
	color: var(--uiq-ink, #1d2127);
	border-radius: 6px;
	font-size: 18px;
	line-height: 1.65;
	text-align: left;
}
.uiq-article--bare :is(h1, h2, h3, h4, h5, h6, p, li, summary, figcaption, td, caption, blockquote, details) { color: inherit; text-align: left; }
.uiq-article--bare :is(h2, h3, h4) { text-transform: none; letter-spacing: normal; }
.uiq-article--bare > .uiq-article__title { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.12; margin: 0 0 .55em; }
.uiq-article--bare :is(h2) { font-size: clamp(24px, 3vw, 32px); }
.uiq-article--bare :is(h3) { font-size: clamp(20px, 2.4vw, 24px); }
@media (max-width: 600px) { .uiq-article--bare { width: 100%; border-radius: 0; margin-top: 0; } }
