/* Only what theme.json cannot express. Loaded on the front and in the editor. */

.sf-header { border-bottom: 1px solid var(--wp--preset--color--border); }
.sf-footer { border-top: 1px solid var(--wp--preset--color--border); }
.sf-footer__about { max-width: 360px; margin-top: var(--wp--preset--spacing--40); }

.sf-topic-card {
	border: 1px solid var(--wp--preset--color--border);
	padding: var(--wp--preset--spacing--50);
}
.sf-topic-card .wp-block-post-template { margin: 0; padding: 0; list-style: none; }
.sf-topic-card .wp-block-post-template > li {
	margin: 0;
	padding: var(--wp--preset--spacing--20) 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.sf-topic-card .wp-block-post-template > li + li { margin-block-start: 0; }
.sf-topic-card .wp-block-post-title { line-height: 1.4; }
.sf-topic-card .wp-block-post-template > li:last-child { border-bottom: 0; }


/* Ad slots stay invisible until an ad is inserted, then reserve height to avoid layout shift. */
.sf-ad-slot { min-height: 90px; }
.sf-ad-slot--sidebar { min-height: 250px; }
.sf-ad-slot:empty { display: none; }
/* Visible stand-ins so the ad positions can be reviewed before AdSense. Never shown to visitors in production. */
.sf-show-ad-placeholders .sf-ad-slot:empty {
	display: flex; align-items: center; justify-content: center;
	border: 1px dashed #B8C2CF; background: repeating-linear-gradient(45deg, #F6F8FA, #F6F8FA 10px, #EEF2F6 10px, #EEF2F6 20px);
	color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); letter-spacing: 0.06em; text-transform: uppercase;
}
.sf-show-ad-placeholders .sf-ad-slot--leaderboard:empty { max-width: 728px; min-height: 90px; margin-inline: auto !important; }
.sf-show-ad-placeholders .sf-ad-slot--leaderboard:empty::before { content: "Advertisement · 728 × 90"; }
.sf-show-ad-placeholders .sf-ad-slot--in-content:empty { min-height: 250px; margin-block: var(--wp--preset--spacing--60); }
.sf-show-ad-placeholders .sf-ad-slot--in-content:empty::before { content: "Advertisement · in article"; }
.sf-show-ad-placeholders .sf-ad-slot--sidebar:empty { min-height: 250px; }
.sf-show-ad-placeholders .sf-ad-slot--sidebar:empty::before { content: "Advertisement · 300 × 250"; }

.sf-notice {
	border-left: 3px solid var(--wp--preset--color--primary);
	background: var(--wp--preset--color--surface);
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
}

/* Wide tables scroll inside their own box, never the whole page. */
.wp-block-table { overflow-x: auto; }
.wp-block-table table { border-collapse: collapse; width: 100%; font-size: var(--wp--preset--font-size--small); }
.wp-block-table th,
.wp-block-table td { border: 1px solid var(--wp--preset--color--border); padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30); text-align: left; }
.wp-block-table thead th { background: var(--wp--preset--color--surface); font-weight: 600; }

:where(a, button, input, select, textarea):focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

/* Mobile: keep the three topic cards short so every topic stays within easy reach. */
@media (max-width: 781px) {
	.sf-topic-card .wp-block-post-template > li:nth-child(n+4) { display: none; }
}

/* Logo (patterns/brand.php). Height drives the size; the SVG keeps its own ratio. */
.sf-brand { margin: 0 !important; flex: none; line-height: 0; }
.sf-brand a { display: inline-block; }
.sf-brand img { display: block; height: 60px; width: auto; aspect-ratio: 1080 / 503.22; }
.sf-footer .sf-brand img { height: 76px; }
@media (max-width: 600px) { .sf-header .sf-brand img { height: 46px; } }

/* Quiet links outside running text; article body keeps underlines for accessibility. */
.wp-block-site-title a, .wp-block-navigation a, .sf-topic-card a, .sf-band a, .sf-author-band a, .sf-footer a { text-decoration: none; }
.wp-block-navigation a:hover, .sf-topic-card a:hover, .sf-band a:hover, .sf-author-band a:hover, .sf-footer a:hover { text-decoration: underline; }
.wp-block-navigation a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.5em; text-decoration-thickness: 2px; }

/* Hero: photo stays visible on the right, text side darkened for contrast. */
.sf-hero .wp-block-cover__image-background { object-position: center 78%; transform: scaleX(-1); }
.sf-hero .wp-block-cover__background {
	opacity: 1 !important;
	background-color: transparent !important;
	background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.82) 40%, rgba(15, 23, 42, 0.3) 75%, rgba(15, 23, 42, 0.12) 100%);
}
.sf-hero__text { max-width: var(--wp--style--global--wide-size) !important; margin-inline: auto !important; }
.sf-hero__text > * { max-width: 640px; }
@media (max-width: 781px) {
	.sf-hero .wp-block-cover__background { background-image: none; background-color: rgba(15, 23, 42, 0.72) !important; }
}

/* Topic card illustration sits flush at the top of the card. */
.sf-topic-card__visual {
	margin: calc(-1 * var(--wp--preset--spacing--50)) calc(-1 * var(--wp--preset--spacing--50)) var(--wp--preset--spacing--20) !important;
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
	background: var(--wp--preset--color--surface);
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.sf-topic-card__visual img { display: block; width: 100%; height: auto; }
.sf-topic-card h3 a { color: var(--wp--preset--color--primary); }
/* Desktop: the three cards share their rows (subgrid), so titles, descriptions, lists and
   "All articles" links line up across cards whatever the text length. */
@media (min-width: 782px) {
	.sf-topic-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); }
	.sf-topic-grid > .sf-topic-card { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: var(--wp--preset--spacing--30); align-content: start; }
	.sf-topic-grid > .sf-topic-card > :not(.sf-topic-card__visual) { margin-block: 0 !important; }
	.sf-topic-grid > .sf-topic-card > p:last-child { align-self: end; }
}

