/* Yash Machines blog: editorial listing + article. Scoped to .ym-* and body.ym-blog-* */

:root {
	--ym-brand: #2b467b;
	--ym-brand-dark: #1d3260;
	--ym-ink: #1a1d23;
	--ym-text: #2f343d;
	--ym-muted: #6b7280;
	--ym-line: #e5e7eb;
	--ym-soft: #f6f7f9;
	--ym-tint: #eef2f9;
	--ym-sans: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--ym-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}

body.ym-blog-list,
body.ym-blog-single {
	background: #fff;
	font-family: var(--ym-sans);
	color: var(--ym-text);
	-webkit-font-smoothing: antialiased;
}

.ym-blog *, .ym-single * { box-sizing: border-box; }
.ym-blog a, .ym-single a { text-decoration: none; }

.ym-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.ym-wrap--narrow, .ym-wrap--wide { max-width: 1140px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Shared bits ---------- */
.ym-btn {
	display: inline-block; padding: 12px 24px; border-radius: 4px; font: 500 15px var(--ym-sans);
	background: var(--ym-brand); color: #fff !important; border: 0; cursor: pointer; transition: background .2s;
}
.ym-btn:hover { background: var(--ym-brand-dark); }
.ym-btn--amber { background: #f5a524; color: #1a1d23 !important; font-weight: 700; }
.ym-btn--amber:hover { background: #ffb73d; }
.ym-btn--ghost { background: transparent; border: 1.5px solid rgba(255, 255, 255, .55); color: #fff !important; }
.ym-btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

.ym-kicker, .ym-eyebrow {
	font: 700 12px var(--ym-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ym-brand) !important;
}
.ym-kicker:hover { text-decoration: underline !important; text-underline-offset: 3px; }

/* ---------- Listing: masthead ---------- */
.ym-masthead {
	position: relative; overflow: hidden; padding: 72px 0 80px; color: #fff;
	background: radial-gradient(700px 320px at 92% -20%, rgba(98, 137, 187, .55), transparent 65%), linear-gradient(135deg, #14264a 0%, #2b467b 100%);
}
.ym-masthead::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .06; background-image: repeating-linear-gradient(135deg, #fff 0 1px, transparent 1px 14px); }
.ym-masthead .ym-wrap { position: relative; z-index: 1; }
.ym-masthead .ym-eyebrow { color: #f5a524 !important; }
.ym-masthead h1::after { content: ""; display: block; width: 64px; height: 4px; margin-top: 22px; border-radius: 2px; background: #f5a524; }
.ym-masthead .ym-wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.ym-masthead__text { max-width: 680px; }
.ym-masthead h1 {
	font: 600 clamp(34px, 5vw, 56px)/1.08 var(--ym-serif); letter-spacing: -.02em; color: #fff !important; margin: 12px 0 14px;
}
.ym-masthead p { font-size: 18px; line-height: 1.6; color: #d4def0; margin: 0; }

.ym-search { flex: 0 0 340px; display: flex; align-items: center; background: #fff; border: 0; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); border-radius: 6px; padding: 4px 6px 4px 16px; }
.ym-search input[type=search] {
	flex: 1; min-width: 0; border: 0 !important; outline: 0; background: transparent !important; box-shadow: none !important;
	font: 400 16px var(--ym-sans); color: var(--ym-ink); padding: 10px 0; height: auto; border-radius: 0;
}
.ym-search button { border: 0; background: var(--ym-brand); color: #fff; cursor: pointer; width: 40px; height: 40px; border-radius: 4px; display: grid; place-items: center; transition: background .2s; }
.ym-search button:hover { background: var(--ym-brand-dark); }

/* category tabs */
.ym-tabs { display: flex; gap: 28px; background: #fff; overflow-x: auto; border-bottom: 1px solid var(--ym-line); scrollbar-width: none; }
.ym-tabs::-webkit-scrollbar { display: none; }
.ym-tab {
	flex: 0 0 auto; padding: 14px 0; font: 500 15px var(--ym-sans); color: var(--ym-muted) !important;
	border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s;
}
.ym-tab:hover { color: var(--ym-ink) !important; }
.ym-tab.is-active { color: var(--ym-ink) !important; border-bottom-color: var(--ym-brand); font-weight: 700; }

/* ---------- Cards (flat, no boxes) ---------- */
.ym-list { padding-top: 44px; }
.ym-section-title { font: 700 13px var(--ym-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ym-ink); margin: 56px 0 24px; padding-bottom: 12px; border-bottom: 1px solid var(--ym-line); }

.ym-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.ym-list > .ym-grid:first-child { margin-top: 0; }

.ym-card { display: flex; flex-direction: column; margin: 0 !important; min-width: 0; background: #fff; border: 1px solid var(--ym-line); border-radius: 14px; overflow: hidden; box-shadow: 0 2px 6px rgba(20, 40, 75, .05); transition: transform .25s, box-shadow .25s, border-color .25s; }
.ym-card:hover { transform: translateY(-5px); border-color: #c5d2ea; box-shadow: 0 18px 38px rgba(20, 40, 75, .16); }
.ym-card__media { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(180deg, #f6f8fc, #e9eef7); border-bottom: 1px solid var(--ym-line); }
.ym-card__media img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 10px; transition: transform .5s; }
.ym-card:hover .ym-card__media img { transform: scale(1.04); }
.ym-ph { position: absolute; inset: 0; display: grid; place-items: center; background: transparent; }
.ym-ph img { width: 44% !important; height: auto !important; max-height: 70%; object-fit: contain !important; padding: 0 !important; opacity: .9; }
.ym-flag { position: absolute; top: 14px; left: 14px; padding: 5px 12px; border-radius: 999px; background: #f5a524; color: #14264a; font: 700 11.5px var(--ym-sans); letter-spacing: .08em; text-transform: uppercase; }

.ym-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 18px; }
.ym-card .ym-kicker { align-self: flex-start; margin-bottom: 12px; padding: 4px 11px; border-radius: 999px; background: var(--ym-tint); font-size: 11.5px; transition: background .2s, color .2s; }
.ym-card .ym-kicker:hover { background: var(--ym-brand); color: #fff !important; text-decoration: none !important; }
.ym-card__title { font: 600 21px/1.3 var(--ym-serif); letter-spacing: -.01em; margin: 0 0 10px; }
.ym-card__title a { color: var(--ym-ink) !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.ym-card:hover .ym-card__title a { color: var(--ym-brand) !important; }
.ym-card__excerpt { font-size: 15px; line-height: 1.6; color: var(--ym-muted); margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ym-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--ym-line); }
.ym-card__meta { margin: 0; font-size: 13px; color: var(--ym-muted); display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.ym-more { display: inline-flex; align-items: center; gap: 6px; font: 700 14px var(--ym-sans); color: var(--ym-brand) !important; }
.ym-more svg { transition: transform .2s; }
.ym-card:hover .ym-more svg { transform: translateX(4px); }

/* lead story */
.ym-lead { padding-bottom: 8px; }
.ym-card--featured { flex-direction: row; align-items: stretch; }
.ym-card--featured .ym-card__media { flex: 1 1 56%; aspect-ratio: auto; min-height: 340px; border-bottom: 0; border-right: 1px solid var(--ym-line); }
.ym-card--featured .ym-card__body { flex: 1 1 44%; padding: 38px 40px; justify-content: center; }
.ym-card--featured .ym-card__title { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.18; margin-bottom: 14px; }
.ym-card--featured .ym-card__title a { -webkit-line-clamp: 4; }
.ym-card--featured .ym-card__excerpt { font-size: 16.5px; -webkit-line-clamp: 4; margin-bottom: 22px; }
.ym-card--featured .ym-card__foot { margin-top: 0; }

/* ---------- Pagination ---------- */
.ym-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 64px 0 0; padding-top: 28px; border-top: 1px solid var(--ym-line); }
.ym-pagination .page-numbers {
	min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
	border-radius: 4px; font: 500 15px var(--ym-sans); color: var(--ym-text) !important; transition: background .2s;
}
.ym-pagination a.page-numbers:hover { background: var(--ym-soft); }
.ym-pagination .page-numbers.current { background: var(--ym-ink); color: #fff !important; }

.ym-empty { text-align: center; padding: 72px 20px; background: var(--ym-soft); border-radius: 4px; }
.ym-empty h2 { font: 600 28px var(--ym-serif); color: var(--ym-ink); margin: 0 0 8px; }
.ym-empty p { color: var(--ym-muted); margin: 0 0 24px; }

/* ---------- Article ---------- */
/* Full-width article page: the theme's boxed .site-main must not constrain the hero */
.ym-single.site-main, .ym-blog { max-width: none !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }
body.ym-blog-single, body.ym-blog-list { overflow-x: clip; }

.ym-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9999; }
.ym-progress span { display: block; height: 100%; width: 0; background: var(--ym-brand); transition: width .1s linear; }

.ym-post-hero {
	position: relative; overflow: hidden; padding: 34px 0 84px; color: #fff;
	background:
		radial-gradient(700px 320px at 92% -20%, rgba(98, 137, 187, .55), transparent 65%),
		linear-gradient(135deg, #14264a 0%, #2b467b 100%);
}
.ym-post-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .06; background-image: repeating-linear-gradient(135deg, #fff 0 1px, transparent 1px 14px); }
.ym-post-hero .ym-wrap { position: relative; z-index: 1; }
.ym-post-hero .blog-title, .ym-post-hero .ym-lede { max-width: 860px; }
.ym-post-hero .blog-title h1::after { content: ""; display: block; width: 64px; height: 4px; margin-top: 22px; border-radius: 2px; background: #f5a524; }
.ym-crumbs { list-style: none; padding: 0; margin: 0 0 28px !important; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
.ym-crumbs li, .ym-crumbs li a { font-size: 14px !important; color: #b9c7e2 !important; }
.ym-crumbs li a:hover { color: #fff !important; }
.ym-crumbs li { margin-right: 24px !important; }
.ym-crumbs li:before { border-color: #7f93bb !important; top: 6px !important; }
.ym-crumbs li:last-child { color: #fff !important; }

.ym-single .blog-title h1 {
	font: 600 clamp(32px, 5vw, 52px)/1.12 var(--ym-serif) !important; color: #fff !important;
	margin: 0 0 20px !important; letter-spacing: -.02em; text-align: left;
}
.ym-lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.6; color: #d4def0; margin: 0 0 28px; }
.ym-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 22px 0 0; font-size: 15px; color: #b9c7e2; }
.ym-byline img { border-radius: 50%; width: 34px; height: 34px; margin-right: 2px; background: #fff; border: 2px solid rgba(255, 255, 255, .5); }
.ym-byline strong { color: #fff; font-weight: 500; }

.ym-cover { margin: -52px 0 0; position: relative; }
.ym-cover img { box-shadow: 0 12px 34px rgba(20, 40, 75, .22); background: #fff; }
.ym-cover--logo { display: grid; place-items: center; height: 220px; background: #fff; border-radius: 8px; box-shadow: 0 12px 34px rgba(20, 40, 75, .22); }
.ym-cover--logo img { width: auto !important; max-width: 70%; height: 130px !important; max-height: none; object-fit: contain; box-shadow: none !important; border-radius: 0; }
.ym-cover img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; border-radius: 8px; }
.ym-single .blog-featured-img img { height: auto; }

.ym-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding-top: 48px; align-items: stretch; }
.ym-article { min-width: 0; max-width: 760px; }

/* sidebar card: listen + summarize */
.ym-tools { display: flex; flex-direction: column; gap: 16px; padding: 18px 20px 20px; background: #fff; border: 1px solid var(--ym-line); border-radius: 14px; box-shadow: 0 8px 24px rgba(20, 40, 75, .08); }
.ym-tools .tts-card-wrapper { padding: 0; margin: 0; background: none; border: 0; box-shadow: none; }
.ym-tools .tts-player { display: flex; flex-direction: column; gap: 10px; padding: 0; background: none; border: 0; border-radius: 0; }
.ym-tools .tts-play { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 16px 8px 8px; border: 0; border-radius: 999px; background: var(--ym-brand); color: #fff; font: 600 14.5px var(--ym-sans); cursor: pointer; text-align: left; box-shadow: 0 4px 12px rgba(43, 70, 123, .28); transition: background .2s; }
.ym-tools .tts-play:hover { background: var(--ym-brand-dark); }
.ym-tools .tts-play__ico { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: #f5a524; color: #14264a; display: grid; place-items: center; }
.ym-tools .tts-play__ico svg { display: block; }
.ym-tools .tts-label { color: #fff; }
.ym-tools .tts-progress-wrap { height: 4px; background: #e3e9f3; border-radius: 4px; overflow: hidden; }
.ym-tools .tts-progress-bar { height: 100%; width: 0; background: #f5a524; border-radius: 4px; }
.ym-tools .tts-row { display: none; align-items: center; justify-content: space-between; }
.ym-tools .tts-player:has(#tts-pause-icon[style*="block"]) .tts-row { display: flex; }
.ym-tools .tts-time { font: 500 13px var(--ym-sans); color: var(--ym-muted); }
.ym-tools .tts-time-divider, .ym-tools #tts-total-time { display: none; }
.ym-tools .tts-stop { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--ym-line); border-radius: 999px; background: #fff; color: var(--ym-text); font: 500 13px var(--ym-sans); cursor: pointer; }
.ym-tools .tts-stop:hover { border-color: var(--ym-brand); color: var(--ym-brand); }

.ym-tools .share-btn-div { display: flex; flex-direction: column; gap: 10px; padding: 16px 0 0; margin: 0; background: none; border: 0; border-top: 1px solid var(--ym-line); box-shadow: none; }
.ym-tools__label { font: 700 12px var(--ym-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ym-muted); }
.ym-tools .ai-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ym-tools .ai-btn { display: flex; align-items: center; gap: 8px; padding: 7px 10px 7px 7px; border: 1px solid var(--ym-line); border-radius: 10px; background: #fff; transition: border-color .2s, background .2s; }
.ym-tools .ai-btn:hover { border-color: var(--ym-brand); background: var(--ym-tint); }
.ym-tools .ai-icon { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: var(--ym-brand); display: grid; place-items: center; }
.ym-tools .ai-icon img { width: 14px; height: 14px; object-fit: contain; margin: 0; border-radius: 0; }
.ym-tools .ai-name { font: 500 13.5px var(--ym-sans); color: var(--ym-ink); white-space: nowrap; }

.ym-takeaways { background: var(--ym-soft); border-left: 3px solid var(--ym-brand); padding: 22px 26px; margin: 0 0 36px; }
.ym-takeaways h2 { font: 700 13px var(--ym-sans) !important; letter-spacing: .1em; text-transform: uppercase; color: var(--ym-brand) !important; margin: 0 0 10px !important; }
.ym-takeaways h2::before { display: none !important; }
.ym-takeaways ul { margin: 0; padding: 0 0 0 1.1em; list-style: disc; }
.ym-takeaways li { padding: 4px 0; font-size: 17px; line-height: 1.6; color: var(--ym-ink); }
.ym-takeaways li::marker { color: var(--ym-brand); }

/* article typography */
.ym-content { font: 400 19px/1.75 var(--ym-sans); color: var(--ym-text); overflow-wrap: anywhere; }
.ym-content > *:first-child { margin-top: 0; }
.ym-content p { margin: 0 0 1.4em; }
.ym-content h2, .ym-content h3, .ym-content h4 { font-family: var(--ym-serif); color: var(--ym-ink) !important; letter-spacing: -.01em; scroll-margin-top: 90px; }
.ym-content h2 {
	font-size: 27px !important; line-height: 1.3; font-weight: 700 !important; margin: 2.2em 0 .8em !important;
	padding: 16px 20px 16px 22px !important; background: var(--ym-tint); border-left: 6px solid var(--ym-brand); border-radius: 0 8px 8px 0;
	color: var(--ym-brand-dark) !important; box-shadow: inset 0 -3px 0 rgba(43, 70, 123, .08);
}
.ym-content h2::before, .ym-content h2::after, .ym-content h3::before { display: none !important; content: none !important; }
.ym-content h3 { font-size: 24px !important; line-height: 1.3; font-weight: 600 !important; margin: 1.7em 0 .5em !important; }
.ym-content h4 { font-size: 19px; font-weight: 700; margin: 1.5em 0 .5em; }
.ym-content a { color: var(--ym-brand); text-decoration: underline !important; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
.ym-content a:hover { color: var(--ym-brand-dark); text-decoration-thickness: 2px; }
.ym-content ul, .ym-content ol { margin: 0 0 1.5em; padding-left: 1.4em; }
.ym-content li { margin-bottom: .5em; }
.ym-content li::marker { color: var(--ym-brand); }
.ym-content img { max-width: 100%; height: auto; border-radius: 4px; margin: 1.2em 0; }
.ym-content figcaption { font-size: 14px; color: var(--ym-muted); margin-top: -.6em; }
.ym-content blockquote { margin: 2em 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--ym-brand); font: italic 400 24px/1.5 var(--ym-serif); color: var(--ym-ink); }
.ym-content blockquote p:last-child { margin: 0; }
.ym-content table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; margin: 2em 0; font-size: 16px; }
.ym-content th { background: var(--ym-soft); color: var(--ym-ink); text-align: left; padding: 12px 14px; font-weight: 700; border-bottom: 2px solid var(--ym-ink); white-space: nowrap; }
.ym-content td { padding: 12px 14px; border-bottom: 1px solid var(--ym-line); vertical-align: top; }
.ym-content hr { border: 0; height: 1px; background: var(--ym-line); margin: 2.4em 0; }

.ym-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 0; }
.ym-tags a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--ym-line); color: var(--ym-text) !important; font-size: 14px; transition: border-color .2s, color .2s; }
.ym-tags a:hover { border-color: var(--ym-brand); color: var(--ym-brand) !important; }

.ym-share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 36px; padding: 18px 0; border-top: 1px solid var(--ym-line); border-bottom: 1px solid var(--ym-line); }
.ym-share strong { font: 700 13px var(--ym-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ym-ink); }
.ym-share > div { display: flex; flex-wrap: wrap; gap: 18px; }
.ym-share a, .ym-share button { padding: 0; border: 0; background: none; font: 500 15px var(--ym-sans); color: var(--ym-brand) !important; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: transparent; transition: text-decoration-color .2s; }
.ym-share a:hover, .ym-share button:hover { text-decoration-color: currentColor; }
.ym-share button.is-done { color: #1f7a45 !important; }


/* FAQ plugin: compact accordion with a clear +/- icon */
.ym-content .thfaqf-faq-list { margin: 0 0 24px !important; }
.ym-content .thfaqf-faq-list-title { display: none; }
.ym-content .faq-item-wrapper { margin: 0 !important; }
.ym-content .thfaqf-faq-item { margin: 0 0 8px !important; border: 1px solid var(--ym-line); border-radius: 10px; background: #fff; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.ym-content .thfaqf-faq-item.thfaqf-active { border-color: #c5d2ea; box-shadow: 0 6px 18px rgba(20, 40, 75, .08); }
.ym-content .thfaqf-faq-item-title { margin: 0 !important; padding: 0 !important; background: #fff !important; cursor: pointer; border: 0 !important; }
.ym-content .thfaqf-faq-item-title:hover { background: var(--ym-soft) !important; }
.ym-content .thfaqf-faq-item.thfaqf-active .thfaqf-faq-item-title { background: var(--ym-tint) !important; }
.ym-content .thfaqf-faq-item-title h4 { display: flex !important; align-items: center; justify-content: space-between; gap: 14px; margin: 0 !important; padding: 11px 14px 11px 16px !important; font: 500 15.5px/1.4 var(--ym-sans) !important; color: var(--ym-ink) !important; background: none !important; }
.ym-content .thfaqf-faq-item-title h4::before, .ym-content .thfaqf-faq-item-title h4::after { display: none !important; content: none !important; }
.ym-content .thfaqf-faq-item-title .thfaqf-title-text { order: 1; flex: 1; margin: 0 !important; font: 500 15.5px/1.4 var(--ym-sans) !important; color: var(--ym-ink) !important; background: none !important; }
.ym-content .thfaqf-faq-item-title .thfaqf-toggle-icon { order: 2; flex: 0 0 26px; width: 26px; height: 26px; margin: 0 !important; display: grid !important; place-items: center; font-size: 0 !important; line-height: 1 !important; }
.ym-content .thfaqf-faq-item-title .thfaqf-toggle-icon::after,
.ym-content .thfaqf-faq-item span.thfaq-marker::after { float: none !important; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ym-tint); color: var(--ym-brand); font: 700 18px/1 var(--ym-sans) !important; content: "+"; transition: background .2s, color .2s; }
.ym-content .thfaqf-faq-item.thfaqf-active .thfaqf-toggle-icon::after,
.ym-content .thfaqf-faq-item.thfaqf-active span.thfaq-marker::after { content: "\2212"; background: var(--ym-brand); color: #fff; }
.ym-content .thfaqf-faq-item-content { background: #fff !important; padding: 4px 16px 14px !important; font-size: 15.5px; line-height: 1.65; border-top: 1px solid var(--ym-line); }
.ym-content .thfaqf-faq-item-content p { margin: 10px 0 0; }
.ym-content .thfaq-enable-comment-box, .ym-content .thfaqf-comment-wrapper { display: none !important; }

/* Author box: plain, no link styling (its edit links are for admins only) */
.ym-content .saboxplugin-wrap { margin: 40px 0 0; padding: 20px 22px; background: var(--ym-soft); border: 1px solid var(--ym-line); border-radius: 8px; box-shadow: none; }
.ym-content .saboxplugin-wrap a, .ym-content .saboxplugin-wrap a:hover { color: inherit !important; text-decoration: none !important; pointer-events: none; cursor: default; font-weight: inherit; }
.ym-content .saboxplugin-wrap .sab-edit-settings, .ym-content .saboxplugin-wrap .saboxplugin-authorname a.sab-profile-edit { display: none !important; }
.ym-content .saboxplugin-wrap .saboxplugin-authorname { font: 700 18px var(--ym-serif); color: var(--ym-ink); margin-bottom: 6px; }
.ym-content .saboxplugin-wrap .saboxplugin-desc, .ym-content .saboxplugin-wrap .saboxplugin-desc p { font-size: 15.5px; line-height: 1.65; color: var(--ym-text); margin: 0; }
.ym-content .saboxplugin-wrap .saboxplugin-gravatar img { border-radius: 50%; margin: 0; }

/* ---------- Lead generation ---------- */
.ym-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ym-hero-cta .ym-btn { padding: 12px 22px; }

.ym-midcta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 2.4em 0; padding: 22px 26px; border-radius: 10px; background: linear-gradient(135deg, #14264a, #2b467b); color: #fff; }
.ym-midcta strong { display: block; font: 600 21px/1.3 var(--ym-serif); margin-bottom: 4px; }
.ym-midcta span { font-size: 15px; line-height: 1.5; color: #d4def0; }
.ym-content .ym-midcta .ym-btn { flex: 0 0 auto; background: #f5a524; color: #1a1d23 !important; text-decoration: none !important; font-weight: 700; }

.ym-lead-box { scroll-margin-top: 90px; border-radius: 14px; background: #fff; border: 1px solid var(--ym-line); box-shadow: 0 14px 34px rgba(20, 40, 75, .14); overflow: hidden; }
.ym-lead-box__head { padding: 20px 22px 18px; color: #fff; background: radial-gradient(260px 120px at 100% 0, rgba(98, 137, 187, .55), transparent 70%), linear-gradient(135deg, #14264a, #2b467b); border-bottom: 4px solid #f5a524; }
.ym-lead-box__head h4 { font: 600 24px/1.2 var(--ym-serif); color: #fff !important; margin: 0 0 10px; }
.ym-lead-box__head ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ym-lead-box__head li { position: relative; padding-left: 22px; font-size: 14px; color: #d4def0; }
.ym-lead-box__head li::before { content: ""; position: absolute; left: 0; top: 3px; width: 15px; height: 15px; border-radius: 50%; background: #f5a524 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2314264a' stroke-width='4' stroke-linecap='round' stroke-linejoin='round' d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 10px no-repeat; }
.ym-lead-box__body { padding: 20px 22px 18px; }
.ym-lead-trust { margin: 12px 0 0; text-align: center; font: 500 12.5px var(--ym-sans); color: var(--ym-muted); }
.ym-lead-box form { display: flex; flex-direction: column; gap: 10px; }
.ym-lead-box input[type=text], .ym-lead-box input[type=tel], .ym-lead-box input[type=email], .ym-lead-box textarea {
	width: 100%; padding: 11px 12px; border: 1px solid #cfd6e2; border-radius: 6px; background: #fff; font: 400 15px var(--ym-sans); color: var(--ym-ink); box-shadow: none; margin: 0;
}
.ym-lead-box input:focus, .ym-lead-box textarea:focus { outline: 0; border-color: var(--ym-brand); box-shadow: 0 0 0 3px rgba(43, 70, 123, .15); }
.ym-lead-box textarea { resize: vertical; min-height: 76px; }
.ym-lead-box .ym-btn { width: 100%; padding: 13px; background: #f5a524; color: #1a1d23 !important; font-weight: 700; }
.ym-lead-box .ym-btn:hover { background: #ffb73d; }
.ym-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0; }
.ym-lead-msg { padding: 12px 14px; border-radius: 6px; font-size: 14.5px; line-height: 1.5; margin-bottom: 12px; }
.ym-lead-msg--ok { background: #e8f6ee; color: #14633a; }
.ym-lead-msg--err { background: #fdecec; color: #9b1c1c; }
.ym-lead-alt { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--ym-line); }
.ym-lead-alt a { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 13px 14px; border-radius: 8px; font: 700 15px/1.2 var(--ym-sans); color: #fff !important; text-align: center; transition: transform .15s, box-shadow .2s, background .2s; }
.ym-lead-alt a svg { flex: 0 0 auto; }
.ym-lead-alt a span { min-width: 0; overflow-wrap: anywhere; }
.ym-lead-alt .ym-call { background: var(--ym-brand); box-shadow: 0 6px 16px rgba(43, 70, 123, .30); }
.ym-lead-alt .ym-call:hover { background: var(--ym-brand-dark); transform: translateY(-2px); }
.ym-lead-alt .ym-wa { background: #1fa855; box-shadow: 0 6px 16px rgba(31, 168, 85, .30); }
.ym-lead-alt .ym-wa:hover { background: #178a45; transform: translateY(-2px); }

.ym-leadband { margin-top: 80px; padding: 48px 0; color: #fff; background: linear-gradient(135deg, #14264a, #2b467b); }
.ym-leadband__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.ym-leadband h2 { font: 600 clamp(24px, 3vw, 34px)/1.2 var(--ym-serif); color: #fff !important; margin: 0 0 8px; }
.ym-leadband p { margin: 0; color: #d4def0; font-size: 17px; }
.ym-leadband__btns { display: flex; flex-wrap: wrap; gap: 12px; flex: 0 0 auto; }
.ym-leadband + .ym-related { margin-top: 0; border-top: 0; }

.ym-mbar { display: none; }

/* ---------- Sidebar ---------- */
.ym-side { display: flex; flex-direction: column; gap: 24px; }
.ym-side .ym-lead-box { position: sticky; top: 24px; }
.ym-box--toc:not(:has(.ez-toc-list)) { display: none; }
.ym-box--toc { background: #fff; border: 1px solid var(--ym-line); border-radius: 14px; box-shadow: 0 8px 24px rgba(20, 40, 75, .08); overflow: hidden; }
.ym-collapse > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 20px; cursor: pointer; font: 700 12px var(--ym-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ym-brand-dark); background: var(--ym-tint); user-select: none; transition: background .2s; }
.ym-collapse > summary::-webkit-details-marker { display: none; }
.ym-collapse > summary:hover { background: #e3eaf6; }
.ym-collapse > summary svg { flex: 0 0 auto; transition: transform .2s; }
.ym-collapse[open] > summary { border-bottom: 1px solid #dde5f2; }
.ym-collapse[open] > summary svg { transform: rotate(180deg); }
.ym-box__head { display: block; padding: 14px 20px; font: 700 12px var(--ym-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ym-brand-dark); background: var(--ym-tint); border-bottom: 1px solid #dde5f2; }
.ym-single div#ez-toc-container { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 6px 0 !important; width: 100% !important; }
.ym-single .ez-toc-title-container { display: none !important; }
.ym-single ul.ez-toc-list.ez-toc-list-level-1 { max-height: 40vh; overflow: auto; margin: 0 !important; padding: 0 !important; border: 0; scrollbar-width: thin; }
.ym-single ul.ez-toc-list.ez-toc-list-level-1 li { border: 0 !important; border-left: 3px solid transparent !important; margin: 0 !important; padding: 8px 18px 8px 17px !important; transition: background .2s, border-color .2s; }
.ym-single ul.ez-toc-list.ez-toc-list-level-1 li:hover { background: var(--ym-soft); }
.ym-single a.ez-toc-link { color: var(--ym-text) !important; font-size: 14px !important; line-height: 1.45; display: block; }
.ym-single li:has(> a.ez-toc-link.is-current) { background: var(--ym-tint) !important; border-left-color: #f5a524 !important; }
.ym-single a.ez-toc-link:hover, .ym-single a.ez-toc-link.is-current { color: var(--ym-brand) !important; font-weight: 500; }
.ym-single .ez-toc-counter nav ul li a::before { display: none !important; }

/* ---------- Keep reading ---------- */
.ym-related { margin-top: 72px; padding: 56px 0 24px; border-top: 1px solid var(--ym-line); }
.ym-related__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.ym-related__head h2 { font: 600 30px var(--ym-serif); color: var(--ym-ink); margin: 0; }
.ym-related__head a { font: 500 15px var(--ym-sans); color: var(--ym-brand); }
.ym-related .ym-card__title { font-size: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.ym-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.ym-side { display: contents; }
	.ym-side .ym-lead-box { position: static; order: 3; }
	.ym-box--toc { order: 0; }
	.ym-tools { order: 1; }
	.ym-article { order: 2; }
	.ym-lead-alt { flex-direction: row; flex-wrap: wrap; }
	.ym-lead-alt a { flex: 1 1 220px; }
	.ym-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
	.ym-leadband__in { flex-direction: column; align-items: flex-start; }
	.ym-midcta { flex-direction: column; align-items: flex-start; }
	.ym-masthead .ym-wrap { flex-direction: column; align-items: stretch; gap: 28px; }
	.ym-search { flex-basis: auto; }
	.ym-card--featured { flex-direction: column; }
	.ym-card--featured .ym-card__media { flex: none; min-height: 0; aspect-ratio: 16 / 10; border-right: 0; border-bottom: 1px solid var(--ym-line); }
	.ym-card--featured .ym-card__body { padding: 24px 22px; }
}

@media (max-width: 640px) {
	.ym-hero-cta .ym-btn { flex: 1 1 100%; }
	.ym-mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9998; background: #fff; border-top: 1px solid var(--ym-line); box-shadow: 0 -6px 20px rgba(20, 40, 75, .12); }
	.ym-mbar a { flex: 1; text-align: center; padding: 14px 6px; font: 600 15px var(--ym-sans); color: var(--ym-brand) !important; }
	.ym-mbar a + a { border-left: 1px solid var(--ym-line); }
	.ym-mbar a.is-primary { background: #f5a524; color: #1a1d23 !important; }
	body.ym-blog-single { padding-bottom: 52px; }
	.ym-wrap { padding: 0 16px; }
	.ym-masthead { padding: 40px 0 36px; }
	.ym-cover { margin-top: 0; }
	.ym-post-hero { padding-bottom: 32px; }
	.ym-tabs { gap: 22px; }
	.ym-grid { grid-template-columns: 1fr; gap: 36px; }
	.ym-post-hero { padding: 24px 0; }
	.ym-layout { padding-top: 28px; }
	.ym-content { font-size: 18px; line-height: 1.7; }
	.ym-content h2 { font-size: 27px !important; }
	.ym-content h3 { font-size: 22px !important; }
	.ym-content blockquote { font-size: 20px; }
	.ym-tools { gap: 12px; }
			.ym-related__head h2 { font-size: 24px; }
	.ym-wrap--wide { padding: 0; }
	.ym-cover img { border-radius: 0; max-height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
	.ym-card__media img, .ym-btn, .ym-card__title a { transition: none !important; }
}
