/*! SignalMedia Premium V2 - Main stylesheet */
:root {
	--smpv2-bg: #ffffff;
	--smpv2-fg: #0f172a;
	--smpv2-muted: #64748b;
	--smpv2-border: #e5e7eb;
	--smpv2-primary: #d90429;
	--smpv2-primary-fg: #ffffff;
	--smpv2-accent: #0f172a;
	--smpv2-card-bg: #ffffff;
	--smpv2-radius: 8px;
	--smpv2-container: 1240px;
	--smpv2-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--smpv2-font-heading: Georgia, "Times New Roman", serif;
}
[data-theme="dark"], .smpv2-dark {
	--smpv2-bg: #0b0f19;
	--smpv2-fg: #f1f5f9;
	--smpv2-muted: #94a3b8;
	--smpv2-border: #1f2937;
	--smpv2-card-bg: #111827;
	--smpv2-accent: #f1f5f9;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--smpv2-bg);
	color: var(--smpv2-fg);
	font-family: var(--smpv2-font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
a { color: var(--smpv2-primary); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--smpv2-font-heading); color: var(--smpv2-fg); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--smpv2-primary); color: var(--smpv2-primary-fg); padding: .5rem 1rem; z-index: 10000; }
.skip-link:focus { left: 0; }

.smpv2-container { max-width: var(--smpv2-container); margin: 0 auto; padding: 0 1.25rem; }

/* Topbar */
.smpv2-topbar { background: var(--smpv2-accent); color: #fff; font-size: .8125rem; }
.smpv2-topbar a { color: #fff; opacity: .85; }
.smpv2-topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: .5rem 1.25rem; }
.smpv2-topbar-menu { list-style: none; display: flex; gap: 1rem; margin: 0; padding: 0; }

/* Masthead */
.smpv2-masthead { padding: 1.5rem 0; border-bottom: 1px solid var(--smpv2-border); }
.smpv2-masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.smpv2-site-title { font-family: var(--smpv2-font-heading); font-size: 2rem; font-weight: 800; color: var(--smpv2-fg); }
.smpv2-site-description { margin: .25rem 0 0; color: var(--smpv2-muted); font-size: .9rem; }
.smpv2-masthead-tools { display: flex; gap: .5rem; }
.smpv2-masthead-tools button { background: transparent; border: 1px solid var(--smpv2-border); color: var(--smpv2-fg); padding: .5rem .75rem; border-radius: var(--smpv2-radius); cursor: pointer; }
.smpv2-search-panel { border-top: 1px solid var(--smpv2-border); padding: 1rem 0; }

/* Nav */
.smpv2-nav { border-bottom: 1px solid var(--smpv2-border); background: var(--smpv2-bg); position: sticky; top: 0; z-index: 50; }
.smpv2-nav-inner { display: flex; align-items: center; gap: 1rem; padding: .5rem 1.25rem; }
.smpv2-primary-menu { list-style: none; display: flex; gap: 1.25rem; margin: 0; padding: 0; flex-wrap: wrap; }
.smpv2-primary-menu a { color: var(--smpv2-fg); font-weight: 600; padding: .75rem 0; display: inline-block; }
.smpv2-primary-menu a:hover { color: var(--smpv2-primary); text-decoration: none; }
.smpv2-mobile-toggle { display: none; background: transparent; border: 1px solid var(--smpv2-border); border-radius: var(--smpv2-radius); padding: .5rem .75rem; }

/* Layout */
.smpv2-main { padding: 2rem 0 3rem; }
.smpv2-content-grid, .smpv2-single-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; }
.smpv2-sidebar > .widget { background: var(--smpv2-card-bg); border: 1px solid var(--smpv2-border); border-radius: var(--smpv2-radius); padding: 1rem; margin-bottom: 1.25rem; }