/* Bands: round icon, heading and text, action on the right. */
.sf-band__icon { flex: none; width: 64px; height: 64px; margin: 0; border-radius: 50%; background: var(--wp--preset--color--base); display: grid; place-items: center; }
.sf-band__icon img { width: 30px !important; height: 30px; }
.sf-band h2 { font-size: var(--wp--preset--font-size--large); }
.sf-band p { margin: 0; }

.sf-author-band { border-left: 3px solid var(--wp--preset--color--primary); padding-left: var(--wp--preset--spacing--50); }
.sf-eyebrow { font-family: var(--wp--preset--font-family--mono); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500; color: var(--wp--preset--color--primary); margin-bottom: var(--wp--preset--spacing--20); }

/* Fluent Forms follow the theme instead of the plugin's default blue. */
.fluentform .ff-el-form-control { border: 1px solid var(--wp--preset--color--border); border-radius: 2px; font: inherit; }
.fluentform .ff-el-form-control:focus { border-color: var(--wp--preset--color--primary); }
.fluentform .ff-btn-submit, .fluentform .ff-btn-submit:hover {
	background-color: var(--wp--preset--color--primary) !important;
	border-color: var(--wp--preset--color--primary) !important;
	border-radius: 2px; font-weight: 600;
}
.fluentform .ff-btn-submit:hover { background-color: var(--wp--preset--color--primary-dark) !important; }
.sf-band__form .fluentform .ff-el-group { margin-bottom: 0; }

/* Topic archive header over the topic photo */
.sf-category-hero .wp-block-cover__background {
	opacity: 1 !important; background-color: transparent !important;
	background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.85) 45%, rgba(15, 23, 42, 0.45) 100%);
}
.sf-category-hero .wp-block-cover__inner-container > * { max-width: 680px; margin-left: max(0px, calc((100% - 1200px) / 2)) !important; }
.sf-category-hero .sf-eyebrow { color: #7FB2F0; }
.sf-category-hero h1 { margin: var(--wp--preset--spacing--20) 0 var(--wp--preset--spacing--30); }
.sf-category-hero .wp-block-term-description p { opacity: 0.88; margin: 0; }
.sf-category-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, #1f5fbf, #1ba3d6, #2fae4e, #d4a300, #d9342b); z-index: 2; }
/* Topic archive header (legacy illustration layout) */
.sf-category-header h1 { margin-top: 0; }
.sf-category-header__visual { margin: 0; background: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--border); padding: var(--wp--preset--spacing--50); }
.sf-category-header__visual img { display: block; width: 100%; height: auto; }



/* Key facts strip, used on the About page */
.sf-facts { border-top: 1px solid var(--wp--preset--color--border); border-bottom: 1px solid var(--wp--preset--color--border); padding: var(--wp--preset--spacing--50) 0; }
.sf-facts .sf-eyebrow { margin-bottom: var(--wp--preset--spacing--10); }
.sf-facts p:not(.sf-eyebrow) { margin: 0; font-weight: 600; }

/* Stand-in featured image: topic illustration or placeholder, framed like a real image. */
.sf-featured-fallback { display: flex; align-items: center; justify-content: center; margin: 0; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); padding: var(--wp--preset--spacing--50); }
.sf-featured-fallback img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sf-featured-fallback a { display: contents; }

/* Article tiles, used in archives, search and related articles. */
.wp-block-post-template.is-layout-grid > li { display: flex; }
.sf-tile { flex: 1; background: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--border); transition: border-color 0.15s, transform 0.15s; }
.sf-tile:hover { border-color: var(--wp--preset--color--primary); transform: translateY(-2px); }
.sf-tile > .wp-block-post-featured-image, .sf-tile__visual { margin: 0 !important; border: 0; border-bottom: 1px solid var(--wp--preset--color--border); }
.sf-tile__visual { background: var(--wp--preset--color--surface); padding: var(--wp--preset--spacing--40); }
.sf-tile__visual img { display: block; width: 100%; height: auto; }
.sf-tile__body { flex: 1; padding: var(--wp--preset--spacing--50); }
.sf-tile .wp-block-post-title a, .sf-tile h3 a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.sf-tile .wp-block-post-title a:hover, .sf-tile h3 a:hover { color: var(--wp--preset--color--primary); }
.sf-tile .wp-block-post-terms a { text-decoration: none; }
.sf-tile .wp-block-post-excerpt { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); margin: 0; }
.sf-tile .wp-block-post-excerpt__excerpt { margin: 0; }
.sf-tile .wp-block-read-more { margin-top: auto; font-size: var(--wp--preset--font-size--small); font-weight: 600; text-decoration: none; }

