/* =========================================================================
   SecurityHub Theme — main.css
   Editorial B2B publishing layout. Inspired by SecurityInformed.com.
   ========================================================================= */

/* ------------ Design Tokens ------------ */
:root {
	--sh-primary: #1a5490;
	--sh-primary-dark: #133e6a;
	--sh-primary-light: #2c6db0;
	--sh-accent: #d4a943;

	--sh-text: #1a1d24;
	--sh-text-muted: #5b6573;
	--sh-text-subtle: #8a93a0;

	--sh-bg: #ffffff;
	--sh-bg-soft: #f7f8fa;
	--sh-bg-card: #ffffff;
	--sh-border: #e3e6eb;
	--sh-border-strong: #c8cdd4;

	--sh-link: var(--sh-primary);
	--sh-link-hover: var(--sh-primary-dark);

	--sh-radius-sm: 4px;
	--sh-radius: 6px;
	--sh-radius-lg: 10px;

	--sh-shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
	--sh-shadow: 0 4px 12px rgba(15, 23, 42, .08);
	--sh-shadow-lg: 0 12px 32px rgba(15, 23, 42, .12);

	--sh-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--sh-font-display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

	--sh-container: 1280px;
	--sh-gap: 24px;
}

/* ------------ Reset / Base ------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--sh-font-sans);
	font-size: 16px;
	line-height: 1.6;
	color: var(--sh-text);
	background: var(--sh-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--sh-link); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--sh-link-hover); }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--sh-font-display);
	font-weight: 700;
	line-height: 1.25;
	color: var(--sh-text);
	margin: 0 0 .6em;
	letter-spacing: -.01em;
}
h1 { font-size: clamp(1.75rem, 2.4vw, 2.4rem); }
h2 { font-size: clamp(1.4rem, 2vw, 1.85rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
	border: 0;
}
.sh-skip {
	position: absolute; left: -9999px; top: 0;
	background: var(--sh-primary); color: #fff;
	padding: 8px 16px; z-index: 999;
}
.sh-skip:focus { left: 0; }

/* ------------ Layout ------------ */
.sh-container {
	width: 100%;
	max-width: var(--sh-container);
	margin-inline: auto;
	padding-inline: 20px;
}

.sh-grid { display: grid; gap: var(--sh-gap); }
.sh-grid--with-sidebar {
	grid-template-columns: minmax(0, 1fr) 320px;
	margin-block: 32px;
	gap: 40px;
}
.sh-grid--with-filter {
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 32px;
	margin-bottom: 48px;
}

@media (max-width: 960px) {
	.sh-grid--with-sidebar,
	.sh-grid--with-filter { grid-template-columns: 1fr; }
}

/* ------------ Header ------------ */
.sh-header { background: #fff; border-bottom: 1px solid var(--sh-border); position: sticky; top: 0; z-index: 50; }

.sh-topbar {
	background: var(--sh-bg-soft);
	border-bottom: 1px solid var(--sh-border);
	font-size: 13px;
}
.sh-topbar__inner {
	display: flex; justify-content: space-between; align-items: center;
	min-height: 36px;
}
.sh-topbar__menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.sh-topbar__menu a { color: var(--sh-text-muted); }
.sh-topbar__menu a:hover { color: var(--sh-primary); }

.sh-header__main { padding-block: 18px; }
.sh-header__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 32px;
}

.sh-header__brand a { color: var(--sh-text); display: block; }
.sh-logo-text__main {
	display: block;
	font-family: var(--sh-font-display);
	font-weight: 800;
	font-size: 26px;
	letter-spacing: -.02em;
	line-height: 1;
	color: var(--sh-primary);
}
.sh-logo-text__sub {
	display: block;
	font-size: 11px;
	color: var(--sh-text-muted);
	letter-spacing: .04em;
	text-transform: uppercase;
	margin-top: 4px;
}
.custom-logo { max-height: 56px; width: auto; }