/* Cards & grids */
.smpv2-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.smpv2-card { background: var(--smpv2-card-bg); border: 1px solid var(--smpv2-border); border-radius: var(--smpv2-radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.smpv2-card-media { display: block; overflow: hidden; }
.smpv2-card-media img { display: block; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; transition: transform .3s ease; }
.smpv2-card:hover .smpv2-card-media img { transform: scale(1.03); }
.smpv2-card-body { padding: 1rem; min-width: 0; display: flex; flex-direction: column; gap: .5rem; }
.smpv2-card-title { font-size: 1.15rem; line-height: 1.35; margin: .25rem 0 0; overflow-wrap: break-word; }
.smpv2-card-title a { color: var(--smpv2-fg); }
.smpv2-card-title a:hover { color: var(--smpv2-primary); text-decoration: none; }
.smpv2-card-excerpt { color: var(--smpv2-muted); margin: 0; font-size: .95rem; line-height: 1.5; }
.smpv2-card-meta { color: var(--smpv2-muted); font-size: .8125rem; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; }

/* List variant used on archive/category/search */
.smpv2-card-list { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); flex-direction: initial; align-items: stretch; }
.smpv2-card-list .smpv2-card-media { height: 100%; }
.smpv2-card-list .smpv2-card-media img { height: 100%; width: 100%; aspect-ratio: 4/3; }
.smpv2-card-list + .smpv2-card-list { margin-top: 1.25rem; }
.smpv2-content > .smpv2-card + .smpv2-card { margin-top: 1.25rem; }

@media (max-width: 640px) {
	.smpv2-card-list { grid-template-columns: 1fr; }
	.smpv2-card-list .smpv2-card-media img { aspect-ratio: 16/9; height: auto; }
	.smpv2-card-title { font-size: 1.05rem; }
}

.smpv2-badge { display: inline-block; background: var(--smpv2-primary); color: var(--smpv2-primary-fg); font-size: .75rem; font-weight: 700; padding: .2rem .55rem; border-radius: 4px; text-transform: uppercase; letter-spacing: .05em; }
.smpv2-badge-lg { font-size: .875rem; padding: .35rem .8rem; }

/* Module */
.smpv2-module { margin: 0 0 3rem; }
.smpv2-module-header { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 3px solid var(--smpv2-primary); margin: 0 0 1.25rem; padding: 0 0 .5rem; }
.smpv2-module-title { margin: 0; font-size: 1.5rem; }

/* Single */
.smpv2-single-hero { padding: 1.5rem 0 0; }
.smpv2-single-title { margin: .75rem 0; font-size: clamp(2rem, 5vw, 3.25rem); }
.smpv2-single-subtitle { color: var(--smpv2-muted); font-size: 1.25rem; margin: 0 0 1rem; }
.smpv2-single-featured img { border-radius: var(--smpv2-radius); }
.smpv2-single-featured figcaption { color: var(--smpv2-muted); font-size: .85rem; margin-top: .5rem; }
.smpv2-entry-content { font-size: 1.125rem; line-height: 1.75; }
.smpv2-entry-content p { margin: 0 0 1.25rem; }
.smpv2-entry-content h2 { margin-top: 2rem; }
.smpv2-entry-content blockquote { border-left: 4px solid var(--smpv2-primary); padding: .5rem 1rem; color: var(--smpv2-muted); font-style: italic; margin: 1.5rem 0; }

.smpv2-single-meta { display: flex; align-items: center; margin: 0 0 1.5rem; }
.smpv2-author-inline { display: flex; align-items: center; gap: .75rem; }
.smpv2-author-inline img { border-radius: 50%; }
.smpv2-author-name { display: block; font-weight: 600; }
.smpv2-post-date { color: var(--smpv2-muted); font-size: .875rem; }

.smpv2-share-floating { position: sticky; top: 90px; display: flex; flex-direction: column; gap: .5rem; margin: 1rem 0; }
.smpv2-share-floating a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--smpv2-card-bg); border: 1px solid var(--smpv2-border); color: var(--smpv2-fg); font-weight: 700; }
.smpv2-share-floating a:hover { background: var(--smpv2-primary); color: var(--smpv2-primary-fg); text-decoration: none; }

.smpv2-toc, .smpv2-key-takeaways, .smpv2-author-box, .smpv2-related { background: var(--smpv2-card-bg); border: 1px solid var(--smpv2-border); border-radius: var(--smpv2-radius); padding: 1.25rem; margin: 1.5rem 0; }
.smpv2-toc ol, .smpv2-key-takeaways ul { padding-left: 1.25rem; margin: 0; }
.smpv2-author-box { display: flex; gap: 1rem; align-items: flex-start; }
.smpv2-author-box img { border-radius: 50%; }

.smpv2-prev-next { display: flex; justify-content: space-between; gap: 1rem; margin: 2rem 0; }
.smpv2-prev-next a { color: var(--smpv2-fg); font-weight: 600; }

.smpv2-tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.smpv2-tags li a { background: var(--smpv2-card-bg); border: 1px solid var(--smpv2-border); padding: .25rem .6rem; border-radius: 999px; color: var(--smpv2-fg); font-size: .8125rem; }

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