/* Landing pages: dark hero with a mesh texture, cards lifted over its edge. */
.sf-landing .wp-block-post-content > * + * { margin-block-start: var(--wp--preset--spacing--80); }
.sf-page-hero {
	background-image: url("../images/mesh-pattern.svg");
	border-bottom: 4px solid;
	border-image: linear-gradient(90deg, #1f5fbf, #1ba3d6, #2fae4e, #d4a300, #d9342b) 1;
}
.sf-page-hero h1 { margin-top: var(--wp--preset--spacing--20); }
.sf-page-hero > p:not(.sf-eyebrow) {
	max-width: 680px !important;
	margin-left: max(0px, calc((100% - 1200px) / 2)) !important;
	margin-right: auto !important;
	opacity: 0.88;
}
.sf-page-hero .sf-eyebrow { color: #7FB2F0; }
.sf-landing .wp-block-post-content > .sf-lift { margin-block-start: calc(-1 * var(--wp--preset--spacing--70)); position: relative; z-index: 1; }
.sf-card {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	padding: var(--wp--preset--spacing--60);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 30px rgba(15, 23, 42, 0.06);
}
.sf-card p { margin: 0; }
.sf-card p + p { margin-top: var(--wp--preset--spacing--20); }
.sf-card p:not(.sf-eyebrow) { font-weight: 600; }
.sf-card--form p:not(.sf-eyebrow) { font-weight: 400; }

.sf-icon::before {
	content: ""; display: block; width: 48px; height: 48px; border-radius: 50%;
	background: var(--wp--preset--color--surface) center / 24px no-repeat;
	margin-bottom: var(--wp--preset--spacing--40);
}
.sf-icon--role::before { background-image: url("../images/icon-role.svg"); }
.sf-icon--focus::before { background-image: url("../images/icon-focus.svg"); }
.sf-icon--experience::before { background-image: url("../images/icon-experience.svg"); }
.sf-icon--newsletter::before { background-image: url("../images/icon-newsletter.svg"); }
.sf-icon--edit::before { background-image: url("../images/icon-edit.svg"); }
.sf-icon--idea::before { background-image: url("../images/icon-idea.svg"); }

.sf-contact-aside { display: flex; flex-direction: column; gap: var(--wp--preset--spacing--40); }
.sf-contact-aside .sf-card { display: grid; grid-template-columns: 48px 1fr; column-gap: var(--wp--preset--spacing--40); align-items: start; padding: var(--wp--preset--spacing--50); box-shadow: none; }
.sf-contact-aside .sf-icon::before { grid-row: 1 / 3; margin: 0; }
.sf-contact-aside .sf-card p + p { margin-top: var(--wp--preset--spacing--10); }

.sf-pullquote { position: relative; border: 0 !important; margin: 0; padding: 0 0 0 var(--wp--preset--spacing--60) !important; }
.sf-pullquote::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, #d9342b, #d4a300, #2fae4e, #1ba3d6, #1f5fbf); }
.sf-pullquote p { font-size: var(--wp--preset--font-size--x-large); font-weight: 600; line-height: 1.3; }

.sf-section-title { margin-bottom: calc(-1 * var(--wp--preset--spacing--50)); }

.sf-cta { background-image: url("../images/mesh-pattern.svg"); }
.sf-cta p { margin: 0; opacity: 0.88; }
.sf-cta .wp-block-button__link { background-color: var(--wp--preset--color--base) !important; color: var(--wp--preset--color--contrast) !important; }
.sf-cta .wp-block-button__link:hover { background-color: var(--wp--preset--color--surface) !important; }

@media (max-width: 781px) {
	/* The first tile already shows the topic illustration right below. */
	.sf-category-header__visual { display: none; }
}

/* Newsletter form: room for the full placeholder. */
.sf-band__form { flex: 1 1 380px; max-width: 480px; }
.sf-band__form .fluentform, .sf-band__form form { width: 100%; }
.sf-band__form .ff-el-form-control { min-width: 0; width: 100%; }
.sf-band__form .ff-t-container { gap: var(--wp--preset--spacing--30); }
.sf-band__form .ff-t-cell:first-child { flex: 2 1 auto; }
.sf-band__form .ff-t-cell:last-child { flex: 0 0 auto; }

/* Article: readable text column, sidebar with ad slot and topic navigation. */
.sf-article { margin-top: var(--wp--preset--spacing--50) !important; }
.sf-article__main .wp-block-post-featured-image { margin-top: 0; }
.sf-sidebar__sticky { position: sticky; top: var(--wp--preset--spacing--60); display: flex; flex-direction: column; gap: var(--wp--preset--spacing--50); }
.sf-topics-nav { box-shadow: none; padding: var(--wp--preset--spacing--50); }
.sf-topics-nav ul { list-style: none; margin: var(--wp--preset--spacing--30) 0 0; padding: 0; }
.sf-topics-nav li { border-top: 1px solid var(--wp--preset--color--border); }
.sf-topics-nav li a { display: block; padding: var(--wp--preset--spacing--30) 0; font-weight: 600; text-decoration: none; }
.sf-topics-nav li a:hover { text-decoration: underline; }

/* Header: brand accent line, livelier links, Contact as a button. */
.sf-header { position: relative; border-bottom: 1px solid var(--wp--preset--color--border); }
.sf-header::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, #1f5fbf, #1ba3d6, #2fae4e, #d4a300, #d9342b); }
/* A dark banner sits flush under the header: no stray rule, no white gap. */
.wp-site-blocks > * { margin-block-start: 0; }
body:has(.sf-hero, .sf-page-hero, .sf-category-hero) .sf-header { border-bottom-color: transparent; }
.sf-nav:not(.is-menu-open) .wp-block-navigation__container { column-gap: 18px; }
.sf-nav .wp-block-navigation-item__content { position: relative; font-weight: 500; padding: 6px 0; }
.sf-nav .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
	background: linear-gradient(90deg, #1f5fbf, #1ba3d6, #2fae4e, #d4a300, #d9342b);
	transform: scaleX(0); transform-origin: left; transition: transform 0.2s ease;
}
.sf-nav .wp-block-navigation-item__content:hover::after, .sf-nav .wp-block-navigation-item__content[aria-current="page"]::after { transform: scaleX(1); }
.sf-nav .wp-block-navigation-item__content:hover, .sf-nav a[aria-current="page"] { text-decoration: none !important; }
.sf-nav .sf-nav-cta .wp-block-navigation-item__content {
	border: 1.5px solid var(--wp--preset--color--primary); color: var(--wp--preset--color--primary) !important;
	padding: 6px 16px; border-radius: 2px; font-weight: 600;
}
.sf-nav .sf-nav-cta .wp-block-navigation-item__content::after { display: none; }
.sf-nav .sf-nav-cta .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--base) !important; }

