/* ==========================================================================
   OnlinePlayGuide — "Arcade Editorial" components
   Tokens come from theme.json (--wp--preset--*). No external requests.
   ========================================================================== */

/* ---------- Dark mode (optional, follows device) ---------- */
@media (prefers-color-scheme: dark) {
	body.opg-dark-auto {
		--wp--preset--color--base: #0B1220;
		--wp--preset--color--contrast: #E6EBF3;
		--wp--preset--color--surface: #141E30;
		--wp--preset--color--line: #26334B;
		--wp--preset--color--body: #C3CCDA;
		--wp--preset--color--muted: #A9B4C6;
		--wp--preset--color--accent: #9C8BFF;
		--wp--preset--color--accent-strong: #B9ADFF;
		--wp--preset--color--panel: #141E30;
		--wp--preset--color--panel-text: #E6EBF3;
		--wp--preset--color--tip-bg: #1C1640;
		--wp--preset--color--tip-fg: #CFC6FF;
		--wp--preset--color--warn-bg: #2A1A0B;
		--wp--preset--color--warn-fg: #FDBA74;
		--wp--preset--color--info-bg: #0F1D3A;
		--wp--preset--color--info-fg: #A9C4FF;
		--wp--preset--color--ok-bg: #0E2A1A;
		--wp--preset--color--ok-fg: #86EFAC;
	}
	body.opg-dark-auto .wp-element-button,
	body.opg-dark-auto .wp-block-button__link,
	body.opg-dark-auto .opg-button { color: #0E1726; }
}

/* ---------- Base ---------- */
:root { --opg-radius: 18px; --opg-radius-s: 12px; }
html { scroll-padding-top: 1.5rem; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; height: auto; }
:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
	border-radius: 4px;
}
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important;
	width: 1px; word-wrap: normal !important;
}
.wp-site-blocks { overflow-x: clip; }

.opg-eyebrow,
.is-style-opg-eyebrow {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-strong);
	margin: 0;
}

/* ---------- Buttons ---------- */
.opg-button {
	display: inline-flex; align-items: center; gap: 0.5rem;
	min-height: 48px; padding: 0 1.4rem; border-radius: var(--opg-radius-s);
	background: var(--wp--preset--color--lime); color: var(--wp--preset--color--panel);
	font-weight: 700; text-decoration: none;
}
.opg-button:hover { background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); }
.wp-block-button.is-style-outline > .wp-block-button__link { border: 1px solid currentColor; background: transparent; }

/* ---------- Header ---------- */
.opg-header { border-bottom: 1px solid var(--wp--preset--color--line); background: var(--wp--preset--color--base); }
.opg-header .wp-block-search__input {
	border: 1px solid var(--wp--preset--color--line); background: var(--wp--preset--color--surface);
	border-radius: 999px; padding: 0.55rem 1rem; min-height: 44px; color: var(--wp--preset--color--contrast);
}
.opg-header .wp-block-search__button {
	border-radius: 999px; min-width: 44px; min-height: 44px; margin-left: 0.4rem;
	background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); padding: 0 0.8rem;
}
.opg-header .wp-block-navigation-item__content { padding: 0.65rem 0.6rem; }
.opg-header .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content,
.opg-header .wp-block-navigation-item__content[aria-current="page"] { color: var(--wp--preset--color--accent-strong); }
body:not(.wp-custom-logo) .opg-brand .wp-block-site-title a { display: inline-flex; align-items: center; gap: 0.6rem; }
body:not(.wp-custom-logo) .opg-brand .wp-block-site-title a::before {
	content: ""; width: 34px; height: 34px; flex: none; border-radius: 8px;
	background: #0E1726 url("../img/mark.svg") center / 34px 34px no-repeat;
}