/* Search bar — prominent, the centerpiece of the header */
.sh-searchform {
	display: flex;
	align-items: center;
	background: var(--sh-bg-soft);
	border: 1px solid var(--sh-border);
	border-radius: 999px;
	padding: 4px 4px 4px 16px;
	transition: border-color .15s, box-shadow .15s;
	max-width: 560px;
	width: 100%;
	margin-inline: auto;
}
.sh-searchform:focus-within {
	border-color: var(--sh-primary);
	box-shadow: 0 0 0 3px rgba(26, 84, 144, .12);
	background: #fff;
}
.sh-searchform__icon {
	color: var(--sh-text-muted);
	flex-shrink: 0;
	margin-right: 10px;
}
.sh-searchform input[type="search"] {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	padding: 10px 8px;
	font-size: 15px;
	color: var(--sh-text);
	outline: none;
	font-family: inherit;
}
.sh-searchform input[type="search"]::placeholder { color: var(--sh-text-subtle); }
.sh-searchform__btn {
	background: var(--sh-primary);
	color: #fff;
	border: 0;
	padding: 10px 20px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 14px;
	transition: background .15s;
}
.sh-searchform__btn:hover { background: var(--sh-primary-dark); }

.sh-burger {
	display: none;
	background: transparent;
	border: 0;
	padding: 8px;
	flex-direction: column;
	gap: 5px;
}
.sh-burger span {
	display: block;
	width: 24px; height: 2px;
	background: var(--sh-text);
	border-radius: 2px;
	transition: transform .2s, opacity .2s;
}

/* Primary nav */
.sh-nav {
	border-top: 1px solid var(--sh-border);
	background: #fff;
}
.sh-nav__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 0;
	overflow-x: auto;
	scrollbar-width: none;
}
.sh-nav__menu::-webkit-scrollbar { display: none; }
.sh-nav__menu li { position: relative; }
.sh-nav__menu > li > a {
	display: block;
	padding: 14px 18px;
	color: var(--sh-text);
	font-weight: 500;
	font-size: 14px;
	letter-spacing: .01em;
	white-space: nowrap;
	border-bottom: 2px solid transparent;
	transition: color .15s, border-color .15s;
}
.sh-nav__menu > li > a:hover,
.sh-nav__menu > li.current-menu-item > a {
	color: var(--sh-primary);
	border-bottom-color: var(--sh-primary);
}
.sh-nav__menu .sub-menu {
	position: absolute; top: 100%; left: 0;
	background: #fff;
	border: 1px solid var(--sh-border);
	border-radius: var(--sh-radius);
	box-shadow: var(--sh-shadow-lg);
	padding: 8px;
	min-width: 220px;
	list-style: none; margin: 0;
	display: none;
	z-index: 100;
}
.sh-nav__menu li:hover > .sub-menu { display: block; }
.sh-nav__menu .sub-menu a {
	display: block;
	padding: 8px 12px;
	font-size: 14px;
	border-radius: var(--sh-radius-sm);
}
.sh-nav__menu .sub-menu a:hover { background: var(--sh-bg-soft); color: var(--sh-primary); }

@media (max-width: 768px) {
	.sh-header__inner { grid-template-columns: auto auto; gap: 16px; }
	.sh-header__search { grid-column: 1 / -1; order: 3; }
	.sh-burger { display: flex; }
	.sh-nav { display: none; }
	.sh-nav.is-open { display: block; }
	.sh-nav__menu { flex-direction: column; }
	.sh-nav__menu > li > a { padding: 12px 0; border-bottom: 1px solid var(--sh-border); }
	.sh-topbar { display: none; }
}

/* ------------ Hero / Homepage ------------ */
.sh-home-wrap { padding-block: 28px 56px; }

.sh-hero-section {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 28px;
	margin-bottom: 48px;
	padding-bottom: 36px;
	border-bottom: 1px solid var(--sh-border);
}
@media (max-width: 900px) {
	.sh-hero-section { grid-template-columns: 1fr; }
}