/* Mobile menu: full-screen dark panel, large left-aligned items. */
.sf-nav .wp-block-navigation__responsive-container.is-menu-open { background-image: url("../images/mesh-pattern.svg"); padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50); }
.sf-nav .is-menu-open .wp-block-navigation__responsive-container-content,
.sf-nav .is-menu-open .wp-block-navigation__container { align-items: stretch !important; width: 100%; gap: 0 !important; }
.sf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.sf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { box-sizing: border-box; font-size: var(--wp--preset--font-size--large); font-weight: 600; padding: var(--wp--preset--spacing--40) 0 !important; width: 100%; }
.sf-nav .is-menu-open .wp-block-navigation-item__content::after { display: none; }
.sf-nav .is-menu-open .sf-nav-cta { border-bottom: 0; margin-top: var(--wp--preset--spacing--50); }
.sf-nav .wp-block-navigation__responsive-container.is-menu-open .sf-nav-cta .wp-block-navigation-item__content { text-align: center; justify-content: center; padding: var(--wp--preset--spacing--40) !important; }
.sf-nav .wp-block-navigation__responsive-container-open svg, .sf-nav .wp-block-navigation__responsive-container-close svg { width: 30px; height: 30px; }

@media (max-width: 781px) {
	.sf-sidebar__sticky { position: static; }
}

/* Footer: link columns and a dark closing bar. */
.sf-footer .sf-eyebrow { margin-bottom: var(--wp--preset--spacing--30); }
.sf-footer-nav { gap: var(--wp--preset--spacing--20) !important; font-weight: 400; }
.sf-footer-nav a:hover { color: var(--wp--preset--color--primary); }
.sf-footer__bar { column-gap: var(--wp--preset--spacing--50) !important; row-gap: var(--wp--preset--spacing--10) !important; }
.sf-footer__bar p { margin: 0; opacity: 0.8; }
.sf-footer__bar a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.sf-footer__bar p + p::before { content: "·"; margin-right: var(--wp--preset--spacing--50); opacity: 0.6; }
@media (max-width: 600px) { .sf-footer__bar { flex-direction: column; } .sf-footer__bar p + p::before { display: none; } }

/* Author block with an initials avatar ringed in the stress gradient. */
.sf-author-bio { border-top: 1px solid var(--wp--preset--color--border); padding-top: var(--wp--preset--spacing--50); margin-top: var(--wp--preset--spacing--60); }
.sf-author-bio p { margin: 0; }
.sf-avatar {
	flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
	font-weight: 700; font-style: italic; letter-spacing: 0.02em; color: var(--wp--preset--color--primary);
	background: linear-gradient(var(--wp--preset--color--base), var(--wp--preset--color--base)) padding-box,
		linear-gradient(135deg, #1f5fbf, #1ba3d6, #2fae4e, #d4a300, #d9342b) border-box;
	border: 3px solid transparent;
}
.sf-author-bio__name { font-weight: 600; font-size: var(--wp--preset--font-size--large); }

/* Icons in front of topic links. */
.sf-li-icon a { display: flex !important; align-items: center; gap: var(--wp--preset--spacing--30); }
.sf-li-icon a::before { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--wp--preset--color--surface) center / 18px no-repeat; }
.sf-li-icon--beam a::before { background-image: url("../images/icon-beam.svg"); }
.sf-li-icon--mesh a::before { background-image: url("../images/icon-mesh.svg"); }
.sf-li-icon--bolt a::before { background-image: url("../images/icon-bolt.svg"); }
.sf-li-icon--references a::before { background-image: url("../images/icon-references.svg"); }

/* Homepage hub: compact previews with thumbnail, title, snippet and date. */
.sf-mini { align-items: flex-start !important; }
.sf-mini .wp-block-post-featured-image { flex: none; margin: 0; }
.sf-mini .wp-block-post-featured-image img { width: 64px; height: 64px; object-fit: cover; }
.sf-mini .sf-featured-fallback { padding: 6px; border: 1px solid var(--wp--preset--color--border); }
.sf-mini .sf-featured-fallback img { object-fit: contain; }
.sf-mini .wp-block-post-title { font-weight: 600; line-height: 1.35; }
.sf-mini .wp-block-post-title a { color: var(--wp--preset--color--contrast); }
.sf-mini .wp-block-post-title a:hover { color: var(--wp--preset--color--primary); }
.sf-mini .wp-block-post-excerpt { margin: 0; color: var(--wp--preset--color--muted); }
.sf-mini .wp-block-post-excerpt__excerpt { margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sf-mini .wp-block-post-date { color: var(--wp--preset--color--muted); }

/* Archive toolbar: segmented sort control. */
.sf-toolbar { margin-bottom: var(--wp--preset--spacing--50); }
.sf-sort { display: inline-flex; align-items: center; gap: 0; margin: 0; border: 1px solid var(--wp--preset--color--border); }
.sf-sort span { padding: 6px 12px; color: var(--wp--preset--color--muted); border-right: 1px solid var(--wp--preset--color--border); }
.sf-sort a { padding: 6px 14px; text-decoration: none; color: var(--wp--preset--color--contrast); }
.sf-sort a + a { border-left: 1px solid var(--wp--preset--color--border); }
.sf-sort a:hover { background: var(--wp--preset--color--surface); }
.sf-sort a.is-active { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--base); }

/* Pagination as square buttons. */
.wp-block-query-pagination { margin-top: var(--wp--preset--spacing--70); gap: var(--wp--preset--spacing--20); }
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px;
	border: 1px solid var(--wp--preset--color--border); text-decoration: none; color: var(--wp--preset--color--contrast);
}
.wp-block-query-pagination .page-numbers.current { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--base); }
.wp-block-query-pagination a:hover { border-color: var(--wp--preset--color--primary); }

/* Bands: keep the text clear of the form. */
.sf-band { column-gap: var(--wp--preset--spacing--70) !important; }
.sf-band > .wp-block-group:first-child { flex: 1 1 360px; max-width: 580px; }