/* ---------- Dark panel (hero, category header) ---------- */
.is-style-opg-panel {
	background: var(--wp--preset--color--panel);
	color: var(--wp--preset--color--panel-text);
}
.is-style-opg-panel :where(h1, h2, h3, h4, .wp-block-post-title, .wp-block-query-title) { color: #FFFFFF; }
.is-style-opg-panel a:where(:not(.wp-element-button)) { color: #FFFFFF; }
.is-style-opg-panel .opg-eyebrow,
.is-style-opg-panel .is-style-opg-eyebrow { color: var(--wp--preset--color--lime); }
.is-style-opg-panel .opg-breadcrumbs,
.is-style-opg-panel .opg-breadcrumbs a,
.is-style-opg-panel .wp-block-term-description { color: #C9D1DE; }
.is-style-opg-panel .wp-block-button.is-style-outline > .wp-block-button__link { color: #FFFFFF; border-color: #3A4A63; }

/* ---------- Section heads ---------- */
.opg-section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.opg-section-head__title { margin: 0.35rem 0 0; font-size: var(--wp--preset--font-size--xx-large); }
.opg-section-head__intro { margin: 0.5rem 0 0; color: var(--wp--preset--color--body); max-width: 40em; }
.opg-section-head__more { font-weight: 700; padding: 0.75rem 0; text-decoration: none; }

/* ---------- Guide cards (opg/post-cards) ---------- */
.opg-post-cards { margin-block: 0; }
.opg-cards { list-style: none; margin: 0; padding: 0; }
.opg-cards--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1.5rem; }
.opg-card {
	display: flex; flex-direction: column; overflow: hidden;
	border: 1px solid var(--wp--preset--color--line); border-radius: var(--opg-radius);
	background: var(--wp--preset--color--base);
	transition: border-color 0.15s ease;
}
.opg-card:hover { border-color: var(--wp--preset--color--accent); }
.opg-cards--grid > *, .opg-cat-grid > *, .opg-card--feature > * { min-width: 0; }
.opg-card { min-width: 0; }
.opg-card__media { display: block; width: 100%; overflow: hidden; aspect-ratio: 16 / 9; background: var(--wp--preset--color--surface); }
.opg-card__media img { width: 100%; max-width: 100%; height: 100%; object-fit: cover; display: block; }
.opg-card__body { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.25rem 1.375rem 1.5rem; flex: 1; }
.opg-card__cat { margin: 0; font-family: var(--wp--preset--font-family--mono); font-size: var(--wp--preset--font-size--x-small); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.opg-card__cat a { text-decoration: none; color: var(--wp--preset--color--accent-strong); }
.opg-card__title { margin: 0; font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.01em; font-weight: 700; }
.opg-card__title a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.opg-card__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.opg-card__excerpt { margin: 0; color: var(--wp--preset--color--body); font-size: 1rem; line-height: 1.55; }
.opg-card__meta { margin: auto 0 0; padding-top: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.4rem; color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }

.opg-cards--feature .opg-card--feature {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
	border: 0; border-radius: 0; background: transparent; gap: 2.5rem; align-items: center; overflow: visible;
}
.opg-cards--feature .opg-card__media { border-radius: 20px; overflow: hidden; order: 2; }
.opg-cards--feature .opg-card__body { padding: 0; gap: 1rem; }
.opg-cards--feature .opg-card__title { font-size: var(--wp--preset--font-size--huge); line-height: 1.04; letter-spacing: -0.03em; font-weight: 800; }
.opg-cards--feature .opg-card__excerpt { font-size: 1.1875rem; }
.opg-cards--feature .opg-card__meta { margin-top: 0; }
.is-style-opg-panel .opg-card__title a,
.is-style-opg-panel .opg-card__cat a { color: #FFFFFF; }
.is-style-opg-panel .opg-card__cat a { color: var(--wp--preset--color--lime); }
.is-style-opg-panel .opg-card__excerpt,
.is-style-opg-panel .opg-card__meta { color: #C9D1DE; }

.opg-cards--path, .opg-cards--list { display: flex; flex-direction: column; gap: 0.75rem; }
.opg-path-item__link {
	display: flex; align-items: center; gap: 1.1rem; padding: 1.1rem 1.25rem;
	border: 1px solid var(--wp--preset--color--line); border-radius: 16px;
	color: var(--wp--preset--color--contrast); text-decoration: none; background: var(--wp--preset--color--base);
}
.opg-path-item__link:hover { border-color: var(--wp--preset--color--accent); }
.opg-path-item__num {
	flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
	background: var(--wp--preset--color--tip-bg); color: var(--wp--preset--color--tip-fg);
	font-family: var(--wp--preset--font-family--mono); font-weight: 700; font-size: 1.05rem;
}
.opg-path-item__text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.opg-path-item__cat { font-size: var(--wp--preset--font-size--x-small); font-weight: 700; letter-spacing: 0.05em; color: var(--wp--preset--color--muted); text-transform: uppercase; }
.opg-path-item__title { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 1.25rem; line-height: 1.25; }

.opg-art { display: grid; place-items: center; width: 100%; height: 100%; }
.opg-art--ok { background: var(--wp--preset--color--ok-bg); color: var(--wp--preset--color--ok-fg); }
.opg-art--tip { background: var(--wp--preset--color--tip-bg); color: var(--wp--preset--color--accent); }
.opg-art--warn { background: var(--wp--preset--color--warn-bg); color: #C2410C; }
.opg-art--info { background: var(--wp--preset--color--info-bg); color: var(--wp--preset--color--info-fg); }
.opg-art__food { fill: var(--wp--preset--color--contrast); }

/* ---------- Category cards ---------- */
.opg-cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 1rem; }
.opg-cat-card {
	display: flex; flex-direction: column; gap: 0.6rem; min-height: 150px; padding: 1.5rem;
	border-radius: var(--opg-radius); border: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); text-decoration: none;
}
.opg-cat-card:hover { border-color: var(--wp--preset--color--accent); }
.opg-cat-card--lead { background: var(--wp--preset--color--panel); color: #FFFFFF; border-color: var(--wp--preset--color--panel); }
.opg-cat-card__name { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 1.375rem; }
.opg-cat-card__desc { font-size: 0.9375rem; color: inherit; opacity: 0.85; }
.opg-cat-card__count { margin-top: auto; font-size: var(--wp--preset--font-size--small); opacity: 0.85; }

/* ---------- Archive lists (core Query) ---------- */
.opg-archive-grid.wp-block-post-template { gap: 1.75rem; }
.opg-archive-grid .wp-block-post { display: flex; flex-direction: column; gap: 0.7rem; }
.opg-archive-grid .wp-block-post-featured-image { margin: 0; border-radius: 16px; overflow: hidden; background: var(--wp--preset--color--surface); }
.opg-archive-grid .wp-block-post-featured-image img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.opg-archive-grid .wp-block-post-title { font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.01em; font-weight: 700; margin: 0; }
.opg-archive-grid .wp-block-post-title a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.opg-archive-grid .wp-block-post-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.opg-archive-grid .wp-block-post-excerpt { font-size: 1rem; margin: 0; }
.opg-archive-grid .wp-block-post-excerpt__excerpt { margin: 0; }
.opg-meta { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }
.opg-meta > * { margin: 0 !important; }
.opg-meta .opg-reading-time { font-size: inherit; }

.wp-block-query-pagination { gap: 0.5rem; }
.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 48px; min-height: 48px; padding: 0 0.75rem;
	border: 1px solid var(--wp--preset--color--line); border-radius: 12px; text-decoration: none; color: var(--wp--preset--color--contrast);
}
.wp-block-query-pagination .page-numbers.current { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); border-color: var(--wp--preset--color--contrast); }

/* ---------- Breadcrumbs ---------- */
.opg-breadcrumbs { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.opg-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.opg-breadcrumbs li + li::before { content: "/"; margin-right: 0.35rem; opacity: 0.6; }
.opg-breadcrumbs a { color: inherit; text-decoration: none; }
.opg-breadcrumbs a:hover { text-decoration: underline; }
.opg-breadcrumbs [aria-current] { color: var(--wp--preset--color--contrast); font-weight: 600; }
.is-style-opg-panel .opg-breadcrumbs [aria-current] { color: #FFFFFF; }
.opg-breadcrumbs--rankmath p { margin: 0; }

/* ---------- Single article layout ---------- */
.opg-article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
@media (min-width: 1024px) {
	.opg-article-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 3.5rem; align-items: start; }
	.opg-article-layout > .opg-article-aside { grid-column: 2; grid-row: 1; position: sticky; top: 1.5rem; }
	.opg-article-layout > .opg-article-main { grid-column: 1; grid-row: 1; }
	.admin-bar .opg-article-layout > .opg-article-aside { top: calc(1.5rem + 32px); }
}
.opg-article-main > .wp-block-post-content > * { max-width: 760px; }
.opg-article-main > .wp-block-post-content > .alignwide,
.opg-article-main > .wp-block-post-content > .alignfull { max-width: none; }
.opg-standfirst { font-size: 1.25rem; line-height: 1.55; color: var(--wp--preset--color--body); }
.opg-byline { border-block: 1px solid var(--wp--preset--color--line); padding-block: 1rem; }
.opg-byline .wp-block-post-author__avatar img { border-radius: 999px; }
.opg-featured.wp-block-post-featured-image img { border-radius: 22px; aspect-ratio: 16 / 9; object-fit: cover; }

/* Table of contents */
.opg-toc { padding: 1.4rem; border-radius: 16px; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); }
.opg-toc__title { margin: 0 0 0.75rem; font-family: var(--wp--preset--font-family--mono); font-size: var(--wp--preset--font-size--x-small); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wp--preset--color--body); }
.opg-toc ol { margin: 0; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; font-size: 1rem; line-height: 1.35; }
.opg-toc a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.opg-toc a:hover { text-decoration: underline; color: var(--wp--preset--color--accent-strong); }

/* Content rhythm */
.wp-block-post-content h2 { margin-top: 2.5rem; margin-bottom: 0.75rem; }
.wp-block-post-content h3 { margin-top: 2rem; margin-bottom: 0.5rem; }
.wp-block-post-content :where(ul, ol):not(.opg-cards) { padding-left: 1.4rem; }
.wp-block-post-content li + li { margin-top: 0.35rem; }

/* ---------- Highlight boxes ---------- */
.is-style-opg-quick-answer,
.is-style-opg-pro-tip,
.is-style-opg-mistake,
.is-style-opg-important,
.is-style-opg-takeaways,
.is-style-opg-strategy,
.is-style-opg-card {
	border-radius: var(--opg-radius);
	padding: 1.5rem 1.6rem;
	margin-block: 2rem;
}
.is-style-opg-quick-answer > *, .is-style-opg-pro-tip > *, .is-style-opg-mistake > *,
.is-style-opg-important > *, .is-style-opg-takeaways > *, .is-style-opg-strategy > * { margin-block: 0; }
.is-style-opg-quick-answer > * + *, .is-style-opg-pro-tip > * + *, .is-style-opg-mistake > * + *,
.is-style-opg-important > * + *, .is-style-opg-takeaways > * + *, .is-style-opg-strategy > * + * { margin-top: 0.6rem; }

.opg-box-label {
	display: inline-flex; align-items: center; gap: 0.5rem;
	font-family: var(--wp--preset--font-family--mono) !important;
	font-size: var(--wp--preset--font-size--x-small) !important;
	font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.opg-box-label::before {
	content: ""; width: 16px; height: 16px; flex: none; background: currentColor;
	-webkit-mask: var(--opg-icon) center / contain no-repeat; mask: var(--opg-icon) center / contain no-repeat;
}

.is-style-opg-quick-answer { background: var(--wp--preset--color--panel); color: var(--wp--preset--color--panel-text); font-size: 1.1875rem; }
.is-style-opg-quick-answer .opg-box-label { color: var(--wp--preset--color--lime); --opg-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.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 3L5 14h6l-1 7 8-11h-6z'/%3E%3C/svg%3E"); }
.is-style-opg-quick-answer a { color: #FFFFFF; }
.is-style-opg-quick-answer strong { color: #FFFFFF; }

.is-style-opg-pro-tip { background: var(--wp--preset--color--tip-bg); color: var(--wp--preset--color--tip-fg); border: 1px solid color-mix(in srgb, var(--wp--preset--color--tip-fg) 22%, transparent); }
.is-style-opg-pro-tip .opg-box-label { --opg-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%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 00-4 10.5c.7.7 1 1.5 1 2.5h6c0-1 .3-1.8 1-2.5A6 6 0 0012 3z'/%3E%3C/svg%3E"); }

.is-style-opg-mistake { background: var(--wp--preset--color--warn-bg); color: var(--wp--preset--color--warn-fg); border: 1px solid color-mix(in srgb, var(--wp--preset--color--warn-fg) 25%, transparent); }
.is-style-opg-mistake .opg-box-label { --opg-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 3l10 18H2z'/%3E%3Cpath d='M12 10v5M12 18h.01'/%3E%3C/svg%3E"); }

.is-style-opg-important { background: var(--wp--preset--color--info-bg); color: var(--wp--preset--color--info-fg); border: 1px solid color-mix(in srgb, var(--wp--preset--color--info-fg) 25%, transparent); }
.is-style-opg-important .opg-box-label { --opg-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 8h.01M11 12h1v5h1'/%3E%3C/svg%3E"); }

.is-style-opg-pro-tip a, .is-style-opg-mistake a, .is-style-opg-important a { color: inherit; }

.is-style-opg-takeaways { border: 2px solid var(--wp--preset--color--contrast); }
.is-style-opg-takeaways .opg-box-label { color: var(--wp--preset--color--contrast); --opg-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.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E"); }
.is-style-opg-takeaways ul { margin: 0; }

.is-style-opg-strategy { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); }
.is-style-opg-strategy .opg-box-label { color: var(--wp--preset--color--accent-strong); --opg-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%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3Cpath d='M10 6.5h4a3 3 0 013 3V14'/%3E%3C/svg%3E"); }
.is-style-opg-strategy .wp-block-columns { margin-block: 0.75rem 0; }

.is-style-opg-card { background: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--line); }

/* Steps: numbered automatically, restart in every Steps container */
.is-style-opg-steps { counter-reset: opg-step; display: flex; flex-direction: column; gap: 1.1rem; margin-block: 1.5rem 2rem; }
.is-style-opg-steps > * { margin-block: 0 !important; }
.is-style-opg-step {
	counter-increment: opg-step;
	position: relative;
	padding: 1.5rem 1.5rem 1.5rem 5.25rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--opg-radius);
	background: var(--wp--preset--color--base);
}
.is-style-opg-step::before {
	content: counter(opg-step);
	position: absolute; left: 1.5rem; top: 1.5rem;
	width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
	background: var(--wp--preset--color--lime); color: #0E1726;
	font-family: var(--wp--preset--font-family--mono); font-weight: 700; font-size: 1.25rem;
}
.is-style-opg-step > * { margin-block: 0; }
.is-style-opg-step > * + * { margin-top: 0.6rem; }
.is-style-opg-step > h3:first-child, .is-style-opg-step > h4:first-child { margin-top: 0.6rem; font-size: 1.375rem; }
.is-style-opg-step p { color: var(--wp--preset--color--body); }
@media (max-width: 560px) {
	.is-style-opg-step { padding: 4.75rem 1.25rem 1.25rem; }
	.is-style-opg-step::before { left: 1.25rem; top: 1.25rem; width: 44px; height: 44px; }
}

/* Checklist list */
.is-style-opg-check { list-style: none; padding-left: 0 !important; }
.is-style-opg-check li { position: relative; padding-left: 1.9rem; }
.is-style-opg-check li::before {
	content: ""; position: absolute; left: 0; top: 0.35em; width: 1.15rem; height: 1.15rem; border-radius: 4px;
	background: var(--wp--preset--color--lime);
	box-shadow: inset 0 0 0 2px #0E1726;
}

/* ---------- Tables ---------- */
.wp-block-post-content .wp-block-table { overflow-x: auto; margin-block: 2rem; }
.wp-block-post-content .wp-block-table table { min-width: 520px; border-collapse: collapse; font-size: 1.0625rem; line-height: 1.45; }
.wp-block-table.is-style-opg-compare { border: 1px solid var(--wp--preset--color--line); border-radius: 16px; }
.wp-block-table.is-style-opg-compare table { width: 100%; }
.wp-block-table.is-style-opg-compare :where(th, td) { border: 0; border-bottom: 1px solid var(--wp--preset--color--line); padding: 0.85rem 1.1rem; text-align: left; vertical-align: top; }
.wp-block-table.is-style-opg-compare thead th { background: var(--wp--preset--color--surface); font-weight: 700; border-bottom-width: 1px; }
.wp-block-table.is-style-opg-compare tbody tr:last-child :where(th, td) { border-bottom: 0; }
.wp-block-table.is-style-opg-compare figcaption { padding: 0.75rem 1.1rem; margin: 0; }

/* ---------- Images & diagrams ---------- */
.wp-block-post-content .wp-block-image { margin-block: 2rem; }
.wp-block-image.is-style-opg-framed img { border-radius: 16px; border: 1px solid var(--wp--preset--color--line); background: var(--wp--preset--color--surface); }
.wp-block-image figcaption, .wp-element-caption { margin-top: 0.6rem; }

/* ---------- FAQ (core Details) ---------- */
.wp-block-details { border: 1px solid var(--wp--preset--color--line); border-radius: 14px; padding: 1rem 1.25rem; }
.wp-block-details + .wp-block-details { margin-top: 0.75rem !important; }
.wp-block-details summary { cursor: pointer; font-weight: 700; font-size: 1.125rem; color: var(--wp--preset--color--contrast); min-height: 28px; }
.wp-block-details[open] summary { margin-bottom: 0.6rem; }
.wp-block-details > :not(summary) { margin-block: 0.5rem 0; font-size: 1.0625rem; }

/* ---------- Ads ---------- */
.opg-ad { margin-block: 2rem; clear: both; }
.opg-ad__label {
	margin: 0 0 0.4rem; font-family: var(--wp--preset--font-family--mono);
	font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wp--preset--color--muted);
}
.opg-ad__unit { display: flex; justify-content: center; align-items: center; overflow: hidden; }
.opg-ad--preview { padding: 1rem; border: 1px dashed var(--wp--preset--color--muted); border-radius: 12px; background: var(--wp--preset--color--surface); text-align: center; }
.opg-ad--preview .opg-ad__label { margin: 0; }

/* ---------- Author box & post navigation ---------- */
.opg-author-box { background: var(--wp--preset--color--surface); border-radius: var(--opg-radius); padding: 1.5rem; }
.opg-author-box .wp-block-post-author { flex-wrap: wrap; gap: 1rem; }
.opg-author-box .wp-block-post-author__avatar img { border-radius: 999px; }
.opg-author-box .wp-block-post-author__name { font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: 1.5rem; }
.opg-author-box .wp-block-post-author__bio { color: var(--wp--preset--color--body); font-size: 1.0625rem; line-height: 1.6; margin-top: 0.35rem; }
.opg-post-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
.opg-post-nav .wp-block-post-navigation-link {
	display: block; padding: 1.1rem 1.25rem; border: 1px solid var(--wp--preset--color--line); border-radius: 16px;
}
.opg-post-nav .wp-block-post-navigation-link:empty { display: none; }
.opg-post-nav .post-navigation-link-next { text-align: right; }
.opg-post-nav a { font-weight: 700; color: var(--wp--preset--color--contrast); text-decoration: none; }
.opg-post-nav .post-navigation-link__label,
.opg-post-nav .wp-block-post-navigation-link__label { display: block; font-weight: 400; color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }

/* ---------- Footer ---------- */
.opg-footer { background: var(--wp--preset--color--panel); color: #C9D1DE; }
.opg-footer :where(h2, h3, .wp-block-site-title a) { color: #FFFFFF; }
.opg-footer a { color: #C9D1DE; text-decoration: none; }
.opg-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.opg-footer .wp-block-navigation__container { gap: 0.5rem; }
.opg-footer .wp-block-navigation-item__content { padding: 0.2rem 0; }
.opg-footer-legal { border-top: 1px solid #22324F; }
.opg-footer .wp-block-social-links .wp-social-link { background: #22324F; color: #FFFFFF; }

/* ---------- Search & 404 ---------- */
.opg-search-big .wp-block-search__input { min-height: 52px; border-radius: 12px; border: 1px solid var(--wp--preset--color--line); padding: 0 1rem; font-size: 1.0625rem; background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); }
.opg-search-big .wp-block-search__button { min-height: 52px; border-radius: 12px; }

/* ---------- Editor helpers ---------- */
.opg-editor-empty { padding: 1rem; border: 1px dashed #8a94a6; border-radius: 12px; font-size: 14px; color: #3A4557; background: #F4F6F9; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Print ---------- */
@media print {
	.opg-header, .opg-footer, .opg-ad, .opg-article-aside, .opg-post-nav { display: none !important; }
}

.opg-post-meta { margin: 0; color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }
.opg-byline .wp-block-post-author__name { font-weight: 700; }
.opg-byline .wp-block-post-author__byline { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