.sh-hero { display: block; }
.sh-hero__media {
	display: block;
	overflow: hidden;
	border-radius: var(--sh-radius-lg);
	margin-bottom: 18px;
	aspect-ratio: 16 / 9;
	background: var(--sh-bg-soft);
}
.sh-hero__img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.sh-hero__media:hover .sh-hero__img { transform: scale(1.02); }
.sh-hero__placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--sh-primary) 0%, var(--sh-primary-dark) 100%); }
.sh-hero__kicker {
	display: inline-block;
	font-size: 12px; font-weight: 700;
	letter-spacing: .08em; text-transform: uppercase;
	color: var(--sh-primary);
	margin-bottom: 8px;
}
.sh-hero__title {
	font-size: clamp(1.6rem, 2.6vw, 2.4rem);
	margin-bottom: 12px;
}
.sh-hero__title a { color: var(--sh-text); }
.sh-hero__title a:hover { color: var(--sh-primary); }
.sh-hero__excerpt { color: var(--sh-text-muted); font-size: 17px; margin-bottom: 12px; }

.sh-hero-secondary { display: flex; flex-direction: column; gap: 16px; }
.sh-hero-secondary__item {
	display: grid;
	grid-template-columns: 100px 1fr;
	gap: 14px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--sh-border);
}
.sh-hero-secondary__item:last-child { border-bottom: 0; }
.sh-hero-secondary__media {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--sh-radius);
	background: var(--sh-bg-soft);
}
.sh-hero-secondary__media img { width: 100%; height: 100%; object-fit: cover; }
.sh-hero-secondary__body h3 { font-size: 15px; line-height: 1.35; margin-bottom: 6px; }
.sh-hero-secondary__body h3 a { color: var(--sh-text); }
.sh-hero-secondary__body h3 a:hover { color: var(--sh-primary); }
.sh-hero-secondary__body time { font-size: 12px; color: var(--sh-text-subtle); }

/* Section heads */
.sh-section { margin-bottom: 48px; }
.sh-section__head {
	display: flex; justify-content: space-between; align-items: baseline;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--sh-text);
}
.sh-section__title { margin: 0; font-size: 1.4rem; }
.sh-section__more { font-size: 13px; font-weight: 600; }

