/*
Theme Name: SF Shastras 2026
Theme URI: https://salesforceshastras.com
Author: Abhishek Verma
Author URI: https://salesforceshastras.com/about-me/
Description: A fast, accessible block theme for SF Shastras (salesforceshastras.com) — the learning hub for Salesforce, Financial Services Cloud and Agentforce. Magazine-style latest posts, sidebar with award badge, FINSforce video widget, reading progress, copy-to-clipboard code blocks and zero page-builder bloat.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.5.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shastras-2026
Tags: blog, education, full-site-editing, block-patterns, wide-blocks, style-variations, accessibility-ready, custom-colors, editor-style
*/

/* Light mode only */
html { color-scheme: light; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-optical-sizing: auto; }
::selection { background: color-mix(in srgb, var(--wp--preset--color--primary) 25%, transparent); }
:where(a, button, input, summary):focus-visible { outline: 2px solid var(--wp--preset--color--primary); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header ---------- */
.ss-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--wp--preset--color--base) 78%, transparent);
	backdrop-filter: saturate(160%) blur(14px);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--border) 70%, transparent);
}
.admin-bar .ss-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ss-header { top: 46px; } }
.ss-header__inner { padding-top: .8rem; padding-bottom: .8rem; }
.ss-brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--wp--preset--color--contrast); }
.ss-brand svg { width: 46px; height: 46px; flex: none; margin: -4px 0; }
.ss-brand__text { display: flex; flex-direction: column; line-height: 1; }
.ss-brand__eyebrow { font-size: .58rem; font-weight: 650; letter-spacing: .22em; color: var(--wp--preset--color--muted); }
.ss-brand__name { font-family: var(--wp--preset--font-family--heading); font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; }
.ss-brand__name em { font-style: normal; color: var(--wp--preset--color--primary); }
.ss-brand__tag { font-size: .52rem; font-weight: 600; letter-spacing: .2em; color: var(--wp--preset--color--muted); margin-top: .3rem; text-transform: uppercase; }
.ss-header .wp-block-navigation a:hover { color: var(--wp--preset--color--primary); }
.ss-header .wp-block-navigation__submenu-container { border-radius: var(--wp--custom--radius--md); border: 1px solid var(--wp--preset--color--border) !important; background: var(--wp--preset--color--surface) !important; padding: .4rem; box-shadow: var(--wp--preset--shadow--soft); }
.ss-icon-btn {
	display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
	border: 1px solid var(--wp--preset--color--border); background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast); cursor: pointer; transition: var(--wp--custom--transition);
}
.ss-icon-btn:hover { border-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--primary); }
.ss-icon-btn svg { width: 18px; height: 18px; }
.ss-header .wp-block-search__button { border-radius: 999px; }

/* Reading progress */
.ss-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.ss-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--wp--preset--gradient--brand); }

/* ---------- Hero ---------- */
.ss-hero { position: relative; overflow: hidden; background: var(--wp--preset--gradient--aurora); }
.ss-eyebrow {
	display: inline-flex; align-items: center; gap: .5rem; font-size: var(--wp--preset--font-size--xs); font-weight: 600;
	padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--surface); color: var(--wp--preset--color--muted); width: fit-content;
}
.ss-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--wp--preset--color--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--wp--preset--color--primary) 18%, transparent); }
.ss-gradient-text { background: var(--wp--preset--gradient--brand); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.ss-lead { font-size: var(--wp--preset--font-size--lg); color: var(--wp--preset--color--muted); max-width: 40ch; line-height: 1.5; }
.ss-trust { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--sm); }
.ss-trust strong { color: var(--wp--preset--color--contrast); }

