/**
 * Techcore — premium catalog foundation
 */

:root {
	--ed-blue: #033c8b;
	--ed-blue-soft: #eaf0f8;
	--ed-green: #118d2d;
	--ed-ink: #12161e;
	--ed-mute: #5a6472;
	--ed-line: #e4e8ef;
	--ed-paper: #ffffff;
	--ed-soft: #f5f7fa;
	--ed-white: #ffffff;
	--ed-font: "IBM Plex Sans", system-ui, sans-serif;
	--ed-display: "Newsreader", Georgia, serif;
	--ed-mono: "IBM Plex Mono", ui-monospace, monospace;
	--ed-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--ed-pad: clamp(1.25rem, 4.5vw, 4rem);
	--ed-chrome: 5.35rem;
	--ed-max: 88rem;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--ed-chrome) + 0.75rem);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--ed-font);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--ed-ink);
	background: var(--ed-paper);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

body.is-menu-open {
	overflow: hidden;
}

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

a {
	color: inherit;
	text-decoration: none;
}

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

ul,
p,
h1,
h2,
h3,
figure {
	margin: 0;
}

ul {
	list-style: none;
	padding: 0;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.tc-skip-link {
	position: absolute;
	left: var(--ed-pad);
	top: -120px;
	z-index: 10000;
	padding: 0.65rem 1rem;
	background: var(--ed-blue);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 600;
}

.tc-skip-link:focus {
	top: 0.75rem;
}

.tc-main {
	min-height: 60vh;
}

.tc-content-wrap {
	width: min(1080px, calc(100% - 2.5rem));
	margin: 0 auto;
	padding: calc(var(--ed-chrome) + 2rem) 0 3rem;
}

.tc-entry__title {
	font-family: var(--ed-display);
	font-size: clamp(1.7rem, 3vw, 2.4rem);
	margin-bottom: 0.75rem;
}

.tc-entry__content {
	color: var(--ed-mute);
}

.tc-footer-placeholder {
	padding: 1.25rem var(--ed-pad);
	border-top: 1px solid var(--ed-line);
	background: var(--ed-white);
	text-align: center;
	font-size: 0.8rem;
	color: var(--ed-mute);
}

/* Premium footer — editorial, not column grid */
.tc-footer {
	background:
		radial-gradient(120% 80% at 100% 0%, rgba(17, 141, 45, 0.35), transparent 55%),
		linear-gradient(165deg, #071833 0%, #033c8b 58%, #0a4f22 160%);
	color: rgba(245, 247, 250, 0.88);
}

.tc-footer__stage {
	display: grid;
	gap: 2rem;
	width: min(var(--ed-max), 100%);
	margin: 0 auto;
	padding: clamp(3.5rem, 9vw, 6rem) var(--ed-pad) 2rem;
}

.tc-footer__eyebrow {
	margin-bottom: 1rem;
	color: rgba(245, 247, 250, 0.55);
}

.tc-footer__headline {
	margin: 0 0 1.75rem;
	max-width: 16ch;
	font-family: var(--ed-display);
	font-size: clamp(2.1rem, 4.8vw, 3.6rem);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -0.03em;
	color: #fff;
}

.tc-footer__panel {
	padding: 1.5rem;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.tc-footer__logo {
	display: inline-flex;
	margin-bottom: 1.1rem;
	padding: 0.5rem 0.65rem;
	background: rgba(255, 255, 255, 0.95);
}

.tc-footer__logo img {
	height: 2.1rem;
	width: auto;
}

.tc-footer__note {
	margin: 0 0 1.15rem;
	max-width: 36ch;
	line-height: 1.7;
	color: rgba(245, 247, 250, 0.78);
}

.tc-footer__contact {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem 0.75rem;
	font-size: 0.95rem;
}

.tc-footer__contact a {
	color: #fff;
	border-bottom: 1px solid rgba(255, 255, 255, 0.35);
	padding-bottom: 0.1rem;
}

.tc-footer__contact a:hover,
.tc-footer__contact a:focus-visible {
	border-bottom-color: var(--ed-green);
}

.tc-footer__rail {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.15rem;
	width: min(var(--ed-max), 100%);
	margin: 0 auto;
	padding: 0.35rem var(--ed-pad) 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.tc-footer__rail a {
	padding: 0.85rem 1rem 0.85rem 0;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(245, 247, 250, 0.72);
	transition: color 0.25s var(--ed-ease);
}

.tc-footer__rail a:hover,
.tc-footer__rail a:focus-visible {
	color: #fff;
}

.tc-footer__bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	width: min(var(--ed-max), 100%);
	margin: 0 auto;
	padding: 1.1rem var(--ed-pad) 1.4rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.82rem;
	color: rgba(245, 247, 250, 0.58);
}

.tc-footer__bar .ed-mono {
	color: rgba(245, 247, 250, 0.5);
}

.tc-footer__credit a {
	color: rgba(245, 247, 250, 0.78);
	text-decoration: underline;
	text-underline-offset: 0.18em;
	transition: color 0.3s var(--ed-ease);
}

.tc-footer__credit a:hover,
.tc-footer__credit a:focus-visible {
	color: #fff;
}

@media (min-width: 900px) {
	.tc-footer__stage {
		grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.75fr);
		align-items: end;
		column-gap: 3rem;
	}

	.tc-footer__rail {
		gap: 0.5rem 1.25rem;
	}
}

@media (max-width: 640px) {
	:root {
		--ed-chrome: 4.25rem;
		--ed-pad: clamp(1rem, 4.5vw, 1.25rem);
	}

	.tc-footer__stage {
		padding: 2.75rem var(--ed-pad) 1.35rem;
		gap: 1.35rem;
	}

	.tc-footer__headline {
		font-size: clamp(1.65rem, 7.5vw, 2.2rem);
		max-width: 14ch;
	}

	.tc-footer__panel {
		padding: 1.1rem;
	}

	.tc-footer__rail {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0.35rem 1rem;
		padding-bottom: 1.15rem;
	}

	.tc-footer__rail a {
		padding: 0.65rem 0.35rem 0.65rem 0;
		font-size: 0.7rem;
	}

	.tc-footer__bar {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.45rem;
		padding-top: 1rem;
		padding-bottom: 1.25rem;
	}
}

.ed-mono {
	font-family: var(--ed-mono);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.ed-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3.1rem;
	padding: 0.75rem 1.55rem;
	background: var(--ed-blue);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	border: 1px solid var(--ed-blue);
	transition: background 0.35s var(--ed-ease), border-color 0.35s var(--ed-ease), transform 0.35s var(--ed-ease), color 0.35s var(--ed-ease);
}

.ed-btn:hover,
.ed-btn:focus-visible {
	background: var(--ed-green);
	border-color: var(--ed-green);
	transform: translateY(-1px);
}

.ed-btn:focus-visible {
	outline: 1px solid var(--ed-green);
	outline-offset: 3px;
}

.ed-btn--ghost {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.55);
}

.ed-btn--ghost:hover,
.ed-btn--ghost:focus-visible {
	background: #fff;
	color: var(--ed-ink);
	border-color: #fff;
}

.ed-btn--light {
	background: #fff;
	color: var(--ed-ink);
	border-color: #fff;
}

.ed-btn--light:hover,
.ed-btn--light:focus-visible {
	background: var(--ed-green);
	border-color: var(--ed-green);
	color: #fff;
}

.ed-link {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35rem;
	max-width: 100%;
	overflow: hidden;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ed-ink);
}

.ed-link__line {
	display: block;
	width: 100%;
	height: 1px;
	background: currentColor;
	transform: scaleX(0.72);
	transform-origin: left;
	transition: transform 0.35s var(--ed-ease), background 0.35s var(--ed-ease);
}

.ed-link:hover .ed-link__line,
.ed-link:focus-visible .ed-link__line {
	transform: scaleX(1);
	background: var(--ed-green);
}

.ed-link--dark {
	color: var(--ed-ink);
}

.ed-link--light {
	color: #fff;
}

[data-ed-rise] {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.8s var(--ed-ease), transform 0.8s var(--ed-ease);
}

[data-ed-rise].is-in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	[data-ed-rise] {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