/* ------------ Cards ------------ */
.sh-cards { display: grid; gap: 28px; grid-template-columns: 1fr; }
.sh-cards--3col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sh-cards--4col { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) {
	.sh-cards--3col { grid-template-columns: repeat(2, 1fr); }
	.sh-cards--4col { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
	.sh-cards--3col, .sh-cards--4col { grid-template-columns: 1fr; }
}

.sh-card { display: block; }
.sh-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: var(--sh-radius);
	background: var(--sh-bg-soft);
	margin-bottom: 14px;
}
.sh-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.sh-card:hover .sh-card__media img { transform: scale(1.04); }
.sh-card__placeholder-bg { width: 100%; height: 100%; background: linear-gradient(135deg, #cfd6e0 0%, #a8b1bd 100%); }
.sh-card__kicker {
	display: inline-block;
	font-size: 11px; font-weight: 700;
	letter-spacing: .08em; text-transform: uppercase;
	color: var(--sh-primary);
	margin-bottom: 6px;
}
.sh-card__title {
	font-size: 17px;
	line-height: 1.35;
	margin-bottom: 8px;
}
.sh-card__title a { color: var(--sh-text); }
.sh-card__title a:hover { color: var(--sh-primary); }
.sh-card__excerpt {
	color: var(--sh-text-muted);
	font-size: 14px;
	margin-bottom: 8px;
	line-height: 1.5;
}
.sh-card__meta { font-size: 12px; color: var(--sh-text-subtle); }

/* Product card variant */
.sh-card--product .sh-card__media {
	aspect-ratio: 4 / 3;
	background: #fff;
	border: 1px solid var(--sh-border);
}
.sh-card--product .sh-card__media img { object-fit: contain; padding: 12px; }
.sh-card__meta--model { color: var(--sh-text); font-size: 12px; }

/* Company card variant */
.sh-card--company {
	display: block;
	background: #fff;
	border: 1px solid var(--sh-border);
	border-radius: var(--sh-radius);
	padding: 18px;
	transition: border-color .15s, box-shadow .15s;
	text-align: center;
}
.sh-card--company:hover { border-color: var(--sh-primary); box-shadow: var(--sh-shadow); }
.sh-card__media--logo {
	aspect-ratio: 1 / 1;
	margin-bottom: 12px;
	display: flex; align-items: center; justify-content: center;
	background: #fff; border: 0;
}
.sh-card__media--logo img { object-fit: contain; }
.sh-card__placeholder {
	font-size: 48px; font-weight: 800;
	color: var(--sh-primary);
	background: var(--sh-bg-soft);
	width: 100%; height: 100%;
	display: flex; align-items: center; justify-content: center;
	border-radius: var(--sh-radius);
}
.sh-card--company .sh-card__title { font-size: 15px; margin: 0 0 4px; }
.sh-card--company .sh-card__meta { color: var(--sh-text-muted); }

/* Company strip on homepage */
.sh-company-strip {
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	gap: 12px;
}
@media (max-width: 900px) { .sh-company-strip { grid-template-columns: repeat(4, 1fr); } }
.sh-company-strip__item {
	display: flex; align-items: center; justify-content: center;
	aspect-ratio: 1 / 1;
	background: #fff;
	border: 1px solid var(--sh-border);
	border-radius: var(--sh-radius);
	padding: 12px;
	transition: border-color .15s, transform .15s;
}
.sh-company-strip__item:hover { border-color: var(--sh-primary); transform: translateY(-2px); }
.sh-company-strip__item img { object-fit: contain; max-height: 100%; }
.sh-company-strip__name { font-size: 13px; font-weight: 600; text-align: center; color: var(--sh-text); }

/* Mini list (whitepapers, videos sidebars) */
.sh-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 800px) { .sh-two-col { grid-template-columns: 1fr; } }
.sh-mini-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.sh-mini-list a {
	display: grid;
	grid-template-columns: 100px 1fr;
	gap: 14px;
	padding: 12px;
	border-radius: var(--sh-radius);
	transition: background .15s;
}
.sh-mini-list a:hover { background: var(--sh-bg-soft); }
.sh-mini-list img {
	width: 100%; aspect-ratio: 4/3; object-fit: cover;
	border-radius: var(--sh-radius-sm);
}
.sh-mini-list h4 { font-size: 14px; margin: 0 0 6px; color: var(--sh-text); line-height: 1.35; }
.sh-mini-list p { font-size: 13px; color: var(--sh-text-muted); margin: 0; line-height: 1.45; }

/* ------------ Article ------------ */
.sh-article { max-width: 760px; }
.sh-article__head { margin-bottom: 24px; }
.sh-kicker {
	display: inline-block;
	font-size: 12px; font-weight: 700;
	letter-spacing: .1em; text-transform: uppercase;
	color: var(--sh-primary);
	margin-bottom: 12px;
}
.sh-article__title {
	font-size: clamp(1.8rem, 3.2vw, 2.6rem);
	line-height: 1.2;
	margin-bottom: 16px;
}
.sh-article__lede {
	font-size: 19px;
	line-height: 1.55;
	color: var(--sh-text-muted);
	margin-bottom: 24px;
	font-weight: 400;
}
.sh-article__byline {
	display: flex; justify-content: space-between; align-items: center;
	gap: 16px;
	padding: 16px 0;
	border-block: 1px solid var(--sh-border);
}
.sh-byline { display: flex; align-items: center; gap: 12px; }
.sh-byline img { border-radius: 50%; }
.sh-byline__author { display: block; font-weight: 600; font-size: 14px; }
.sh-byline__date { display: block; font-size: 13px; color: var(--sh-text-muted); }

.sh-article__feature { margin: 24px 0 32px; }
.sh-article__feature img { width: 100%; border-radius: var(--sh-radius-lg); }
.sh-article__feature figcaption { font-size: 13px; color: var(--sh-text-muted); margin-top: 8px; text-align: center; }

.sh-article__body { font-size: 17px; line-height: 1.75; color: #2a2f38; }
.sh-article__body p { margin-bottom: 1.4em; }
.sh-article__body h2 { font-size: 1.6rem; margin-top: 1.8em; }
.sh-article__body h3 { font-size: 1.25rem; margin-top: 1.6em; }
.sh-article__body img { border-radius: var(--sh-radius); margin: 1.5em 0; }
.sh-article__body blockquote {
	border-left: 4px solid var(--sh-primary);
	padding: .5em 1.4em;
	margin: 1.6em 0;
	font-size: 1.15em;
	color: var(--sh-text);
	font-style: italic;
}
.sh-article__body ul, .sh-article__body ol { margin-bottom: 1.4em; padding-left: 1.5em; }
.sh-article__body li { margin-bottom: .4em; }
.sh-article__body a { color: var(--sh-primary); text-decoration: underline; }
.sh-article__foot { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--sh-border); }

/* Tags */
.sh-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.sh-tags a {
	display: inline-block;
	font-size: 13px;
	background: var(--sh-bg-soft);
	color: var(--sh-text);
	padding: 4px 12px;
	border-radius: 999px;
	transition: background .15s, color .15s;
}
.sh-tags a:hover { background: var(--sh-primary); color: #fff; }

/* Share buttons */
.sh-share { display: flex; align-items: center; gap: 8px; }
.sh-share__label { font-size: 13px; color: var(--sh-text-muted); margin-right: 4px; }
.sh-share a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 32px; height: 32px;
	border-radius: 50%;
	background: var(--sh-bg-soft);
	color: var(--sh-text-muted);
	transition: background .15s, color .15s;
}
.sh-share a:hover { background: var(--sh-primary); color: #fff; }

/* Related */
.sh-related { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--sh-border); }

/* ------------ Product / Company specifics ------------ */
.sh-product__head { margin-bottom: 24px; }
.sh-product__title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 8px; }
.sh-product__brand { font-size: 16px; color: var(--sh-text-muted); margin-bottom: 4px; }
.sh-product__model { font-size: 14px; color: var(--sh-text-muted); }
.sh-product__main {
	display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
	padding: 24px; background: var(--sh-bg-soft);
	border-radius: var(--sh-radius-lg); margin-bottom: 32px;
}
@media (max-width: 800px) { .sh-product__main { grid-template-columns: 1fr; } }
.sh-product__media img { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #fff; border-radius: var(--sh-radius); padding: 16px; }
.sh-product__excerpt { font-size: 16px; margin-bottom: 24px; }
.sh-product__info .sh-btn { margin-right: 8px; margin-bottom: 8px; }
.sh-specs { background: #fff; border: 1px solid var(--sh-border); border-radius: var(--sh-radius); padding: 20px; }

.sh-company__head {
	background: linear-gradient(135deg, var(--sh-primary) 0%, var(--sh-primary-dark) 100%);
	color: #fff;
	padding: 36px 28px;
	border-radius: var(--sh-radius-lg);
	margin-bottom: 32px;
}
.sh-company__head-inner { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: center; }
@media (max-width: 640px) { .sh-company__head-inner { grid-template-columns: 1fr; } }
.sh-company__logo { background: #fff; padding: 12px; border-radius: var(--sh-radius); aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; }
.sh-company__logo img { object-fit: contain; max-height: 100%; }
.sh-company__heading h1 { color: #fff; margin-bottom: 16px; }
.sh-company__facts { display: flex; flex-wrap: wrap; gap: 24px; margin: 0 0 16px; }
.sh-company__facts > div { display: flex; flex-direction: column; }
.sh-company__facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.7); margin: 0; }
.sh-company__facts dd { margin: 4px 0 0; font-weight: 600; }

/* ------------ Buttons ------------ */
.sh-btn {
	display: inline-block;
	padding: 10px 22px;
	border-radius: var(--sh-radius);
	font-weight: 600;
	font-size: 14px;
	text-align: center;
	transition: all .15s ease;
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
}
.sh-btn--primary { background: var(--sh-primary); color: #fff; }
.sh-btn--primary:hover { background: var(--sh-primary-dark); color: #fff; }
.sh-btn--outline { background: transparent; color: var(--sh-primary); border-color: var(--sh-primary); }
.sh-btn--outline:hover { background: var(--sh-primary); color: #fff; }
.sh-company__head .sh-btn--outline { color: #fff; border-color: rgba(255,255,255,.5); }
.sh-company__head .sh-btn--outline:hover { background: #fff; color: var(--sh-primary); }

/* ------------ Sidebar ------------ */
.sh-sidebar { font-size: 14px; }
.sh-sidebar .widget,
.sh-sidebar .sh-widget { margin-bottom: 32px; }
.sh-sidebar .widget-title {
	font-size: 14px;
	letter-spacing: .08em;
	text-transform: uppercase;
	margin-bottom: 14px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--sh-text);
}
.sh-popular-list { list-style: none; counter-reset: pop; margin: 0; padding: 0; }
.sh-popular-list li {
	counter-increment: pop;
	padding: 10px 0 10px 36px;
	border-bottom: 1px solid var(--sh-border);
	position: relative;
}
.sh-popular-list li:last-child { border-bottom: 0; }
.sh-popular-list li::before {
	content: counter(pop);
	position: absolute; left: 0; top: 10px;
	font-family: var(--sh-font-display);
	font-size: 24px;
	font-weight: 800;
	color: var(--sh-text-subtle);
	line-height: 1;
}
.sh-popular-list a { color: var(--sh-text); display: block; }
.sh-popular-list a:hover .sh-popular-list__title { color: var(--sh-primary); }
.sh-popular-list__title { display: block; font-weight: 500; line-height: 1.4; margin-bottom: 4px; }
.sh-popular-list__date { display: block; font-size: 12px; color: var(--sh-text-subtle); }

.sh-widget--cta {
	background: var(--sh-primary);
	color: #fff;
	padding: 22px;
	border-radius: var(--sh-radius);
}
.sh-widget--cta .widget-title { color: #fff; border-color: rgba(255,255,255,.4); }
.sh-widget--cta p { color: rgba(255,255,255,.9); }

.sh-newsletter { display: flex; flex-direction: column; gap: 8px; }
.sh-newsletter input {
	padding: 10px 12px;
	border-radius: var(--sh-radius);
	border: 0;
	font-size: 14px;
	font-family: inherit;
}
.sh-newsletter button { width: 100%; }
.sh-widget--cta .sh-btn--primary { background: var(--sh-accent); color: var(--sh-text); }
.sh-widget--cta .sh-btn--primary:hover { background: #c0962d; }

.sh-topic-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-topic-cloud a {
	display: inline-block;
	padding: 5px 12px;
	font-size: 13px;
	background: var(--sh-bg-soft);
	color: var(--sh-text);
	border-radius: 999px;
	transition: background .15s, color .15s;
}
.sh-topic-cloud a:hover { background: var(--sh-primary); color: #fff; }

/* ------------ Filter sidebar ------------ */
.sh-filter h3 {
	font-size: 13px;
	letter-spacing: .08em;
	text-transform: uppercase;
	margin: 24px 0 10px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--sh-text);
}
.sh-filter h3:first-child { margin-top: 0; }
.sh-filter__list { list-style: none; margin: 0; padding: 0; }
.sh-filter__list li { padding: 6px 0; border-bottom: 1px solid var(--sh-border); }
.sh-filter__list li:last-child { border: 0; }
.sh-filter__list a { color: var(--sh-text); font-size: 14px; display: flex; justify-content: space-between; }
.sh-filter__list a:hover { color: var(--sh-primary); }
.sh-filter__list span { color: var(--sh-text-subtle); }
.sh-filter__note {
	font-size: 12px; color: var(--sh-text-subtle);
	background: var(--sh-bg-soft);
	padding: 10px 12px;
	border-radius: var(--sh-radius);
	margin-top: 24px;
	border-left: 3px solid var(--sh-accent);
}

/* ------------ Pagination ------------ */
.sh-pagination { margin-top: 40px; }
.sh-pagination ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.sh-pagination a, .sh-pagination span {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 38px; height: 38px;
	padding: 0 12px;
	border-radius: var(--sh-radius);
	font-size: 14px;
	color: var(--sh-text);
	background: #fff;
	border: 1px solid var(--sh-border);
}
.sh-pagination a:hover { border-color: var(--sh-primary); color: var(--sh-primary); }
.sh-pagination .current { background: var(--sh-primary); color: #fff; border-color: var(--sh-primary); }

/* ------------ Breadcrumbs ------------ */
.sh-breadcrumbs { margin-bottom: 16px; font-size: 13px; color: var(--sh-text-muted); }
.sh-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sh-breadcrumbs li:not(:last-child)::after {
	content: '›';
	margin-left: 6px;
	color: var(--sh-text-subtle);
}
.sh-breadcrumbs a { color: var(--sh-text-muted); }
.sh-breadcrumbs a:hover { color: var(--sh-primary); }

/* ------------ Archive head ------------ */
.sh-archive-head { margin-block: 24px 32px; padding-bottom: 24px; border-bottom: 2px solid var(--sh-text); }
.sh-page-title { margin: 0 0 8px; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.sh-archive-desc { color: var(--sh-text-muted); font-size: 16px; margin: 0; }

/* ------------ 404 ------------ */
.sh-404 { padding: 80px 20px; text-align: center; }
.sh-404__inner { max-width: 540px; margin-inline: auto; }
.sh-404__inner h1 { font-size: 88px; line-height: 1; color: var(--sh-primary); margin-bottom: 8px; }
.sh-404__inner h2 { font-size: 24px; margin-bottom: 12px; }
.sh-404__inner p { color: var(--sh-text-muted); margin-bottom: 24px; }
.sh-404__inner .sh-searchform { margin-bottom: 24px; }

/* ------------ Comments ------------ */
.sh-comments { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--sh-border); }
.sh-comments__title { font-size: 1.3rem; margin-bottom: 24px; }
.sh-comments__list { list-style: none; padding: 0; margin: 0 0 32px; }

/* ------------ Footer (compact) ------------ */
.sh-footer {
	background: #0f1924;
	color: #c8cdd4;
	padding: 48px 0 0;
	margin-top: 64px;
	font-size: 14px;
}
.sh-footer__top {
	display: grid;
	grid-template-columns: 1.2fr 2fr;
	gap: 48px;
	padding-bottom: 36px;
	border-bottom: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 800px) { .sh-footer__top { grid-template-columns: 1fr; gap: 32px; } }

.sh-footer__brand { max-width: 360px; }
.sh-footer__logo-text {
	display: inline-block;
	font-family: var(--sh-font-display);
	font-weight: 800;
	font-size: 22px;
	color: #fff;
	margin-bottom: 12px;
}
.sh-footer .custom-logo { filter: brightness(0) invert(1); }
.sh-footer__tagline { color: #8a93a0; line-height: 1.6; margin-bottom: 16px; }

.sh-footer__cols {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}
@media (max-width: 640px) { .sh-footer__cols { grid-template-columns: repeat(2, 1fr); } }

.sh-footer__col-title {
	font-size: 13px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #fff;
	margin: 0 0 14px;
}
.sh-footer__col ul { list-style: none; margin: 0; padding: 0; }
.sh-footer__col li { margin-bottom: 8px; }
.sh-footer__col a { color: #c8cdd4; }
.sh-footer__col a:hover { color: #fff; }

.sh-footer__bottom {
	padding: 20px 0;
	display: flex; justify-content: space-between; align-items: center;
	flex-wrap: wrap; gap: 12px;
}
.sh-footer__copyright { margin: 0; color: #8a93a0; font-size: 13px; }

/* Social icons */
.sh-social { display: flex; gap: 10px; flex-wrap: wrap; }
.sh-social a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px;
	border-radius: 50%;
	background: rgba(255,255,255,.06);
	color: #c8cdd4;
	transition: background .15s, color .15s;
}
.sh-social a:hover { background: var(--sh-primary); color: #fff; }
.sh-topbar .sh-social a { background: transparent; color: var(--sh-text-muted); width: auto; height: auto; padding: 4px; }
.sh-topbar .sh-social a:hover { background: transparent; color: var(--sh-primary); }

/* ------------ Meta line ------------ */
.sh-meta-line { font-size: 13px; color: var(--sh-text-muted); }
.sh-meta-line__type { font-weight: 600; color: var(--sh-primary); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.sh-meta-line__sep { margin: 0 6px; color: var(--sh-text-subtle); }

/* ------------ Utilities ------------ */
.alignwide { width: 100%; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