/* ---------- Buttons ---------- */
.wp-block-button__link { transition: var(--wp--custom--transition); }
.wp-block-button__link:hover { transform: translateY(-1px); box-shadow: var(--wp--preset--shadow--lift); }
.wp-block-button.is-style-outline > .wp-block-button__link { background: var(--wp--preset--color--surface); color: var(--wp--preset--color--contrast); border: 1px solid var(--wp--preset--color--border); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { border-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--primary); }
.wp-block-button.is-style-brand > .wp-block-button__link { background: var(--wp--preset--gradient--brand); color: #fff; }

/* ---------- Cards & bento ---------- */
.is-style-ss-card, .ss-card {
	background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--lg); padding: var(--wp--preset--spacing--40);
	transition: var(--wp--custom--transition); position: relative;
}
.ss-post-card { display: flex; flex-direction: column; gap: .6rem; height: 100%; }
.ss-post-card:hover, .is-style-ss-card:hover { border-color: color-mix(in srgb, var(--wp--preset--color--primary) 45%, var(--wp--preset--color--border)); box-shadow: var(--wp--preset--shadow--soft); transform: translateY(-2px); }
.ss-post-card .wp-block-post-featured-image { margin: 0 0 .4rem; overflow: hidden; border-radius: var(--wp--custom--radius--md); }
.ss-post-card .wp-block-post-featured-image img { transition: transform .5s ease; }
.ss-post-card:hover .wp-block-post-featured-image img { transform: scale(1.03); }
.ss-post-card .wp-block-post-title { font-size: var(--wp--preset--font-size--lg); line-height: 1.25; margin: 0; }
/* Whole card clickable via the title link */
.ss-post-card .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ss-post-card .wp-block-post-terms a { position: relative; z-index: 1; }
.ss-meta-row { font-size: var(--wp--preset--font-size--xs); color: var(--wp--preset--color--muted); }


/* Category pill */
.is-style-ss-pill a, .ss-pill a, .ss-chip {
	display: inline-block; font-size: .72rem; font-weight: 650; letter-spacing: .02em; text-decoration: none;
	padding: .28rem .65rem; border-radius: 999px;
	background: color-mix(in srgb, var(--wp--preset--color--primary) 10%, transparent); color: var(--wp--preset--color--primary);
}
.is-style-ss-pill .wp-block-post-terms__separator { display: none; }
.is-style-ss-pill a + a, .is-style-ss-pill a ~ a { margin-left: .3rem; }

/* Topic chips row */
.ss-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.ss-chips a {
	text-decoration: none; font-size: var(--wp--preset--font-size--sm); font-weight: 550; color: var(--wp--preset--color--contrast);
	padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--wp--preset--color--border); background: var(--wp--preset--color--surface);
	transition: var(--wp--custom--transition);
}
.ss-chips a:hover { border-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--primary); }

