/* ==========================================================================
   Succes News — blocks.css
   Block STYLES only (register_block_style in inc/core/class-blocks.php):
     core/quote + core/pullquote  .is-style-sn-pullquote-accent
     core/image                   .is-style-sn-rounded / .is-style-sn-shadow
     core/group                   .is-style-sn-box
     core/list                    .is-style-sn-checklist
     core/table                   .is-style-sn-striped
     core/button                  .is-style-sn-outline
     core/separator               .is-style-sn-short
   Loaded on singular views (priority 20) and inside the editor canvas via
   add_editor_style(). Pattern component classes (.sn-box, .sn-faq,
   .sn-timeline, .sn-pros-cons, .sn-expert) are styled in main.css/content.css
   and are intentionally NOT restyled here.
   Colors and fonts come exclusively from the theme tokens, so every style is
   dark-mode aware for free.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Accent pullquote (core/pullquote)
   -------------------------------------------------------------------------- */
.wp-block-pullquote.is-style-sn-pullquote-accent {
	border: 0;
	border-inline-start: 4px solid var(--sn-accent, #f59e0b);
	background: var(--sn-surface-2, rgba(0, 0, 0, .04));
	border-radius: 0 var(--sn-radius-lg, 14px) var(--sn-radius-lg, 14px) 0;
	padding: var(--sn-space-6, 1.5rem) var(--sn-space-8, 2rem);
	margin-block: var(--sn-space-8, 2rem);
	text-align: start;
}

.wp-block-pullquote.is-style-sn-pullquote-accent blockquote {
	margin: 0;
	border: 0;
	padding: 0;
}

.wp-block-pullquote.is-style-sn-pullquote-accent p {
	font-family: var(--sn-font-heading, inherit);
	font-size: var(--sn-fs-2xl, 1.5rem);
	font-weight: 700;
	line-height: var(--sn-lh-snug, 1.3);
	color: var(--sn-heading, inherit);
	margin: 0 0 .5em;
}

.wp-block-pullquote.is-style-sn-pullquote-accent cite {
	display: block;
	font-family: var(--sn-font-ui, inherit);
	font-size: var(--sn-fs-sm, .8125rem);
	font-style: normal;
	font-weight: 600;
	letter-spacing: .02em;
	color: var(--sn-text-muted, #6b7280);
}

/* Accent style on a regular quote block (smaller scale). */
.wp-block-quote.is-style-sn-pullquote-accent {
	border: 0;
	border-inline-start: 4px solid var(--sn-accent, #f59e0b);
	background: var(--sn-surface-2, rgba(0, 0, 0, .04));
	border-radius: 0 var(--sn-radius, 8px) var(--sn-radius, 8px) 0;
	padding: var(--sn-space-5, 1.25rem) var(--sn-space-6, 1.5rem);
	margin-block: var(--sn-space-6, 1.5rem);
	font-style: normal;
}

.wp-block-quote.is-style-sn-pullquote-accent p {
	font-family: var(--sn-font-heading, inherit);
	font-size: var(--sn-fs-xl, 1.25rem);
	line-height: var(--sn-lh-snug, 1.3);
	color: var(--sn-heading, inherit);
}

.wp-block-quote.is-style-sn-pullquote-accent cite {
	font-family: var(--sn-font-ui, inherit);
	font-size: var(--sn-fs-sm, .8125rem);
	font-style: normal;
	font-weight: 600;
	color: var(--sn-text-muted, #6b7280);
}

/* --------------------------------------------------------------------------
   Image styles (core/image)
   -------------------------------------------------------------------------- */
.wp-block-image.is-style-sn-rounded img {
	border-radius: var(--sn-radius-lg, 14px);
}

.wp-block-image.is-style-sn-shadow img {
	border-radius: var(--sn-radius, 8px);
	box-shadow: var(--sn-shadow-lg, 0 16px 40px rgba(15, 23, 42, .14));
}

/* --------------------------------------------------------------------------
   Box group (core/group) — generic bordered surface for any group of blocks.
   -------------------------------------------------------------------------- */
.wp-block-group.is-style-sn-box {
	padding: var(--sn-space-5, 1.25rem) var(--sn-space-6, 1.5rem);
	background: var(--sn-surface-2, rgba(0, 0, 0, .04));
	border: 1px solid var(--sn-border, rgba(0, 0, 0, .12));
	border-radius: var(--sn-radius-lg, 14px);
}

.wp-block-group.is-style-sn-box > :first-child {
	margin-top: 0;
}

.wp-block-group.is-style-sn-box > :last-child {
	margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Checklist (core/list)
   -------------------------------------------------------------------------- */
ul.is-style-sn-checklist {
	list-style: none;
	padding-left: 0;
	margin-left: 0;
}

ul.is-style-sn-checklist > li {
	position: relative;
	padding-left: 1.75em;
	margin-bottom: .35em;
}

ul.is-style-sn-checklist > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .22em;
	width: 1.05em;
	height: 1.05em;
	background-color: var(--sn-primary, #1d4ed8);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* --------------------------------------------------------------------------
   Striped table (core/table)
   -------------------------------------------------------------------------- */
.wp-block-table.is-style-sn-striped table {
	border-collapse: collapse;
	border: 0;
}

.wp-block-table.is-style-sn-striped th,
.wp-block-table.is-style-sn-striped td {
	border: 0;
	padding: .6em .9em;
	text-align: start;
}

.wp-block-table.is-style-sn-striped thead th {
	font-family: var(--sn-font-ui, inherit);
	font-size: var(--sn-fs-sm, .8125rem);
	text-transform: uppercase;
	letter-spacing: .05em;
	border-bottom: 2px solid var(--sn-border-strong, rgba(0, 0, 0, .25));
}

.wp-block-table.is-style-sn-striped tbody tr:nth-child(odd) {
	background: var(--sn-surface-2, rgba(0, 0, 0, .04));
}

.wp-block-table.is-style-sn-striped tfoot td {
	border-top: 2px solid var(--sn-border-strong, rgba(0, 0, 0, .25));
	font-weight: 600;
}

/* --------------------------------------------------------------------------
   Outline button (core/button)
   -------------------------------------------------------------------------- */
.wp-block-button.is-style-sn-outline .wp-block-button__link {
	background: transparent;
	color: var(--sn-primary, #1d4ed8);
	border: 2px solid var(--sn-primary, #1d4ed8);
	transition: background var(--sn-dur, .18s) var(--sn-ease, ease), color var(--sn-dur, .18s) var(--sn-ease, ease);
}

.wp-block-button.is-style-sn-outline .wp-block-button__link:hover,
.wp-block-button.is-style-sn-outline .wp-block-button__link:focus-visible {
	background: var(--sn-primary, #1d4ed8);
	color: var(--sn-on-primary, #fff);
}

/* --------------------------------------------------------------------------
   Short separator (core/separator)
   -------------------------------------------------------------------------- */
.wp-block-separator.is-style-sn-short {
	width: 80px;
	max-width: 80px;
	border: 0;
	border-top: 4px solid var(--sn-accent, #f59e0b);
	border-radius: var(--sn-radius-full, 999px);
	margin-inline: auto;
	opacity: 1;
}