/* Breadcrumbs */
.smpv2-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0 0 .75rem; font-size: .85rem; color: var(--smpv2-muted); }
.smpv2-breadcrumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--smpv2-muted); }
.smpv2-breadcrumbs a { color: var(--smpv2-muted); }

/* Footer */
.smpv2-footer-widgets { background: var(--smpv2-accent); color: #cbd5e1; padding: 3rem 0; margin-top: 3rem; }
.smpv2-footer-widgets .widget-title { color: #fff; }
.smpv2-footer-widgets a { color: #fff; }
.smpv2-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.smpv2-footer-bottom { background: #0a0f1a; color: #94a3b8; padding: 1.25rem 0; }
.smpv2-footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.smpv2-footer-menu { list-style: none; display: flex; gap: 1rem; margin: 0; padding: 0; }
.smpv2-footer-menu a { color: #cbd5e1; }

/* Mobile bottom nav */
.smpv2-mobile-bottom-nav { display: none; }

/* Buttons */
.smpv2-btn { display: inline-block; background: var(--smpv2-primary); color: var(--smpv2-primary-fg); padding: .65rem 1.1rem; border-radius: var(--smpv2-radius); font-weight: 600; }
.smpv2-btn:hover { text-decoration: none; opacity: .95; }

.smpv2-back-to-top { position: fixed; right: 1rem; bottom: 1rem; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--smpv2-primary); color: #fff; font-size: 1.25rem; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 40; }
.smpv2-back-to-top.is-visible { opacity: 1; pointer-events: auto; }

.smpv2-ad { margin: 1.5rem 0; text-align: center; }

/* Comments */
.smpv2-comments { margin-top: 2.5rem; }
.smpv2-comment-list { list-style: none; padding: 0; }
.smpv2-comment-list .comment { border-top: 1px solid var(--smpv2-border); padding: 1rem 0; }

/* Responsive */
@media (max-width: 960px) {
	.smpv2-content-grid, .smpv2-single-grid { grid-template-columns: 1fr; }
	.smpv2-sidebar { order: 2; }
	.smpv2-share-floating { position: static; flex-direction: row; }
}
@media (max-width: 720px) {
	.smpv2-mobile-toggle { display: inline-flex; }
	.smpv2-primary-menu { display: none; width: 100%; flex-direction: column; gap: 0; }
	.smpv2-primary-menu.is-open { display: flex; }
	.smpv2-primary-menu a { padding: .75rem 0; border-top: 1px solid var(--smpv2-border); }
	.smpv2-mobile-bottom-nav { display: block; position: fixed; left: 0; right: 0; bottom: 0; background: var(--smpv2-bg); border-top: 1px solid var(--smpv2-border); padding: .5rem; z-index: 45; }
	.smpv2-mobile-bottom-nav .smpv2-bottomnav-menu { list-style: none; display: flex; justify-content: space-around; margin: 0; padding: 0; }
	.smpv2-mobile-bottom-nav a { color: var(--smpv2-fg); font-size: .8125rem; }
	body { padding-bottom: 60px; }
}

/* Ad Manager --------------------------------------------- */
.smpv2-ad{margin:1.25rem auto;max-width:100%;text-align:center;overflow:hidden;}
.smpv2-ad-label{display:block;font-size:.7rem;letter-spacing:.08em;text-transform:uppercase;color:#999;margin-bottom:.25rem;}
.smpv2-ad img,.smpv2-ad iframe,.smpv2-ad ins{max-width:100%;height:auto;}
.smpv2-ad-header_banner,.smpv2-ad-footer{margin:0 auto;padding:.5rem 0;}

/* Single Post Builder ------------------------------------ */
.smpv2-single-grid-full{grid-template-columns:1fr;}
.smpv2-single-w-narrow .smpv2-single-main{max-width:680px;margin:0 auto;}
.smpv2-single-w-wide .smpv2-single-main{max-width:1100px;margin:0 auto;}
.smpv2-share-inline{display:flex;gap:.5rem;flex-wrap:wrap;margin:1rem 0;}
.smpv2-share-inline a,.smpv2-share-inline button{padding:.35rem .75rem;border:1px solid #ddd;border-radius:4px;background:#fff;color:#333;text-decoration:none;font-size:.85rem;cursor:pointer;}
.smpv2-toc-collapsed summary{cursor:pointer;}
.smpv2-tags-top{margin:0 0 1rem;}