/* Learning paths */
.ss-paths { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.25rem; }
@media (max-width: 960px) { .ss-paths { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .ss-paths { grid-template-columns: 1fr; } }
.ss-path { display: flex; flex-direction: column; gap: .5rem; text-decoration: none; color: inherit; }
.ss-path__icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; background: var(--wp--preset--color--subtle); }
.ss-path h3 { font-size: var(--wp--preset--font-size--lg); margin: .4rem 0 0; }
.ss-path p { margin: 0; color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--sm); line-height: 1.55; }
.ss-path__go { margin-top: auto; padding-top: .6rem; font-weight: 650; font-size: var(--wp--preset--font-size--sm); color: var(--wp--preset--color--primary); }
.ss-path--feature { grid-column: span 2; background: var(--wp--preset--gradient--bodhi) !important; border: 0 !important; color: #fff; }
.ss-path--feature h3, .ss-path--feature p, .ss-path--feature .ss-path__go { color: #fff; }
.ss-path--feature .ss-path__icon { background: rgba(255,255,255,.16); }
@media (max-width: 600px) { .ss-path--feature { grid-column: auto; } }

/* FINSforce band */
.ss-video-band { background: #1C1712; color: #EEF1FB; border-radius: var(--wp--custom--radius--lg); overflow: hidden; position: relative; }
.ss-video-band::after { content: ""; position: absolute; inset: auto -10% -60% auto; width: 520px; height: 520px; background: radial-gradient(circle, rgba(234,106,10,.38), transparent 60%); pointer-events: none; }
.ss-video-band h2, .ss-video-band h3 { color: #fff; }
.ss-video-band p { color: #CFC4B4; }
.ss-video-band .wp-block-button__link { background: #FF3B3B; color: #fff; }
.ss-yt-embed iframe, .ss-video-band .wp-block-embed iframe { border-radius: var(--wp--custom--radius--md); }

/* Newsletter */
.ss-newsletter { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); border-radius: var(--wp--custom--radius--lg); background-image: var(--wp--preset--gradient--aurora); }
.ss-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.ss-form input[type="email"] { flex: 1 1 240px; padding: .85rem 1.1rem; border-radius: 999px; border: 1px solid var(--wp--preset--color--border); background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); font: inherit; font-size: var(--wp--preset--font-size--sm); }

/* ---------- Single post ---------- */
.ss-article-head .wp-block-post-title { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; }
.ss-byline { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; font-size: var(--wp--preset--font-size--sm); color: var(--wp--preset--color--muted); }
.ss-byline .wp-block-avatar img { border-radius: 999px; }
.ss-dot::before { content: "•"; opacity: .5; }
.entry-content > * + h2 { margin-top: 2.6em; }
.entry-content > * + h3 { margin-top: 2em; }
.entry-content h2, .entry-content h3 { scroll-margin-top: 90px; }
.entry-content :where(p, li) { font-size: 1.0625rem; }
.entry-content :not(pre) > code { font-family: var(--wp--preset--font-family--mono); font-size: .88em; padding: .12em .4em; border-radius: 6px; background: var(--wp--preset--color--subtle); color: var(--wp--preset--color--secondary); }
.entry-content table { border-collapse: separate; border-spacing: 0; border: 1px solid var(--wp--preset--color--border); border-radius: 12px; overflow: hidden; }
.entry-content th { background: var(--wp--preset--color--subtle); text-align: left; }
.entry-content th, .entry-content td { border: 0; border-bottom: 1px solid var(--wp--preset--color--border); padding: .7rem .9rem; }
.wp-block-code { position: relative; }
.ss-copy {
	position: absolute; top: .6rem; right: .6rem; font: 600 .72rem/1 var(--wp--preset--font-family--body); padding: .45rem .65rem;
	border-radius: 8px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #CBD2F0; cursor: pointer; opacity: 0; transition: var(--wp--custom--transition);
}
.wp-block-code:hover .ss-copy, .ss-copy:focus-visible { opacity: 1; }
.ss-toc { font-size: var(--wp--preset--font-size--sm); }
.ss-toc ol { padding-left: 1.1rem; margin: .4rem 0 0; }
.ss-toc a { color: var(--wp--preset--color--muted); text-decoration: none; }
.ss-toc a:hover { color: var(--wp--preset--color--primary); }
.ss-author { display: flex; gap: 1rem; align-items: flex-start; }
.ss-author .wp-block-avatar img { border-radius: 18px; }
.wp-block-post-navigation-link a { text-decoration: none; font-weight: 600; }
.wp-block-post-tags a { text-decoration: none; font-size: var(--wp--preset--font-size--xs); padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--wp--preset--color--border); color: var(--wp--preset--color--muted); }
.wp-block-post-tags .wp-block-post-terms__separator { display: none; }
.wp-block-post-tags a + a { margin-left: .35rem; }

/* Pagination */
.wp-block-query-pagination { gap: .4rem; }
.wp-block-query-pagination a, .wp-block-query-pagination .current {
	text-decoration: none; min-width: 40px; height: 40px; padding: 0 .8rem; display: inline-grid; place-items: center; border-radius: 999px;
	border: 1px solid var(--wp--preset--color--border); background: var(--wp--preset--color--surface); font-size: var(--wp--preset--font-size--sm); color: var(--wp--preset--color--contrast);
}
.wp-block-query-pagination .current { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); border-color: transparent; }

/* ---------- Footer ---------- */
.ss-footer { border-top: 1px solid var(--wp--preset--color--border); }
.ss-footer h4 { font-size: var(--wp--preset--font-size--sm); text-transform: uppercase; letter-spacing: .12em; color: var(--wp--preset--color--muted); }
.ss-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.ss-footer a { color: var(--wp--preset--color--contrast); text-decoration: none; font-size: var(--wp--preset--font-size--sm); }
.ss-footer a:hover { color: var(--wp--preset--color--primary); }
.ss-footer .wp-block-social-links .wp-social-link { background: var(--wp--preset--color--subtle) !important; color: var(--wp--preset--color--contrast) !important; }
.ss-fineprint { font-size: var(--wp--preset--font-size--xs); color: var(--wp--preset--color--muted); }

/* Utilities */
.ss-section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
.ss-section-head h2 { margin: 0; }
.ss-link-arrow { font-weight: 650; text-decoration: none; font-size: var(--wp--preset--font-size--sm); }
.ss-link-arrow::after { content: " →"; }
.screen-reader-text:focus { clip: auto !important; }

/* Serif for editorial headings */
.ss-path h3, .ss-post-card .wp-block-post-title, .ss-section-head h2 { font-family: var(--wp--preset--font-family--heading); }
/* Faint rishi motif behind the hero */
.ss-hero::before { content: ""; position: absolute; right: -40px; top: -30px; width: 440px; height: 440px; opacity: .08; background: url("assets/logo/rishi-mark.svg") no-repeat center/contain; pointer-events: none; }
@media (max-width: 860px) { .ss-hero::before { display: none; } }
.ss-post-card__body { min-width: 0; }
.ss-card, .is-style-ss-card, .ss-newsletter, .ss-video-band { box-sizing: border-box; }
.ss-video-band .ss-eyebrow { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); color: #CFC4B4; }

/* ---------- Hero with latest blogs ---------- */
.ss-hero__cols { gap: clamp(2rem, 5vw, 4.5rem); }
.ss-hero .ss-hero__title { font-size: clamp(2.5rem, 4.6vw, 3.9rem); }
.ss-hero .ss-lead { font-size: var(--wp--preset--font-size--md); }
.ss-hero-latest { background: color-mix(in srgb, var(--wp--preset--color--surface) 72%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--wp--preset--color--border); border-radius: var(--wp--custom--radius--lg); padding: 1rem; box-shadow: var(--wp--preset--shadow--soft); position: relative; z-index: 1; }
.ss-hero-latest .ss-section-head { padding: .1rem .35rem .7rem; align-items: center; }
.ss-hero-latest .ss-section-head p { margin: 0; }
.ss-hero-latest__label { font-size: var(--wp--preset--font-size--xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--muted); display: flex; align-items: center; gap: .5rem; }
.ss-hero-latest__label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--wp--preset--color--secondary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--wp--preset--color--secondary) 20%, transparent); animation: ss-pulse 2s ease-in-out infinite; }
@keyframes ss-pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--wp--preset--color--secondary) 0%, transparent); } }
.ss-hero-posts .wp-block-post-template { display: grid !important; gap: .6rem; margin: 0; padding: 0; list-style: none; }
/* Newest post: wide image beside its text */
.ss-hero-posts .wp-block-post-template > li:first-child .ss-post-card { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1rem; align-items: center; padding: .8rem; }
.ss-hero-posts .wp-block-post-template > li:first-child .wp-block-post-featured-image { margin: 0; }
.ss-hero-posts .wp-block-post-template > li:first-child .wp-block-post-title { font-size: var(--wp--preset--font-size--lg); }
.ss-hero-posts .wp-block-post-template > li:first-child .wp-block-post-excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Next three: compact rows */
.ss-hero-posts .wp-block-post-template > li:not(:first-child) .ss-post-card { flex-direction: row; align-items: center; gap: .9rem; padding: .6rem .8rem .6rem .6rem; border-radius: var(--wp--custom--radius--md); }
.ss-hero-posts .wp-block-post-template > li:not(:first-child) .wp-block-post-featured-image { width: 92px; flex: none; margin: 0; border-radius: 12px; }
.ss-hero-posts .wp-block-post-template > li:not(:first-child) .wp-block-post-title { font-size: var(--wp--preset--font-size--md); line-height: 1.3; }
.ss-hero-posts .wp-block-post-template > li:not(:first-child) .wp-block-post-excerpt,
.ss-hero-posts .wp-block-post-template > li:not(:first-child) .wp-block-post-terms { display: none; }
.ss-hero-posts .ss-post-card__body { gap: .35rem !important; }
@media (max-width: 781px) {
	.ss-hero-posts .wp-block-post-template > li:first-child .ss-post-card { grid-template-columns: 1fr; }
	.ss-hero::before { display: none; }
}

