/*
Theme Name: 6thSolution
Theme URI: https://6thsolution.com/
Author: 6thSolution
Author URI: https://6thsolution.com/
Description: Magazine theme for 6thSolution, AI tools and software for dental practices. Turns plain article HTML into verdict boxes, FDA status badges, feature checklists, comparison tables, evidence panels, source lists, pick cards and FAQ cards, with a table of contents and a not-clinical-advice notice on every article.
Version: 1.0.1
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sixthsolution
*/

:root {
	--sx-canvas: var(--wp--preset--color--canvas, #F5F8FA);
	--sx-surface: var(--wp--preset--color--surface, #FFFFFF);
	--sx-line: var(--wp--preset--color--line, #E2E8EE);
	--sx-muted: var(--wp--preset--color--muted, #5B6672);
	--sx-ink-soft: var(--wp--preset--color--ink-soft, #2C3640);
	--sx-ink: var(--wp--preset--color--ink, #0F1B26);
	--sx-brand: var(--wp--preset--color--brand, #0A5FA6);
	--sx-brand-dark: var(--wp--preset--color--brand-dark, #084C86);
	--sx-brand-tint: var(--wp--preset--color--brand-tint, #E7F1FA);
	--sx-teal: var(--wp--preset--color--teal, #0E9E9A);
	--sx-teal-tint: var(--wp--preset--color--teal-tint, #E3F5F4);
	--sx-green: var(--wp--preset--color--green, #1B7F4E);
	--sx-green-tint: var(--wp--preset--color--green-tint, #E5F4EC);
	--sx-red: var(--wp--preset--color--red, #B9383A);
	--sx-red-tint: var(--wp--preset--color--red-tint, #FBEBEB);
	--sx-amber: var(--wp--preset--color--amber, #9A5B00);
	--sx-amber-tint: var(--wp--preset--color--amber-tint, #FDF3E1);
	--sx-gradient: linear-gradient(135deg, #12B3A8 0%, #0A7FBF 55%, #0A5FA6 100%);
	--sx-radius: 16px;
	--sx-radius-sm: 10px;
	--sx-shadow: 0 1px 2px rgba(15, 27, 38, .05), 0 4px 16px rgba(15, 27, 38, .05);
	--sx-shadow-hover: 0 2px 4px rgba(15, 27, 38, .07), 0 12px 28px rgba(15, 27, 38, .09);
	--sx-header-h: 72px;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; }
}
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "cv11", "ss01"; }
::selection { background: var(--sx-brand-tint); color: var(--sx-ink); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, .sx-table-wrap:focus-visible {
	outline: 2px solid var(--sx-brand);
	outline-offset: 2px;
	border-radius: 4px;
}
[id] { scroll-margin-top: calc(var(--sx-header-h) + 16px); }
.wp-site-blocks { padding-top: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.sx-icon { flex: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ---------- Header ---------- */
.sx-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .94);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--sx-line);
}
.admin-bar .sx-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .sx-header { top: 0; position: relative; } }
.sx-header__bar { min-height: var(--sx-header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sx-header__bar > p { display: contents; }
.sx-logo { display: inline-flex; align-items: center; line-height: 0; flex: none; }
.sx-logo img { height: 46px; width: auto; }
@media (max-width: 600px) { .sx-logo img { height: 38px; } }

.sx-menu ul { list-style: none; margin: 0; padding: 0; }
.sx-menu--desk { display: none; align-items: center; gap: .75rem; }
.sx-menu__list { display: flex; align-items: center; gap: .15rem; }
.sx-menu__link {
	display: inline-flex; align-items: center; gap: .3rem;
	padding: .45rem .8rem; border-radius: 999px;
	color: var(--sx-ink-soft); font-size: var(--wp--preset--font-size--small); font-weight: 600;
	cursor: pointer; transition: background .15s, color .15s;
}
.sx-menu__link:hover, .sx-menu__sections[open] > summary { background: var(--sx-brand-tint); color: var(--sx-brand); text-decoration: none; }
.sx-menu summary { list-style: none; }
.sx-menu summary::-webkit-details-marker { display: none; }
.sx-menu__sections { position: relative; }
.sx-menu__sections[open] summary .sx-icon { transform: rotate(180deg); }
.sx-menu__sections .sx-menu__drop {
	position: absolute; left: 0; top: calc(100% + .5rem);
	width: min(420px, 90vw);
	background: var(--sx-surface); border: 1px solid var(--sx-line); border-radius: var(--sx-radius);
	box-shadow: var(--sx-shadow-hover); padding: .4rem;
}
.sx-menu__drop a { display: flex; gap: .75rem; align-items: flex-start; padding: .6rem .7rem; border-radius: 10px; color: var(--sx-ink-soft); }
.sx-menu__drop a:hover { background: var(--sx-canvas); text-decoration: none; }
.sx-menu__drop .sx-icon { color: var(--sx-brand); margin-top: .1rem; }
.sx-menu__drop strong { display: block; color: var(--sx-ink); font-size: .9rem; line-height: 1.3; }
.sx-menu__drop small { display: block; color: var(--sx-muted); font-size: .78rem; line-height: 1.4; margin-top: .1rem; }

.sx-search { display: flex; align-items: center; border: 1px solid var(--sx-line); border-radius: 999px; background: var(--sx-surface); padding: .15rem .2rem .15rem .85rem; }
.sx-search input { border: 0; outline: 0; background: transparent; font: inherit; font-size: var(--wp--preset--font-size--small); width: 12.5rem; color: var(--sx-ink); padding: .3rem 0; }
.sx-search button { border: 0; background: transparent; color: var(--sx-ink-soft); border-radius: 999px; width: 2rem; height: 2rem; display: grid; place-items: center; cursor: pointer; }
.sx-search button:hover { background: var(--sx-brand-tint); color: var(--sx-brand); }
.sx-search:focus-within { border-color: var(--sx-brand); box-shadow: 0 0 0 3px var(--sx-brand-tint); }

.sx-menu--mob > summary { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--sx-ink); cursor: pointer; }
.sx-menu--mob[open] > summary { background: var(--sx-brand-tint); color: var(--sx-brand); }
.sx-menu__panel {
	position: absolute; left: 0; right: 0; top: 100%;
	background: var(--sx-surface); border-bottom: 1px solid var(--sx-line); box-shadow: var(--sx-shadow-hover);
	padding: 1rem; max-height: calc(100vh - var(--sx-header-h)); overflow: auto;
}
.sx-menu__panel .sx-search input { width: 100%; }
.sx-menu__panel .sx-search { margin-bottom: 1rem; }
.sx-menu__heading { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sx-muted); margin: 0 0 .25rem .7rem; }
.sx-menu__list--mob { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; margin-top: .75rem !important; padding-top: .75rem !important; border-top: 1px solid var(--sx-line) !important; }
.sx-menu__list--mob .sx-menu__link { width: 100%; }
@media (min-width: 1024px) {
	.sx-menu--desk { display: flex; }
	.sx-menu--mob { display: none; }
}

/* ---------- Layout ---------- */
.sx-main { padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--60); }
.sx-eyebrow { font-size: var(--wp--preset--font-size--x-small); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sx-brand); margin: 0; }
.sx-section-title { font-size: var(--wp--preset--font-size--large) !important; margin: 0 0 1.1rem !important; }
.sx-section-title a { color: inherit; }
.sx-empty { color: var(--sx-muted); padding: 2rem 0; }

/* ---------- Home ---------- */
.sx-hero {
	position: relative; overflow: hidden;
	background: var(--sx-surface); border: 1px solid var(--sx-line); border-radius: calc(var(--sx-radius) + 8px);
	padding: clamp(1.75rem, 5vw, 4rem) clamp(1.25rem, 5vw, 4rem);
	box-shadow: var(--sx-shadow);
}
.sx-hero::before {
	content: ""; position: absolute; right: -120px; top: -140px; width: 420px; height: 420px; border-radius: 50%;
	background: var(--sx-gradient); opacity: .10; pointer-events: none;
}
.sx-hero > * { position: relative; max-width: 760px; }
.sx-hero > * + * { margin-top: 1rem !important; }
.sx-hero__title { font-size: clamp(2rem, 4.6vw, 3.25rem) !important; letter-spacing: -.03em; line-height: 1.08 !important; }
.sx-hero__lede { font-size: 1.15rem; color: var(--sx-muted); line-height: 1.6; }
.sx-proof { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; padding: 0; margin: 1.5rem 0 0 !important; font-size: var(--wp--preset--font-size--small); font-weight: 600; color: var(--sx-ink); }
.sx-proof li { display: inline-flex; align-items: center; gap: .45rem; }
.sx-proof li::before { content: ""; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--sx-green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B7F4E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat; }

.sx-sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: .9rem; margin-top: var(--wp--preset--spacing--50) !important; }
.sx-section {
	display: flex; gap: .85rem; align-items: flex-start;
	background: var(--sx-surface); border: 1px solid var(--sx-line); border-radius: var(--sx-radius);
	padding: 1rem 1.1rem; color: var(--sx-ink-soft);
	transition: transform .15s, box-shadow .15s, border-color .15s;
}
.sx-section:hover { transform: translateY(-2px); box-shadow: var(--sx-shadow-hover); border-color: #CBD8E3; text-decoration: none; }
.sx-section__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--sx-brand-tint); color: var(--sx-brand); flex: none; }
.sx-section:nth-child(even) .sx-section__icon { background: var(--sx-teal-tint); color: #0B7C79; }
.sx-section__text strong { display: block; color: var(--sx-ink); font-size: 1rem; line-height: 1.3; }
.sx-section__text span { display: block; font-size: .84rem; line-height: 1.45; color: var(--sx-muted); margin-top: .2rem; }

.sx-home-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; margin-top: var(--wp--preset--spacing--60) !important; }
@media (min-width: 1024px) { .sx-home-cols { grid-template-columns: minmax(0, 1fr) 330px; } }
.sx-home-news { background: var(--sx-surface); border: 1px solid var(--sx-line); border-radius: var(--sx-radius); padding: 1.25rem 1.25rem .5rem; align-self: start; }
@media (min-width: 1024px) { .sx-home-news { position: sticky; top: calc(var(--sx-header-h) + 24px); } }
.sx-home-news .sx-section-title { font-size: 1.1rem !important; display: flex; align-items: center; gap: .5rem; }
.sx-home-news .sx-section-title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sx-teal); box-shadow: 0 0 0 4px var(--sx-teal-tint); }
.sx-home-main .sx-grid { grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr)); }

.sx-newslist { list-style: none; margin: 0; padding: 0; }
.sx-newsrow { display: grid; grid-template-columns: 3.4rem 1fr; gap: .5rem; padding: .75rem 0; border-top: 1px solid var(--sx-line); font-size: .92rem; line-height: 1.4; }
.sx-newsrow:first-child { border-top: 0; padding-top: 0; }
.sx-newsrow time { color: var(--sx-muted); font-size: .78rem; font-weight: 600; padding-top: .1rem; font-variant-numeric: tabular-nums; }
.sx-newsrow a { color: var(--sx-ink); font-weight: 600; }
.sx-newsrow a:hover { color: var(--sx-brand); }

/* ---------- Cards ---------- */
.sx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.sx-grid > li { margin: 0 !important; max-width: none !important; }
.sx-card {
	height: 100%; display: flex; flex-direction: column;
	background: var(--sx-surface); border: 1px solid var(--sx-line); border-radius: var(--sx-radius);
	overflow: hidden; box-shadow: var(--sx-shadow);
	transition: transform .18s ease, box-shadow .18s ease;
}
.sx-card:hover { transform: translateY(-2px); box-shadow: var(--sx-shadow-hover); }
.sx-card__media { display: block; aspect-ratio: 40 / 21; background: var(--sx-canvas); overflow: hidden; }
.sx-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sx-card__media--placeholder { background: var(--sx-gradient); color: #fff; }
.sx-ph { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; text-align: center; padding: 1rem; }
.sx-ph .sx-icon { opacity: .9; }
.sx-ph__label { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .95; }
.sx-card__body { padding: 1.05rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.sx-card__body > * { margin: 0 !important; }
.sx-card__title { font-size: 1.1rem !important; line-height: 1.32; }
.sx-card__title a { color: var(--sx-ink); }
.sx-card__title a:hover { color: var(--sx-brand); text-decoration: none; }
.sx-card__excerpt { color: var(--sx-muted); font-size: var(--wp--preset--font-size--small); line-height: 1.55; }
.sx-card__date { margin-top: auto !important; color: var(--sx-muted); font-size: var(--wp--preset--font-size--x-small); }

/* Chips */
.sx-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.sx-chip {
	display: inline-flex; align-items: center;
	font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1.2;
	padding: .26rem .6rem; border-radius: 999px;
	background: var(--sx-canvas); color: var(--sx-ink-soft); border: 1px solid var(--sx-line);
}
a.sx-chip:hover { text-decoration: none; border-color: var(--sx-brand); color: var(--sx-brand); }
.sx-chip--type { background: var(--sx-brand-tint); color: var(--sx-brand); border-color: transparent; }
.sx-chip--news { background: var(--sx-teal-tint); color: #0B6F6C; }
.sx-chip--research { background: #F0ECFA; color: #5B3FA8; }
.sx-chip--guide { background: var(--sx-amber-tint); color: var(--sx-amber); }

/* Pagination */
.sx-pagination { margin-top: var(--wp--preset--spacing--50) !important; gap: .35rem; font-weight: 600; font-size: var(--wp--preset--font-size--small); }
.sx-pagination a, .sx-pagination .current { padding: .45rem .85rem; border-radius: 999px; border: 1px solid var(--sx-line); background: var(--sx-surface); color: var(--sx-ink-soft); }
.sx-pagination .current { background: var(--sx-ink); border-color: var(--sx-ink); color: #fff; }
.sx-pagination a:hover { text-decoration: none; border-color: var(--sx-brand); color: var(--sx-brand); }

/* Archive / search heads */
.sx-archive-head { margin-bottom: var(--wp--preset--spacing--50) !important; }
.sx-archive-head > * + * { margin-top: .6rem; }
.sx-archive-intro { color: var(--sx-muted); max-width: 680px; font-size: 1.05rem; }
.sx-archive-intro p { margin: 0; }
.sx-search-big .wp-block-search__inside-wrapper { border: 1px solid var(--sx-line); border-radius: 999px; padding: .3rem; background: var(--sx-surface); box-shadow: var(--sx-shadow); }
.sx-search-big .wp-block-search__input { border: 0; padding: .5rem 1rem; background: transparent; }
.sx-search-big .wp-block-search__button { margin-left: .3rem; }
.sx-404 { padding: var(--wp--preset--spacing--50) 0; }
.sx-404 + .sx-sections { margin-top: 0 !important; }

/* Breadcrumbs */
.sx-crumbs { font-size: var(--wp--preset--font-size--x-small); color: var(--sx-muted); display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.sx-crumbs a { color: var(--sx-muted); font-weight: 600; }
.sx-crumbs a:hover { color: var(--sx-brand); }
.sx-crumbs [aria-current] { color: var(--sx-ink); font-weight: 600; }
.sx-crumbs__sep { opacity: .5; }

/* ---------- Single article ---------- */
.sx-article-head {
	display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; align-items: center;
	background: var(--sx-surface); border: 1px solid var(--sx-line); border-radius: calc(var(--sx-radius) + 6px);
	box-shadow: var(--sx-shadow); padding: clamp(1.25rem, 3vw, 2.5rem);
	position: relative; overflow: hidden;
}
.sx-article-head::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--sx-gradient); }
@media (min-width: 900px) {
	.sx-article-head:has(.sx-article-img) { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); }
}
.sx-article-head > * { margin: 0 !important; }
.sx-article-head__text > * { margin-top: 0 !important; margin-bottom: 0 !important; }
.sx-article-head__text > * + * { margin-top: .9rem !important; }
.sx-article-title { font-size: clamp(1.85rem, 3.4vw, 2.7rem) !important; letter-spacing: -.03em; line-height: 1.12 !important; }
.sx-article-dek, .sx-article-dek p { font-size: 1.12rem; color: var(--sx-muted); line-height: 1.55; margin: 0; }
.sx-article-img img { display: block; width: 100%; border-radius: var(--sx-radius); }
@media (max-width: 899px) { .sx-article-img { order: -1; } }

.sx-meta { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; font-size: var(--wp--preset--font-size--x-small); color: var(--sx-muted); margin: 0; }
.sx-meta__by { color: var(--sx-ink); font-weight: 600; }
.sx-meta__by a { color: inherit; }
.sx-meta__time { display: inline-flex; align-items: center; gap: .3rem; }

.sx-article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; margin-top: var(--wp--preset--spacing--50) !important; }
@media (min-width: 1024px) {
	.sx-article-layout { grid-template-columns: minmax(0, 760px) 260px; justify-content: space-between; gap: 3rem; }
	.sx-aside { order: 2; }
	.sx-aside .sx-toc { position: sticky; top: calc(var(--sx-header-h) + 24px); }
	.admin-bar .sx-aside .sx-toc { top: calc(var(--sx-header-h) + 56px); }
}
@media (max-width: 1023px) { .sx-aside { order: -1; } }
.sx-aside:empty { display: none; }

/* Table of contents */
.sx-toc {
	background: var(--sx-surface); border: 1px solid var(--sx-line); border-radius: var(--sx-radius);
	padding: 1rem 1.1rem; font-size: var(--wp--preset--font-size--small);
	max-height: calc(100vh - var(--sx-header-h) - 48px); overflow: auto;
}
.sx-toc summary { font-weight: 700; color: var(--sx-ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.sx-toc summary::-webkit-details-marker { display: none; }
.sx-toc summary::after { content: "–"; color: var(--sx-muted); }
.sx-toc details:not([open]) summary::after { content: "+"; }
.sx-toc ol { list-style: none; margin: .75rem 0 0; padding: 0; counter-reset: toc; }
.sx-toc li { counter-increment: toc; }
.sx-toc a { display: flex; gap: .55rem; padding: .35rem .5rem; border-radius: 8px; color: var(--sx-ink-soft); line-height: 1.35; }
.sx-toc a::before { content: counter(toc); font-variant-numeric: tabular-nums; color: var(--sx-muted); font-size: .8em; padding-top: .1em; min-width: 1.1em; }
.sx-toc a:hover, .sx-toc a.is-active { background: var(--sx-brand-tint); color: var(--sx-brand); text-decoration: none; }

/* Prose */
.sx-prose { font-size: 1.0625rem; }
.sx-prose > * { margin-top: 0; margin-bottom: 0; }
.sx-prose > * + * { margin-top: 1.1rem; }
.sx-prose h2 { margin-top: 2.75rem !important; font-size: 1.6rem; }
.sx-prose h3 { margin-top: 2rem !important; font-size: 1.2rem; }
.sx-prose h2 + *, .sx-prose h3 + * { margin-top: .75rem; }
.sx-prose ul, .sx-prose ol { padding-left: 1.3rem; }
.sx-prose li + li { margin-top: .45rem; }
.sx-prose li::marker { color: var(--sx-brand); }
.sx-prose strong { color: var(--sx-ink); }
.sx-prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.sx-prose img { border-radius: var(--sx-radius-sm); }
.sx-prose blockquote { margin-left: 0; padding: .25rem 0 .25rem 1.25rem; border-left: 3px solid var(--sx-teal); color: var(--sx-ink); }
.sx-prose > p:first-child { font-size: 1.12rem; color: var(--sx-ink); }

/* Tables */
.sx-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--sx-surface); border: 1px solid var(--sx-line); border-radius: var(--sx-radius-sm); }
.sx-prose table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; margin: 0; }
.sx-prose th, .sx-prose td { padding: .7rem .9rem; border-bottom: 1px solid var(--sx-line); text-align: left; vertical-align: top; }
.sx-prose tr:last-child > * { border-bottom: 0; }
.sx-prose tr:first-child > th { background: #F6F9FB; color: var(--sx-ink); font-weight: 700; font-size: .82rem; letter-spacing: .02em; }
.sx-prose td { min-width: 7rem; }

/* "At a glance" spec card */
.sx-prose table.sx-glance th { background: transparent !important; width: 34%; font-size: .875rem !important; color: var(--sx-muted) !important; font-weight: 600 !important; letter-spacing: 0 !important; }
.sx-prose table.sx-glance td { color: var(--sx-ink); font-weight: 500; }
.sx-prose table.sx-glance tr:nth-child(even) > * { background: #FAFBFD; }
@media (max-width: 560px) {
	.sx-prose table.sx-glance, .sx-prose table.sx-glance tbody, .sx-prose table.sx-glance tr, .sx-prose table.sx-glance th, .sx-prose table.sx-glance td { display: block; width: auto; }
	.sx-prose table.sx-glance th { padding-bottom: 0; border-bottom: 0; }
	.sx-prose table.sx-glance td { padding-top: .2rem; min-width: 0; }
	.sx-prose table.sx-glance tr:nth-child(even) > * { background: transparent; }
	.sx-prose table.sx-glance tr:nth-child(even) { background: #FAFBFD; }
}

/* FDA badge */
.sx-fda { display: inline-flex; align-items: flex-start; gap: .45rem; padding: .3rem .7rem .3rem .55rem; border-radius: 10px; font-weight: 600; line-height: 1.45; }
.sx-fda::before { content: ""; flex: none; width: 1rem; height: 1rem; margin-top: .15rem; background: currentColor; -webkit-mask: var(--sx-fda-icon) center / contain no-repeat; mask: var(--sx-fda-icon) center / contain no-repeat; }
.sx-fda--cleared { background: var(--sx-green-tint); color: var(--sx-green); --sx-fda-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 5 6v5c0 4.5 3 8.2 7 10 4-1.8 7-5.5 7-10V6z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.sx-fda--none { background: var(--sx-amber-tint); color: var(--sx-amber); --sx-fda-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v5M12 16h.01'/%3E%3C/svg%3E"); }
.sx-fda--neutral { background: var(--sx-canvas); color: var(--sx-ink-soft); --sx-fda-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E"); }

/* Checklist status pills */
.sx-status { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.sx-status::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.sx-status--yes { background: var(--sx-green-tint); color: var(--sx-green); }
.sx-status--no { background: #EEF1F4; color: var(--sx-muted); }
.sx-status--partial { background: var(--sx-amber-tint); color: var(--sx-amber); }
.sx-status--other { background: var(--sx-brand-tint); color: var(--sx-brand); }
.sx-checklist td:first-child { font-weight: 600; color: var(--sx-ink); }

/* Comparison table */
.sx-prose table.sx-compare th:first-child, .sx-prose table.sx-compare td:first-child { position: sticky; left: 0; background: var(--sx-surface); font-weight: 600; color: var(--sx-ink); box-shadow: 1px 0 0 var(--sx-line); }
.sx-prose table.sx-compare tr:first-child > th { background: var(--sx-ink); color: #fff; font-size: .9rem; }
.sx-prose table.sx-compare tr:first-child > th:first-child { background: var(--sx-ink); }
.sx-prose table.sx-compare tr:nth-child(odd):not(:first-child) > td { background: #FAFBFD; }
.sx-prose table.sx-compare tr:nth-child(odd):not(:first-child) > td:first-child { background: #FAFBFD; }

/* Boxes */
.sx-box { border-radius: var(--sx-radius); padding: 1.4rem 1.5rem 1.5rem; margin-top: 2.5rem !important; }
.sx-box > h2 { margin-top: 0 !important; font-size: 1.2rem !important; display: flex; align-items: center; gap: .55rem; }
.sx-box > * { margin: 0; }
.sx-box > * + * { margin-top: .75rem; }
.sx-box--verdict { background: var(--sx-surface); border: 1px solid #CFE0EF; box-shadow: var(--sx-shadow); position: relative; overflow: hidden; }
.sx-box--verdict::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--sx-gradient); }
.sx-box--verdict > h2::before { content: ""; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--sx-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='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 62% no-repeat; }
.sx-prose > .sx-box--verdict:first-child, .sx-prose > p:first-child + .sx-box--verdict { margin-top: 1.5rem !important; }
.sx-box--summary { background: var(--sx-teal-tint); border: 1px solid #C5E8E6; }
.sx-box--summary > h2 { color: #0B5E5B; }
.sx-box--method { background: var(--sx-canvas); border: 1px dashed #C9D3DD; font-size: .97rem; }
.sx-box--method > h2 { font-size: 1.05rem !important; color: var(--sx-ink-soft); }

.sx-panel { margin-top: 2.75rem !important; padding: 0 0 0 1.25rem; border-left: 3px solid var(--sx-line); }
.sx-panel > * { margin: 0; }
.sx-panel > * + * { margin-top: 1rem; }
.sx-panel > h2 { margin-top: 0 !important; display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
.sx-panel--evidence { border-left-color: #8E78D6; }
.sx-panel--evidence > h2::before { content: "Evidence"; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; background: #F0ECFA; color: #5B3FA8; padding: .25rem .5rem; border-radius: 6px; }
.sx-panel--regulatory { border-left-color: var(--sx-green); }
.sx-panel--regulatory > h2::before { content: "Regulatory"; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; background: var(--sx-green-tint); color: var(--sx-green); padding: .25rem .5rem; border-radius: 6px; }

/* Sources */
.sx-sources { margin-top: 2.75rem !important; padding-top: 1.5rem; border-top: 1px solid var(--sx-line); }
.sx-sources > h2 { margin-top: 0 !important; font-size: 1.15rem !important; }
.sx-sources > * { margin: 0; }
.sx-sources > * + * { margin-top: .75rem; }
.sx-sources__list { list-style: none; padding: 0 !important; counter-reset: src; font-size: .9rem; line-height: 1.5; }
.sx-sources__list li { counter-increment: src; position: relative; padding: .5rem 0 .5rem 1.9rem; border-top: 1px solid var(--sx-line); margin: 0 !important; color: var(--sx-muted); word-break: break-word; }
.sx-sources__list li:first-child { border-top: 0; }
.sx-sources__list li::before { content: counter(src); position: absolute; left: 0; top: .5rem; font-weight: 700; color: var(--sx-brand); font-variant-numeric: tabular-nums; }
.sx-sources__list a { color: var(--sx-ink); font-weight: 600; text-decoration: none; }
.sx-sources__list a:hover { color: var(--sx-brand); text-decoration: underline; }

/* News source card */
.sx-source { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; background: var(--sx-surface); border: 1px solid var(--sx-line); border-left: 4px solid var(--sx-teal); border-radius: var(--sx-radius-sm); padding: .8rem 1rem; font-size: .95rem; box-shadow: var(--sx-shadow); }
.sx-source__label { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #0B6F6C !important; }
.sx-source a { font-weight: 600; }

/* Pros and cons */
.sx-pros, .sx-cons { list-style: none; padding: 0 !important; display: grid; gap: .55rem; }
.sx-pros li, .sx-cons li { position: relative; margin: 0 !important; padding: .7rem .9rem .7rem 2.6rem; border-radius: var(--sx-radius-sm); background: var(--sx-surface); border: 1px solid var(--sx-line); }
.sx-pros li::before, .sx-cons li::before { content: ""; position: absolute; left: .85rem; top: .9rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; background-position: center; background-repeat: no-repeat; background-size: 64%; }
.sx-pros li::before { background-color: var(--sx-green-tint); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B7F4E' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.sx-cons li::before { background-color: var(--sx-red-tint); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B9383A' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E"); }

/* Picks in list articles */
.sx-pick { margin-top: 2rem !important; background: var(--sx-surface); border: 1px solid var(--sx-line); border-radius: var(--sx-radius); padding: 1.4rem 1.5rem 1.5rem; box-shadow: var(--sx-shadow); }
.sx-pick > * { margin: 0; }
.sx-pick > * + * { margin-top: .8rem; }
.sx-pick > h2 { margin-top: 0 !important; font-size: 1.4rem !important; }
.sx-pick h3 { margin-top: 1.2rem !important; font-size: 1.02rem !important; }
.sx-bestfor { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; background: var(--sx-brand-tint); color: var(--sx-brand-dark); border-radius: 999px; padding: .35rem .9rem; font-size: .92rem; font-weight: 600; }
.sx-bestfor__label { color: var(--sx-brand) !important; text-transform: uppercase; font-size: .7rem; letter-spacing: .07em; }

/* FAQ */
.sx-faq { background: var(--sx-surface); border: 1px solid var(--sx-line); border-radius: var(--sx-radius-sm); padding: 1rem 1.15rem; margin-top: .75rem !important; }
.sx-faq > h3 { margin: 0 !important; font-size: 1.02rem !important; }
.sx-faq > * + * { margin-top: .45rem; }
.sx-faq p { margin: .45rem 0 0; color: var(--sx-ink-soft); }

/* End-of-article notice */
.sx-notice { display: flex; gap: .85rem; margin-top: 3rem; padding: 1.1rem 1.25rem; border-radius: var(--sx-radius); background: var(--sx-surface); border: 1px solid var(--sx-line); font-size: .9rem; line-height: 1.55; color: var(--sx-muted); }
.sx-notice .sx-icon { color: var(--sx-brand); margin-top: .1rem; }
.sx-notice p { margin: 0; }
.sx-notice p + p { margin-top: .4rem; }
.sx-notice strong { color: var(--sx-ink); }
.sx-tags { margin-top: 1.5rem; font-size: var(--wp--preset--font-size--x-small); color: var(--sx-muted); }

/* Related */
.sx-related { margin-top: var(--wp--preset--spacing--60); padding-top: var(--wp--preset--spacing--50); border-top: 1px solid var(--sx-line); }

/* Pages */
.sx-page { background: var(--sx-surface); border: 1px solid var(--sx-line); border-radius: calc(var(--sx-radius) + 6px); padding: clamp(1.25rem, 4vw, 3rem); box-shadow: var(--sx-shadow); }
.sx-page > .wp-block-post-title { margin-bottom: 1.5rem; }

/* ---------- Footer ---------- */
.sx-footer { background: var(--sx-surface); border-top: 1px solid var(--sx-line); padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--50); margin-top: 0; }
.sx-footer__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 800px) { .sx-footer__grid { grid-template-columns: 1.6fr 1.2fr 1fr 1fr; gap: 2.5rem; } }
.sx-footer__brand img { width: 48px; height: 48px; display: block; margin-bottom: .9rem; }
.sx-footer__brand p { margin: 0; font-size: var(--wp--preset--font-size--small); color: var(--sx-muted); max-width: 30rem; line-height: 1.6; }
.sx-footer__brand strong { color: var(--sx-ink); }
.sx-footer__col h2 { font-size: .75rem !important; text-transform: uppercase; letter-spacing: .08em; color: var(--sx-muted); margin: 0 0 .75rem; font-weight: 700; }
.sx-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.sx-footer__col a { color: var(--sx-ink-soft); font-size: var(--wp--preset--font-size--small); }
.sx-footer__col a:hover { color: var(--sx-brand); }
.sx-footer__legal { margin: 2.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--sx-line); font-size: var(--wp--preset--font-size--x-small); color: var(--sx-muted); }