/* ===== Technical metadata, shared ===== */
.sf-meta, .sf-byline, .sf-ref, .sf-tile .wp-block-post-terms, .sf-readouts, .sf-hero-tagline {
	font-family: var(--wp--preset--font-family--mono); text-transform: uppercase; letter-spacing: 0.08em;
	font-size: 0.78rem !important;
}
.sf-meta, .sf-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; color: var(--wp--preset--color--muted); }
.sf-meta__sep { opacity: 0.5; }

/* ===== Topic hero: reference label, readouts, corner tagline ===== */
.sf-category-hero { min-height: 440px !important; }
.sf-category-hero .sf-readouts { display: flex; flex-wrap: wrap; gap: 0; margin-top: var(--wp--preset--spacing--50) !important; padding-top: var(--wp--preset--spacing--40); border-top: 1px solid rgba(255, 255, 255, 0.2); }
.sf-category-hero .sf-readouts span { padding-right: var(--wp--preset--spacing--50); margin-right: var(--wp--preset--spacing--50); border-right: 1px solid rgba(255, 255, 255, 0.2); opacity: 0.9; }
.sf-category-hero .sf-readouts span:last-child { border-right: 0; }
.sf-category-hero .sf-readouts strong { display: block; font-size: 1.1rem; font-weight: 500; letter-spacing: 0.04em; }
.sf-hero-tagline { position: absolute; top: var(--wp--preset--spacing--60); right: var(--wp--preset--spacing--60); margin: 0 !important; text-align: right; line-height: 1.6; opacity: 0.75; max-width: none !important; }
@media (max-width: 900px) { .sf-hero-tagline { display: none; } }

/* ===== Archives: a featured article, then an indexed list =====
   First page in default order: the newest article is featured. Everything else is a row,
   like an entry in a reference index. Rows scale from one article to hundreds without orphans. */
.sf-archive .wp-block-post-template > li { margin-block-start: 0; }
.sf-tile .wp-block-read-more { display: none; }