/* =========================================================
   v1.2 — Blog layout
   ========================================================= */
/* Category bar */
.ss-catbar-wrap { border-bottom: 1px solid var(--wp--preset--color--border); background: var(--wp--preset--color--surface); }
.ss-catbar { padding: .6rem 0; }
.ss-catbar .ss-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: .35rem; }
.ss-catbar .ss-chips::-webkit-scrollbar { display: none; }
.ss-catbar .ss-chips a { white-space: nowrap; border: 0; background: transparent; padding: .45rem .85rem; font-size: var(--wp--preset--font-size--xs); font-weight: 600; color: var(--wp--preset--color--muted); }
.ss-catbar .ss-chips a:hover { background: var(--wp--preset--color--subtle); color: var(--wp--preset--color--contrast); }
.ss-catbar .ss-chips a.is-current { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }

/* Magazine banner: newest post big, next four alongside */
.ss-featured .wp-block-post-template { display: grid !important; grid-template-columns: 1.35fr 1fr; gap: .9rem; margin: 0; padding: 0; list-style: none; align-items: start; }
.ss-featured .wp-block-post-template > li:first-child { grid-row: 1 / span 4; }
.ss-featured li:not(:first-child) .ss-post-card { flex-direction: row; align-items: center; gap: .9rem; padding: .65rem; height: 100%; }
.ss-featured li:not(:first-child) .wp-block-post-featured-image { width: 120px; flex: none; margin: 0; border-radius: 12px; }
.ss-featured li:not(:first-child) .wp-block-post-title { font-size: 1rem; line-height: 1.3; }
.ss-featured li:not(:first-child) .wp-block-post-excerpt { display: none; }
.ss-featured li:not(:first-child) .is-style-ss-pill a { font-size: .66rem; padding: .18rem .5rem; }
.ss-featured .ss-post-card__body { gap: .4rem !important; }
@media (max-width: 900px) {
	.ss-featured .wp-block-post-template { grid-template-columns: 1fr; }
	.ss-featured .wp-block-post-template > li:first-child { grid-row: auto; }
}

