:root {
	--vsip-color-text: #172026;
	--vsip-color-muted: #5c6873;
	--vsip-color-border: #d9e0e6;
	--vsip-color-surface: #ffffff;
	--vsip-color-accent: #006b4f;
	--vsip-color-accent-strong: #004b38;
	--vsip-font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--vsip-width-content: 1120px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	color: var(--vsip-color-text);
	background: #f5f7f8;
	font-family: var(--vsip-font-body);
	font-size: 16px;
	line-height: 1.65;
}

a {
	color: var(--vsip-color-accent);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

a:hover,
a:focus {
	color: var(--vsip-color-accent-strong);
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

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

.skip-link:focus {
	top: 1rem;
	left: 1rem;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	clip: auto;
	background: var(--vsip-color-surface);
	border: 1px solid var(--vsip-color-border);
}

.site-header,
.site-footer {
	background: var(--vsip-color-surface);
	border-color: var(--vsip-color-border);
}

.site-header {
	border-bottom: 1px solid var(--vsip-color-border);
}

.site-header__inner,
.site-main,
.widget-area,
.site-footer {
	width: min(100% - 2rem, var(--vsip-width-content));
	margin-inline: auto;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	padding: 1rem 0;
}

.site-title {
	color: var(--vsip-color-text);
	font-size: 1.35rem;
	font-weight: 700;
	text-decoration: none;
}

.site-description {
	margin: 0.15rem 0 0;
	color: var(--vsip-color-muted);
	font-size: 0.9rem;
}

.main-navigation ul,
.footer-navigation ul {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-navigation a,
.footer-navigation a {
	color: var(--vsip-color-text);
	text-decoration: none;
}

.menu-toggle {
	display: none;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid var(--vsip-color-border);
	border-radius: 4px;
	background: var(--vsip-color-surface);
}

.menu-toggle__bar,
.menu-toggle__bar::before,
.menu-toggle__bar::after {
	display: block;
	width: 1.1rem;
	height: 2px;
	background: currentColor;
	content: "";
}

.menu-toggle__bar {
	position: relative;
	margin: auto;
}

.menu-toggle__bar::before,
.menu-toggle__bar::after {
	position: absolute;
	left: 0;
}

.menu-toggle__bar::before {
	top: -0.35rem;
}

.menu-toggle__bar::after {
	top: 0.35rem;
}

.site-main {
	padding: 3rem 0;
}

.page-header,
.entry,
.comments-area,
.widget {
	margin-bottom: 2rem;
	padding: 1.5rem;
	background: var(--vsip-color-surface);
	border: 1px solid var(--vsip-color-border);
	border-radius: 8px;
}

.entry-title,
.page-title {
	margin: 0 0 1rem;
	line-height: 1.2;
}

.entry-meta,
.entry-footer,
.entry-summary,
.archive-description {
	color: var(--vsip-color-muted);
	font-size: 0.94rem;
}

.entry-thumbnail {
	margin: 1rem 0;
}

.entry-content > *:first-child,
.page-content > *:first-child {
	margin-top: 0;
}

.entry-content > *:last-child,
.page-content > *:last-child {
	margin-bottom: 0;
}

.search-form {
	display: flex;
	gap: 0.5rem;
	max-width: 36rem;
}

.search-field {
	width: 100%;
	min-height: 2.5rem;
	padding: 0.55rem 0.75rem;
	border: 1px solid var(--vsip-color-border);
	border-radius: 4px;
}

.search-submit {
	min-height: 2.5rem;
	padding: 0.55rem 1rem;
	color: #ffffff;
	background: var(--vsip-color-accent);
	border: 0;
	border-radius: 4px;
}

.site-footer {
	padding: 2rem 0;
	border-top: 1px solid var(--vsip-color-border);
	color: var(--vsip-color-muted);
}

.home-hero,
.blogs-hero,
.single-hero {
	width: min(100% - 2rem, var(--vsip-width-content));
	margin: 1.5rem auto 0;
	padding: 2rem 1.5rem;
	background: linear-gradient(180deg, #ffffff 0%, #f8fbfa 100%);
	border: 1px solid var(--vsip-color-border);
	border-radius: 8px;
}

.home-hero__eyebrow,
.single-hero__eyebrow {
	margin: 0 0 0.5rem;
	color: var(--vsip-color-accent);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: uppercase;
}

.home-hero__title,
.blogs-hero__title,
.single-hero__title {
	margin: 0;
	line-height: 1.1;
}

.home-hero__text,
.blogs-hero__description,
.single-hero__meta {
	margin: 0.75rem 0 0;
	color: var(--vsip-color-muted);
}

.single-entry {
	width: min(100% - 2rem, var(--vsip-width-content));
	margin: 1.5rem auto 2rem;
	padding: 1.5rem;
	background: var(--vsip-color-surface);
	border: 1px solid var(--vsip-color-border);
	border-radius: 8px;
}

.single-entry__qr {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--vsip-color-border);
}

.single-entry__qr-title {
	margin: 0 0 0.75rem;
	font-size: 1rem;
}

.single-entry__qr img {
	max-width: 240px;
	border: 1px solid var(--vsip-color-border);
	border-radius: 8px;
	background: #fff;
}

.vsip-qr-box__preview img {
	display: block;
	max-width: 100%;
	height: auto;
}

.comment-item {
	margin-bottom: 1rem;
}

.comment-item__inner {
	display: flex;
	gap: 1rem;
	padding: 1rem;
	border: 1px solid var(--vsip-color-border);
	border-radius: 8px;
	background: #fff;
}

.comment-item__avatar img {
	border-radius: 999px;
}

.comment-item__author,
.comment-item__date {
	margin: 0;
}

@media (max-width: 720px) {
	.site-header__inner {
		align-items: flex-start;
	}

	.menu-toggle {
		display: inline-flex;
	}

	.main-navigation ul {
		display: none;
		position: absolute;
		right: 1rem;
		left: 1rem;
		margin-top: 0.75rem;
		padding: 1rem;
		background: var(--vsip-color-surface);
		border: 1px solid var(--vsip-color-border);
		border-radius: 8px;
	}

	.main-navigation.is-open ul {
		display: grid;
	}

	.search-form {
		display: grid;
	}

	.comment-item__inner {
		flex-direction: column;
	}
}


/*
 * Sticky-header offset for in-page anchors.
 *
 * The header is `sticky top-0`, so a browser jumping to #ir-news-list scrolls
 * the element to y=0 — directly behind the header. scroll-padding-top on the
 * scroll container fixes every anchor at once: tab filters, pagination, the
 * skip link, and anything added later.
 *
 * Done here rather than with a scroll-mt-* utility per element: the compiled
 * assets/css/tailwind.css does not include the scroll-margin plugin output, so
 * those classes would silently do nothing.
 *
 * Header height: top bar (py-3) + main bar (py-3 md:py-5 around a 42px logo).
 */
html {
	scroll-padding-top: 7.5rem;
}

@media (min-width: 768px) {
	html {
		scroll-padding-top: 8.5rem;
	}
}