.sf-first-page .sf-archive li:first-child .sf-tile { flex-direction: row !important; position: relative; }
.sf-first-page .sf-archive li:first-child .sf-tile::before { content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 4px; background: linear-gradient(90deg, #1f5fbf, #1ba3d6, #2fae4e, #d4a300, #d9342b); z-index: 1; }
.sf-first-page .sf-archive li:first-child .sf-tile:hover { transform: none; }
.sf-first-page .sf-archive li:first-child .sf-tile > .wp-block-post-featured-image { flex: 0 0 55%; border-bottom: 0; border-right: 1px solid var(--wp--preset--color--border); aspect-ratio: 16 / 9; }
.sf-first-page .sf-archive li:first-child .sf-tile__body { justify-content: center; padding: var(--wp--preset--spacing--70); }
.sf-first-page .sf-archive li:first-child .sf-tile__body::before { content: "Featured"; font-family: var(--wp--preset--font-family--mono); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; color: #fff; background: var(--wp--preset--color--primary); padding: 4px 10px; align-self: flex-start; margin-bottom: var(--wp--preset--spacing--20); }
.sf-first-page .sf-archive li:first-child .wp-block-post-title { font-size: var(--wp--preset--font-size--x-large) !important; }
/* "Read article" button on every archive entry. The whole entry is clickable through it. */
.sf-archive .sf-tile { position: relative; }
.sf-archive .sf-tile .wp-block-read-more { display: inline-flex; align-self: flex-start; justify-self: start; margin-top: var(--wp--preset--spacing--30); padding: 10px 18px; border: 1px solid var(--wp--preset--color--primary); color: var(--wp--preset--color--primary); background: var(--wp--preset--color--base); line-height: 1.2; transition: background-color 0.15s, color 0.15s; }
.sf-archive .sf-tile .wp-block-read-more::after { content: ""; position: absolute; inset: 0; }
.sf-archive .sf-tile:hover .wp-block-read-more, .sf-archive .sf-tile .wp-block-read-more:focus-visible { background: var(--wp--preset--color--primary); color: #fff; }
.sf-first-page .sf-archive li:first-child .wp-block-read-more { background: var(--wp--preset--color--primary) !important; color: #fff !important; }
.sf-first-page .sf-archive li:first-child .sf-tile:hover .wp-block-read-more { background: var(--wp--preset--color--primary-dark) !important; border-color: var(--wp--preset--color--primary-dark); }
.sf-first-page .sf-archive li:first-child + li { margin-top: var(--wp--preset--spacing--80); }
.sf-first-page .sf-archive li:first-child + li::before { content: "More articles"; display: block; font-family: var(--wp--preset--font-family--mono); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; color: var(--wp--preset--color--muted); padding-bottom: var(--wp--preset--spacing--30); }

:is(body:not(.sf-first-page) .sf-archive li, .sf-archive li + li) .sf-tile { display: grid !important; grid-template-columns: minmax(0, 1fr) 280px; column-gap: var(--wp--preset--spacing--70); align-items: center; background: none; border: 0; border-top: 1px solid var(--wp--preset--color--border); padding: var(--wp--preset--spacing--60) 0; }
:is(body:not(.sf-first-page) .sf-archive li, .sf-archive li + li):last-child .sf-tile { border-bottom: 1px solid var(--wp--preset--color--border); }
:is(body:not(.sf-first-page) .sf-archive li, .sf-archive li + li) .sf-tile:hover { transform: none; }
:is(body:not(.sf-first-page) .sf-archive li, .sf-archive li + li) .sf-tile > .wp-block-post-featured-image { grid-column: 2; grid-row: 1; aspect-ratio: 16 / 9 !important; border: 1px solid var(--wp--preset--color--border); transition: border-color 0.15s; }
:is(body:not(.sf-first-page) .sf-archive li, .sf-archive li + li) .sf-tile:hover > .wp-block-post-featured-image { border-color: var(--wp--preset--color--primary); }
:is(body:not(.sf-first-page) .sf-archive li, .sf-archive li + li) .sf-tile > .sf-featured-fallback { padding: var(--wp--preset--spacing--30); }
:is(body:not(.sf-first-page) .sf-archive li, .sf-archive li + li) .sf-tile__body { grid-column: 1; grid-row: 1; padding: 0; }
:is(body:not(.sf-first-page) .sf-archive li, .sf-archive li + li) .sf-tile > .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
:is(body:not(.sf-first-page) .sf-archive li, .sf-archive li + li) .sf-tile:hover .wp-block-post-title a { color: var(--wp--preset--color--primary); }
:is(body:not(.sf-first-page) .sf-archive li, .sf-archive li + li) .wp-block-post-excerpt { max-width: 62ch; }

@media (max-width: 781px) {
	.sf-first-page .sf-archive li:first-child .sf-tile { flex-direction: column !important; }
	.sf-first-page .sf-archive li:first-child .sf-tile > .wp-block-post-featured-image { flex-basis: auto; border-right: 0; border-bottom: 1px solid var(--wp--preset--color--border); }
	.sf-first-page .sf-archive li:first-child .sf-tile__body { padding: var(--wp--preset--spacing--50); }
	.sf-first-page .sf-archive li:first-child + li { margin-top: var(--wp--preset--spacing--70); }
	/* Body children join the row grid: label on top, title beside a small thumbnail, then excerpt and meta at full width. */
	:is(body:not(.sf-first-page) .sf-archive li, .sf-archive li + li) .sf-tile { grid-template-columns: minmax(0, 1fr) 76px; column-gap: var(--wp--preset--spacing--40); row-gap: var(--wp--preset--spacing--20); align-items: start; padding: var(--wp--preset--spacing--50) 0; }
	:is(body:not(.sf-first-page) .sf-archive li, .sf-archive li + li) .sf-tile__body { display: contents; }
	:is(body:not(.sf-first-page) .sf-archive li, .sf-archive li + li) .sf-tile__body > * { grid-column: 1 / -1; margin: 0 !important; }
	:is(body:not(.sf-first-page) .sf-archive li, .sf-archive li + li) .sf-tile__body > .wp-block-post-terms { grid-row: 1; }
	:is(body:not(.sf-first-page) .sf-archive li, .sf-archive li + li) .sf-tile__body > .wp-block-post-title { grid-column: 1; grid-row: 2; font-size: var(--wp--preset--font-size--lead) !important; }
	:is(body:not(.sf-first-page) .sf-archive li, .sf-archive li + li) .sf-tile > .wp-block-post-featured-image { grid-row: 2 / span 2; aspect-ratio: 1 / 1 !important; }
	:is(body:not(.sf-first-page) .sf-archive li, .sf-archive li + li) .sf-tile__body > .wp-block-post-excerpt { grid-column: 1; grid-row: 3; }
	:is(body:not(.sf-first-page) .sf-archive li, .sf-archive li + li) .sf-tile__body > .wp-block-post-date { grid-row: 4; }
	:is(body:not(.sf-first-page) .sf-archive li, .sf-archive li + li) .sf-tile__body > .wp-block-read-more { grid-row: 5; }
	:is(body:not(.sf-first-page) .sf-archive li, .sf-archive li + li) .sf-tile > .sf-featured-fallback { padding: 8px; }
}
.sf-toolbar .sf-sort span { font-family: var(--wp--preset--font-family--mono); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; }

/* ===== Article hero ===== */
.sf-article-hero { background-image: url("../images/mesh-pattern.svg"); position: relative; }
.sf-article-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, #1f5fbf, #1ba3d6, #2fae4e, #d4a300, #d9342b); }
.sf-article-hero .wp-block-breadcrumbs, .sf-article-hero .wp-block-breadcrumbs a { color: rgba(255, 255, 255, 0.75); }
.sf-article-hero .sf-ref { color: #7FB2F0; margin-top: var(--wp--preset--spacing--50); }
.sf-article-hero h1 { margin: var(--wp--preset--spacing--20) 0 var(--wp--preset--spacing--30); }
.sf-article-hero__lead p { margin: 0; opacity: 0.88; }
.sf-article-hero .sf-byline { color: rgba(255, 255, 255, 0.75); margin-top: var(--wp--preset--spacing--50); padding-top: var(--wp--preset--spacing--40); border-top: 1px solid rgba(255, 255, 255, 0.2); }
.sf-article-hero__visual { margin: 0; border: 1px solid rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.04); }
.sf-article-hero__visual.sf-featured-fallback { background: #fff; padding: var(--wp--preset--spacing--50); }
/* Author figures are diagrams with labels and legends: show the whole image, never crop it. */
.sf-article-hero__visual:not(.sf-featured-fallback) { border: 0; background: none; }
.sf-article-hero__visual:not(.sf-featured-fallback) img { display: block; margin-inline: auto; width: auto; max-width: 100%; height: auto; max-height: 460px; border: 1px solid rgba(255, 255, 255, 0.15); }

/* ===== Article body: table of contents, numbered sections, sidebar ===== */
.sf-article { align-items: flex-start !important; }
.sf-toc-col, .sf-sidebar { align-self: stretch; }
.sf-toc { position: sticky; top: var(--wp--preset--spacing--60); }
.sf-toc summary { font-family: var(--wp--preset--font-family--mono); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; font-weight: 500; cursor: pointer; padding-bottom: var(--wp--preset--spacing--30); list-style: none; }
.sf-toc summary::-webkit-details-marker { display: none; }
.sf-toc ol { list-style: none; margin: 0; padding: 0; }
.sf-toc li { border-top: 1px solid var(--wp--preset--color--border); }
.sf-toc a { display: flex; gap: 10px; padding: 10px 0 10px 12px; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); text-decoration: none; border-left: 2px solid transparent; line-height: 1.4; }
.sf-toc a span { flex: none; white-space: nowrap; font-family: var(--wp--preset--font-family--mono); color: var(--wp--preset--color--primary); }
.sf-toc a:hover, .sf-toc a.is-active { color: var(--wp--preset--color--contrast); }
.sf-toc a.is-active { border-image: linear-gradient(180deg, #1f5fbf, #2fae4e, #d9342b) 1; border-left-width: 2px; border-left-style: solid; }
.sf-toc-col--empty { display: none; }

.sf-article__main .wp-block-post-content { counter-reset: sfsec; }
.sf-article__main .wp-block-post-content > h2 { counter-increment: sfsec; display: flex; gap: 14px; align-items: baseline; margin-top: var(--wp--preset--spacing--70); }
.sf-article__main .wp-block-post-content > h2::before { content: counter(sfsec, decimal-leading-zero); font-family: var(--wp--preset--font-family--mono); font-weight: 500; font-size: 0.7em; color: var(--wp--preset--color--primary); }

.sf-sidebar .sf-author-bio { border: 1px solid var(--wp--preset--color--border); padding: var(--wp--preset--spacing--50); margin: 0; flex-direction: column; }
.sf-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1000; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #1f5fbf, #1ba3d6, #2fae4e, #d4a300, #d9342b); }

@media (max-width: 1099px) {
	.sf-article { flex-wrap: wrap !important; }
	.sf-toc-col { flex-basis: 100% !important; }
	.sf-toc { position: static; border: 1px solid var(--wp--preset--color--border); padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40); }
	.sf-toc summary { padding: 0; }
	.sf-toc details[open] summary { padding-bottom: var(--wp--preset--spacing--30); }
	.sf-article__main { flex-basis: calc(100% - 340px) !important; }
}
@media (max-width: 781px) { .sf-article__main { flex-basis: 100% !important; } }

/* ===== Previous and next article ===== */
.sf-post-nav { gap: var(--wp--preset--spacing--40); margin-top: var(--wp--preset--spacing--70) !important; }
.sf-post-nav .wp-block-post-navigation-link { border: 1px solid var(--wp--preset--color--border); padding: var(--wp--preset--spacing--50); font-weight: 600; }
.sf-post-nav .wp-block-post-navigation-link:empty { display: none; }
.sf-post-nav .post-navigation-link-next { text-align: right; }
.sf-post-nav .wp-block-post-navigation-link::before { display: block; font-family: var(--wp--preset--font-family--mono); font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; color: var(--wp--preset--color--muted); margin-bottom: 6px; }
.sf-post-nav .post-navigation-link-previous::before { content: "Previous article"; }
.sf-post-nav .post-navigation-link-next::before { content: "Next article"; }
.sf-post-nav a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.sf-post-nav .wp-block-post-navigation-link:hover { border-color: var(--wp--preset--color--primary); }
.sf-section-heading { margin-top: var(--wp--preset--spacing--70) !important; }

/* ===== Content blocks for articles ===== */
.sf-glance { border: 1px solid var(--wp--preset--color--border); background: var(--wp--preset--color--surface); padding: var(--wp--preset--spacing--50); }
.sf-glance .wp-block-columns { margin-bottom: 0; gap: var(--wp--preset--spacing--50); }
.sf-glance__label { font-weight: 600; margin: 0; }
.sf-glance ul { margin: 6px 0 0; padding-left: 1.1em; font-size: var(--wp--preset--font-size--small); }

.sf-equation { border: 1px solid var(--wp--preset--color--border); border-left: 3px solid var(--wp--preset--color--primary); padding: var(--wp--preset--spacing--50); background: var(--wp--preset--color--base); }
.sf-equation__formula { font-family: var(--wp--preset--font-family--mono); font-size: var(--wp--preset--font-size--large); margin: var(--wp--preset--spacing--30) 0; }
.sf-equation__image { margin: var(--wp--preset--spacing--30) 0; }
.sf-equation__legend { font-family: var(--wp--preset--font-family--mono); font-size: 0.8rem; color: var(--wp--preset--color--muted); list-style: none; padding: 0; margin: 0; }

.sf-note { border: 1px solid #C9DCF3; background: #EFF5FC; padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50) var(--wp--preset--spacing--40) 56px; position: relative; }
.sf-note::before { content: "i"; position: absolute; left: 16px; top: var(--wp--preset--spacing--40); width: 24px; height: 24px; border-radius: 50%; background: var(--wp--preset--color--primary); color: #fff; font-weight: 700; font-style: italic; font-family: Georgia, serif; display: grid; place-items: center; font-size: 14px; }
.sf-note p { margin: 0; font-size: var(--wp--preset--font-size--small); }

/* Drawing frame: double rule and a title block under the caption. */
.wp-block-image.is-style-drawing { border: 1px solid var(--wp--preset--color--contrast); outline: 1px solid var(--wp--preset--color--border); outline-offset: 4px; padding: var(--wp--preset--spacing--40); background: #fff; }
.wp-block-image.is-style-drawing figcaption { font-family: var(--wp--preset--font-family--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--wp--preset--color--contrast); margin: var(--wp--preset--spacing--40) calc(-1 * var(--wp--preset--spacing--40)) calc(-1 * var(--wp--preset--spacing--40)); padding: 10px var(--wp--preset--spacing--40); border-top: 1px solid var(--wp--preset--color--contrast); display: flex; justify-content: space-between; gap: 12px; }
.wp-block-image.is-style-drawing figcaption::after { content: "Stress FEA · Rev A"; color: var(--wp--preset--color--muted); white-space: nowrap; }

/* ===== Dark newsletter band ===== */
.sf-band--dark { background-image: url("../images/mesh-pattern.svg"); position: relative; }
.sf-band--dark .sf-band__text { border-left: 3px solid; border-image: linear-gradient(180deg, #1f5fbf, #2fae4e, #d9342b) 1; padding-left: var(--wp--preset--spacing--50); flex: 1 1 380px; max-width: 580px; }
.sf-band--dark .sf-band__text p { margin: 0; opacity: 0.85; }
.sf-band--dark .sf-eyebrow { color: #7FB2F0; margin: 0; }
.sf-band--dark .sf-band__fineprint { opacity: 0.65; margin: 0; }
.sf-band--dark h2 { font-size: var(--wp--preset--font-size--x-large); margin: 0; }

@media (max-width: 600px) {
	/* Keep the menu button on the same row as the logo. */
	.sf-header > .alignwide { flex-wrap: nowrap !important; }
}

/* Table of contents links glide to their section, unless the reader prefers reduced motion. */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.sf-article__main .wp-block-post-content > h2 { scroll-margin-top: var(--wp--preset--spacing--60); }

/* ===== Full-width sections: stacked bands touch, so their backgrounds alternate cleanly ===== */
.sf-section + .sf-section { margin-block-start: 0 !important; }
.sf-section--refs .sf-band__icon { background: var(--wp--preset--color--surface); }
:not(.sf-section) + .sf-section { margin-block-start: var(--wp--preset--spacing--80) !important; }
main > .sf-section:last-child { margin-block-end: 0; }
/* A page that ends on a full-width band runs straight into the footer. */
main:has(> .sf-section:last-child) + footer .sf-footer { margin-top: 0 !important; border-top: 0; }
/* Author spec sheet beside the homepage quote: monospace labels, thin rules. */
.sf-spec { border-top: 1px solid var(--wp--preset--color--border); }
.sf-spec p { margin: 0 !important; padding: var(--wp--preset--spacing--30) 0; border-bottom: 1px solid var(--wp--preset--color--border); font-weight: 600; }
.sf-spec p span { display: block; font-family: var(--wp--preset--font-family--mono); font-weight: 400; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; color: var(--wp--preset--color--muted); margin-bottom: 2px; }

/* ===== References page: numbered cards, one per kind of reference ===== */
.sf-icon--references::before { background-image: url("../images/icon-references.svg"); }
.sf-icon--book::before { background-image: url("../images/icon-book.svg"); }
.sf-icon--material::before { background-image: url("../images/icon-material.svg"); }
.sf-icon--tool::before { background-image: url("../images/icon-tool.svg"); }
.sf-ref-grid { gap: var(--wp--preset--spacing--50); }
.sf-ref-card { display: flex; flex-direction: column; }
.sf-ref-card h2 { font-size: var(--wp--preset--font-size--large); margin: var(--wp--preset--spacing--20) 0 var(--wp--preset--spacing--20); }
.sf-card p.sf-ref-card__desc { font-weight: 400; color: var(--wp--preset--color--muted); }
.sf-card p.sf-ref-card__empty { margin-top: auto; padding-top: var(--wp--preset--spacing--50); font-weight: 400; font-family: var(--wp--preset--font-family--mono); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; color: var(--wp--preset--color--muted); }
.sf-ref-card__empty::before { content: ""; display: block; border-top: 1px dashed var(--wp--preset--color--border); margin-bottom: var(--wp--preset--spacing--30); }
/* Links Thai adds as a list inside a card. */
.sf-ref-card ul { list-style: none; margin: var(--wp--preset--spacing--40) 0 0; padding: 0; border-top: 1px solid var(--wp--preset--color--border); }
.sf-ref-card li { padding: var(--wp--preset--spacing--20) 0; border-bottom: 1px solid var(--wp--preset--color--border); }
.sf-ref-card li a { font-weight: 600; text-decoration: none; }
.sf-ref-card li a::after { content: " ↗"; font-weight: 400; }
.sf-ref-card li a:hover { text-decoration: underline; }
.sf-ref-disclaimer { max-width: 1200px; }

/* ===== Cookie banner: a wide card centred at the bottom, text beside the buttons; stacked on phones ===== */
.sf-consent { position: fixed; z-index: 100; left: 50%; bottom: var(--wp--preset--spacing--50); transform: translateX(-50%); width: min(820px, calc(100% - 2 * var(--wp--preset--spacing--50))); box-sizing: border-box; display: flex; align-items: center; gap: var(--wp--preset--spacing--50); padding: var(--wp--preset--spacing--50); background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); border: 1px solid var(--wp--preset--color--border); border-top: 3px solid var(--wp--preset--color--primary); box-shadow: 0 12px 32px rgba(10, 20, 40, 0.18); font-size: var(--wp--preset--font-size--small); line-height: 1.5; }
.sf-consent[hidden] { display: none; }
.sf-consent__text { margin: 0; flex: 1; }
.sf-consent__text a { color: var(--wp--preset--color--primary); text-underline-offset: 3px; white-space: nowrap; }
.sf-consent__actions { display: flex; gap: var(--wp--preset--spacing--30); flex-shrink: 0; }
.sf-consent__btn { min-width: 130px; cursor: pointer; font: inherit; font-weight: 600; padding: 0.7em 1.2em; border: 1px solid var(--wp--preset--color--contrast); background: transparent; color: var(--wp--preset--color--contrast); }
.sf-consent__btn:hover { background: var(--wp--preset--color--surface); }
.sf-consent__btn--accept { border-color: var(--wp--preset--color--primary); background: var(--wp--preset--color--primary); color: var(--wp--preset--color--base); }
.sf-consent__btn--accept:hover { border-color: var(--wp--preset--color--primary-dark); background: var(--wp--preset--color--primary-dark); }
.sf-consent__btn:focus-visible { outline: 2px solid var(--wp--preset--color--primary); outline-offset: 2px; }
@media (max-width: 700px) {
	.sf-consent { flex-direction: column; align-items: stretch; left: 0; bottom: 0; transform: none; width: 100%; border-left: 0; border-right: 0; }
	.sf-consent__btn { flex: 1; min-width: 0; }
}
/* Reference entries: name on the first line, authors or full title below in muted text. */
.sf-ref-card li { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); line-height: 1.5; }
.sf-ref-card li strong, .sf-ref-card li > a:first-child { font-size: 1rem; font-weight: 600; }
.sf-ref-card li strong { color: var(--wp--preset--color--contrast); }