/* Two-column blog */
.ss-blog-cols { gap: clamp(1.5rem, 3vw, 2.75rem) !important; align-items: flex-start !important; }
.ss-rule-title { font-size: var(--wp--preset--font-size--xl) !important; display: flex; align-items: center; gap: 1rem; margin: 0; }
.ss-rule-title::after { content: ""; flex: 1; height: 1px; background: var(--wp--preset--color--border); }
.ss-blog-head { margin-bottom: 1.25rem; }

/* Post list: horizontal cards */
.ss-list .wp-block-post-template { display: flex !important; flex-direction: column; gap: 1rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.ss-list-card { flex-direction: row !important; gap: 1.4rem !important; padding: 1rem !important; align-items: center; }
.ss-list-card .wp-block-post-featured-image { width: 40%; flex: none; margin: 0 !important; }
.ss-list-card .wp-block-post-title { font-size: var(--wp--preset--font-size--lg) !important; line-height: 1.25; }
.ss-list-card .wp-block-post-excerpt { margin: 0; }
.ss-list-card .wp-block-post-excerpt__more-text { display: none; }
.ss-meta-row a { color: var(--wp--preset--color--contrast); text-decoration: none; font-weight: 600; }
.ss-meta-row p, .ss-meta-row div { margin: 0; }
@media (max-width: 680px) {
	.ss-list-card { flex-direction: column !important; align-items: stretch; }
	.ss-list-card .wp-block-post-featured-image { width: 100%; }
}

/* Sidebar */
.ss-sidebar { position: sticky; top: 90px; }
.ss-widget { padding: 1.25rem !important; width: 100%; box-sizing: border-box; }
.ss-widget:hover { transform: none !important; box-shadow: none !important; }
.ss-widget__title { font-size: .8rem !important; font-family: var(--wp--preset--font-family--body) !important; text-transform: uppercase; letter-spacing: .14em; color: var(--wp--preset--color--muted); margin: 0 0 .9rem !important; font-weight: 700 !important; }
.ss-about__head { display: flex; gap: .8rem; align-items: center; margin-bottom: .7rem; }
.ss-about__head img { border-radius: 16px; background: var(--wp--preset--color--base); }
.ss-about__head strong { display: block; font-family: var(--wp--preset--font-family--heading); font-size: 1.1rem; }
.ss-about__head span { font-size: var(--wp--preset--font-size--xs); color: var(--wp--preset--color--muted); }
.ss-about p { font-size: var(--wp--preset--font-size--sm); color: var(--wp--preset--color--muted); margin: 0 0 .6rem; line-height: 1.6; }
.ss-cat-list { list-style: none; padding: 0; margin: 0; }
.ss-cat-list li { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px dashed var(--wp--preset--color--border); font-size: var(--wp--preset--font-size--sm); color: var(--wp--preset--color--muted); }
.ss-cat-list li:last-child { border-bottom: 0; }
.ss-cat-list a { color: var(--wp--preset--color--contrast); text-decoration: none; font-weight: 550; }
.ss-cat-list a:hover { color: var(--wp--preset--color--primary); }
.ss-sidebar .wp-block-search__inside-wrapper { border-radius: 999px; border: 1px solid var(--wp--preset--color--border); padding: 3px; background: var(--wp--preset--color--base); }
.ss-sidebar .wp-block-search__input { border: 0; background: transparent; padding-left: .8rem; color: var(--wp--preset--color--contrast); }
.ss-sidebar .wp-block-search__button { border-radius: 999px; background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); margin: 0; }
.ss-form--stack { flex-direction: column; }
.ss-form--stack input[type="email"] { flex: none; }
.ss-widget--news { background-image: var(--wp--preset--gradient--aurora); }
.ss-widget--yt { background: #1C1712 !important; color: #CFC4B4; border: 0 !important; }
.ss-widget--yt p { font-size: var(--wp--preset--font-size--sm); margin: 0 0 1rem; }
.ss-widget--yt .wp-block-button__link { background: #FF3B3B; color: #fff; display: inline-block; text-decoration: none; }
.ss-widget--yt__badge { display: inline-block; font-size: .7rem; font-weight: 700; color: #FF8A8A; margin-bottom: .5rem; }
.ss-sidebar select { width: 100%; padding: .65rem .8rem; border-radius: 12px; border: 1px solid var(--wp--preset--color--border); background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); font: inherit; font-size: var(--wp--preset--font-size--sm); }
.ss-tags a { display: inline-block; margin: 0 .3rem .4rem 0; padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--wp--preset--color--border); text-decoration: none; color: var(--wp--preset--color--muted); }
.ss-tags a:hover { border-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--primary); }
@media (max-width: 781px) { .ss-sidebar { position: static; } }

/* Single post inside the blog column */
.ss-article .ss-article-head .wp-block-post-title { font-size: clamp(2rem, 4vw, 2.9rem); }
.ss-article .wp-block-post-featured-image img { border-radius: var(--wp--custom--radius--lg); }
.ss-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.ss-list-card .wp-block-post-featured-image { width: 36%; }
.ss-widget--yt .ss-widget__title { font-family: var(--wp--preset--font-family--heading) !important; font-size: 1.3rem !important; text-transform: none; letter-spacing: 0; color: #fff; margin-bottom: .5rem !important; }
.screen-reader-text { border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { clip-path: none; height: auto; width: auto; margin: 0; padding: .8rem 1rem; z-index: 100000; background: var(--wp--preset--color--surface); top: .5rem; left: .5rem; }

/* Award badge widget */
.ss-award { text-align: center; background-image: radial-gradient(70% 60% at 50% 30%, color-mix(in srgb, var(--wp--preset--color--accent) 16%, transparent), transparent 70%); }
.ss-award__link { display: flex; flex-direction: column; align-items: center; gap: .35rem; text-decoration: none; color: var(--wp--preset--color--contrast); }
.ss-award__link img { width: 200px; height: auto; transition: transform .35s ease; filter: drop-shadow(0 10px 18px rgba(196,127,18,.25)); }
.ss-award__link:hover img { transform: rotate(-3deg) scale(1.03); }
.ss-award__link strong { font-family: var(--wp--preset--font-family--heading); font-size: 1.05rem; line-height: 1.3; margin-top: .4rem; }
.ss-award__link span { font-size: var(--wp--preset--font-size--xs); color: var(--wp--preset--color--muted); }

/* =========================================================
   v1.3.1 — Featured images: never crop, never overlay text.
   Designed thumbnails (with text baked in) show whole, at their
   natural aspect ratio, everywhere.
   ========================================================= */
.wp-block-post-featured-image img,
.ss-post-card .wp-block-post-featured-image img,
.ss-list-card .wp-block-post-featured-image img,
.ss-featured li .wp-block-post-featured-image img,
.ss-hero-posts li .wp-block-post-featured-image img {
	height: auto !important;
	width: 100% !important;
	object-fit: contain !important;
}
.ss-post-card:hover .wp-block-post-featured-image img { transform: none; }
.ss-post-card .wp-block-post-featured-image { background: var(--wp--preset--color--subtle); line-height: 0; }

/* Banner: newest post as a normal card (image on top, text below) */
.ss-featured .wp-block-post-template { grid-template-columns: 1.35fr 1fr; align-items: start; }
.ss-featured li:first-child .ss-post-card { min-height: 0; height: auto; padding: 1rem; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); color: inherit; justify-content: flex-start; overflow: visible; }
.ss-featured li:first-child .wp-block-post-featured-image { position: static; height: auto; border-radius: var(--wp--custom--radius--md); overflow: hidden; margin: 0 0 .4rem; }
.ss-featured li:first-child .ss-post-card__body { position: static; padding: .4rem .35rem .2rem; background: none; }
.ss-featured li:first-child .wp-block-post-title a { color: var(--wp--preset--color--contrast) !important; }
.ss-featured li:first-child .ss-meta-row { color: var(--wp--preset--color--muted) !important; }
.ss-featured li:first-child .wp-block-post-excerpt { color: var(--wp--preset--color--muted); }
.ss-featured li:first-child .is-style-ss-pill a { background: color-mix(in srgb, var(--wp--preset--color--primary) 10%, transparent); color: var(--wp--preset--color--primary); }
.ss-featured li:first-child .wp-block-post-title { font-size: clamp(1.5rem, 2.3vw, 2rem); }

/* Side list: wider thumbnails so the whole graphic is readable */
.ss-featured li:not(:first-child) .ss-post-card { align-items: center; padding: .7rem; }
.ss-featured li:not(:first-child) .wp-block-post-featured-image { width: 44%; max-width: 210px; border-radius: 10px; overflow: hidden; }

/* Post list */
.ss-list-card { align-items: center; }
.ss-list-card .wp-block-post-featured-image { width: 42%; border-radius: var(--wp--custom--radius--md); overflow: hidden; }

@media (max-width: 900px) {
	.ss-featured .wp-block-post-template { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
	.ss-featured li:not(:first-child) .ss-post-card { flex-direction: column; align-items: stretch; }
	.ss-featured li:not(:first-child) .wp-block-post-featured-image { width: 100%; max-width: none; }
}

/* v1.3.2 — banner hardening */
.ss-featured .wp-block-post-template > li { align-self: start; min-width: 0; }
.ss-featured li:first-child .ss-post-card { position: relative; display: flex; flex-direction: column; }
@media (max-width: 900px) { .ss-featured .wp-block-post-template > li:first-child { grid-row: auto; } }

/* v1.4.0 — custom line icons (replace emoji) */
.ss-ico { width: 16px; height: 16px; flex: none; display: inline-block; vertical-align: -3px; }
.ss-chips a { display: inline-flex; align-items: center; gap: .45rem; }
.ss-catbar .ss-chips a .ss-ico { color: var(--wp--preset--color--primary); opacity: .9; transition: color var(--wp--custom--transition), transform var(--wp--custom--transition); }
.ss-catbar .ss-chips a:hover .ss-ico { color: var(--wp--preset--color--secondary); transform: translateY(-1px); }
.ss-catbar .ss-chips a.is-current .ss-ico { color: var(--wp--preset--color--accent); opacity: 1; }
.ss-path__icon { color: var(--wp--preset--color--secondary); background: color-mix(in srgb, var(--wp--preset--color--accent) 16%, var(--wp--preset--color--surface)); }
.ss-path__icon .ss-ico { width: 22px; height: 22px; }
.ss-path--feature .ss-path__icon { color: #fff; }
.ss-widget--yt__badge { display: inline-flex; align-items: center; gap: .35rem; }
.ss-widget--yt__badge .ss-ico { width: 12px; height: 12px; }
.ss-ico--btn { width: 14px; height: 14px; margin-right: .4rem; vertical-align: -2px; }

/* v1.4.1 — images keep their real proportions (from width/height attributes) */
.wp-block-post-featured-image img { contain-intrinsic-size: none; }

/* =========================================================
   v1.5.0 — Sidebar starts at the top; banner lives in the main column
   ========================================================= */
.ss-blog-cols .ss-featured { margin-bottom: 2.5rem; }
.ss-blog-cols .ss-featured .wp-block-post-template { grid-template-columns: 1fr 1fr; gap: .9rem; }
.ss-blog-cols .ss-featured .wp-block-post-template > li:first-child { grid-row: auto; grid-column: 1 / -1; }
/* Newest post: wide card, image left, text right */
.ss-blog-cols .ss-featured li:first-child .ss-post-card { flex-direction: row; align-items: center; gap: 1.4rem; padding: 1rem; }
.ss-blog-cols .ss-featured li:first-child .wp-block-post-featured-image { width: 56%; flex: none; margin: 0; }
.ss-blog-cols .ss-featured li:first-child .ss-post-card__body { padding: 0; }
.ss-blog-cols .ss-featured li:first-child .wp-block-post-title { font-size: clamp(1.35rem, 2vw, 1.75rem); }
.ss-blog-cols .ss-featured li:first-child .wp-block-post-excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* Next four: 2x2 compact cards */
.ss-blog-cols .ss-featured li:not(:first-child) .ss-post-card { flex-direction: row; align-items: center; gap: .8rem; padding: .6rem; }
.ss-blog-cols .ss-featured li:not(:first-child) .wp-block-post-featured-image { width: 42%; max-width: 170px; }
.ss-blog-cols .ss-featured li:not(:first-child) .wp-block-post-title { font-size: .95rem; }
.ss-blog-cols .ss-featured li:not(:first-child) .is-style-ss-pill { display: none; }
/* Sidebar: no sticky jump, About + Award first */
.ss-sidebar { top: 84px; }
@media (max-width: 1100px) {
	.ss-blog-cols .ss-featured li:first-child .ss-post-card { flex-direction: column; align-items: stretch; }
	.ss-blog-cols .ss-featured li:first-child .wp-block-post-featured-image { width: 100%; }
}
@media (max-width: 640px) {
	.ss-blog-cols .ss-featured .wp-block-post-template { grid-template-columns: 1fr; }
}
