/**
 * Shared footer component.
 * One renderer and one footer CSS owner on the homepage and inner routes.
 */
.edx-footer,
.edx-footer * {
	box-sizing: border-box;
}
.edx-footer {
	display: flex;
	flex-flow: row wrap;
	align-items: flex-start;
	align-content: flex-start;
	gap: clamp(1rem, 2.6vw, 2rem);
	width: min(calc(100% - 80px), 1360px);
	min-width: 0;
	margin: 0 auto;
	padding: 32px 24px 22px;
	border-top: 1px solid #e4eaf2;
	background: #fff;
	color: #111820;
	font-family: var(--ed-font-sans, "Golos Text", Arial, sans-serif);
}
.edx-footer > div:first-child {
	flex: 0 0 max-content;
	min-width: max-content;
}
.edx-footer > div:first-child strong {
	display: block;
	color: #071a52;
	font-size: 25px;
	font-weight: 800;
	letter-spacing: -.035em;
	white-space: nowrap;
}
.edx-footer > div:first-child p {
	margin: 7px 0 0;
	color: #7387a9;
	font-size: 15px;
	line-height: 1.3;
}
.edx-footer a {
	color: #49628a;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
}
.edx-footer a:hover {
	color: #0875ed;
}
.edx-footer a:focus-visible {
	outline: 2px solid #0875ed;
	outline-offset: 3px;
}
.edx-location {
	display: flex;
	flex: 0 0 max-content;
	gap: 13px;
	min-width: max-content;
	padding-top: 7px;
	color: #536e9a;
}
.edx-location > svg {
	width: 24px;
	height: 24px;
	flex: none;
}
.edx-location p {
	display: grid;
	gap: 3px;
	margin: 0;
}
.edx-location b {
	white-space: nowrap;
}
.edx-location span {
	color: #8192ad;
	font-size: 14px;
}
.edx-footer-bottom {
	display: flex;
	flex: 0 0 100%;
	align-items: center;
	justify-content: flex-start;
	gap: 30px;
	min-width: 0;
	min-height: 70px;
	margin-top: 0;
	padding-top: 17px;
	border-top: 1px solid #e4eaf2;
}
.edx-footer-bottom > p {
	margin: 0;
	color: #8a9bb6;
	font-size: 14px;
}
.edx-footer-bottom > a {
	color: #6d82a5;
	font-size: 14px;
	font-weight: 400;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.edx-footer-bottom > nav {
	display: flex;
	gap: 10px;
	margin-left: auto;
}
.edx-footer .edx-social {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #f0f4f9;
}
.edx-footer .edx-social svg {
	width: 100%;
	height: 100%;
}
.edx-footer .edx-tg { color: #159cdf; }
.edx-footer .edx-vc { color: #0878ff; }
.edx-footer .edx-yt { color: #e32636; }
.edx-footer .edx-ten { color: #315d9a; }

@media (max-width: 700px) {
	.edx-footer {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 17px;
		width: min(calc(100% - 24px), 1360px);
		padding: 22px 16px 17px;
	}
	.edx-footer > div:first-child,
	.edx-location {
		min-width: 0;
		max-width: 100%;
	}
	.edx-footer > div:first-child strong,
	.edx-location b {
		white-space: normal;
	}
	.edx-footer a {
		font-size: 14px;
	}
	.edx-location {
		padding: 0;
	}
	.edx-footer-bottom {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
		width: 100%;
		min-height: 0;
		margin-top: 2px;
		padding-top: 14px;
	}
	.edx-footer-bottom > nav {
		order: -1;
		margin-left: 0;
	}
	.edx-footer-bottom > p,
	.edx-footer-bottom > a {
		display: block;
		font-size: 12px;
	}
}

/* Accessibility micro-fix: footer secondary copy remains quiet but readable. */
.edx-footer > div:first-child p,
.edx-location span,
.edx-footer-bottom > p,
.edx-footer-bottom > a {
	color: #52698e;
}

/* Exact footer-only rules promoted from the canonical homepage cascade. */
.edx-footer { display:grid;grid-template-columns:minmax(210px,280px) minmax(0,1fr) minmax(185px,240px);padding:32px 24px 22px; }
.edx-footer>div:first-child strong { font-size:25px;letter-spacing:-.035em; }
.edx-footer>div:first-child p { margin:7px 0 0;color:#7387a9;line-height:1.3; }
.edx-footer a { color:#49628a;font-size:16px;font-weight:600;text-decoration:none; }
.edx-location { display:flex;gap:13px;padding-top:7px;color:#536e9a; }
.edx-location svg { width:27px;height:27px;stroke:currentColor;stroke-width:3; }
.edx-location p { display:grid;margin:0; }
.edx-location b { font-size:16px; }
.edx-location span { color:#8192ad;font-size:14px; }
.edx-footer-bottom { grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;min-height:70px;margin-top:0;padding-top:17px;border-top:1px solid #e4eaf2; }
.edx-footer-bottom>p { margin:0;color:#8a9bb6;font-size:14px; }
.edx-footer-bottom>nav { display:flex;gap:10px; }
.edx-footer-bottom>nav a { display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#f0f4f9;font-size:16px; }
@media(max-width:899px) {.edx-footer { grid-template-columns:minmax(190px,.8fr) minmax(0,1.2fr); }
.edx-location { grid-column:1/-1; }
}
@media(max-width:600px) {.edx-footer { display:flex;flex-direction:column;gap:16px;padding:22px 16px 17px; }
.edx-footer a { font-size:14px; }
.edx-location { padding:0; }
.edx-footer-bottom { align-items:flex-start;flex-direction:column;gap:13px;width:100%;min-height:0;margin-top:2px;padding-top:14px; }
.edx-footer-bottom>nav { order:-1; }
}
.edx-footer-bottom .edx-social { width:38px;height:38px;border-radius:50%;background:#f0f4f9; }
.edx-footer-bottom>a { font-weight:400; }
.edx-footer>div:first-child strong { font-weight:800; }
.edx-footer>div:first-child p { font-size:15px; }
.edx-footer-bottom { padding-bottom:0; }
@media (max-width:700px) {.edx-footer { display:grid;grid-template-columns:minmax(0,1fr);gap:17px; }
.edx-location { grid-column:auto; }
.edx-footer-bottom { grid-column:auto;align-items:flex-start;flex-direction:column; }
.edx-footer-bottom>nav { order:-1; }
}
@media (max-width:700px) {.edx-footer { width:100%;max-width:100%; }
}
.edx-footer-bottom { justify-content:flex-start;gap:30px; }
.edx-footer-bottom>a { font-size:14px;color:#6d82a5;text-decoration:underline;text-underline-offset:3px; }
.edx-footer-bottom>nav { margin-left:auto; }
@media(max-width:700px) {.edx-footer-bottom { gap:5px; }
.edx-footer-bottom>a { font-size:12px; }
.edx-footer-bottom>nav { margin-left:0; }
}
.edx-footer-bottom .edx-social svg { width:100%!important;height:100%!important; }
.edx-location p { display:flex!important;flex-direction:column;gap:0!important;line-height:1.08; }
.edx-location span { margin-top:0!important;line-height:1.08; }
@media (max-width:700px) {.edx-footer-bottom>p, .edx-footer-bottom>a { display:block!important;visibility:visible!important;opacity:1!important; }
.edx-footer-bottom>a { order:1;margin-top:1px; }
.edx-footer-bottom>nav { order:2; }
}
.edx-footer { display:flex!important;flex-flow:row wrap!important;align-items:flex-start!important;align-content:flex-start!important;gap:clamp(1rem,2.6vw,2rem)!important;min-block-size:0!important;block-size:auto!important; }
.edx-footer>div:first-child { flex:0 0 max-content;min-inline-size:max-content; }
.edx-footer>div:first-child strong { display:block;white-space:nowrap; }
.edx-location { flex:0 0 max-content;min-inline-size:max-content; }
.edx-location b { white-space:nowrap; }
.edx-footer-bottom { flex:0 0 100%;min-inline-size:0; }
@media (max-width:389px) {.edx-footer>div:first-child, .edx-location { min-inline-size:0;max-inline-size:100%; }
.edx-footer>div:first-child { flex:1 1 100%; }
.edx-footer>div:first-child strong, .edx-location b { white-space:normal; }
}
 .edx-footer>div:first-child p,
.edx-location span, .edx-footer-bottom>p, .edx-footer-bottom>a { color:var(--edx-contrast-card-copy,#526b8c); }

/* Full-width surface; existing site rail bounds only the footer content. */
.edx-footer { width:100%; max-width:none; margin:0; padding-inline:max(var(--ed-space-4),calc((100% - var(--ed-content-width))/2)); }
@media(max-width:700px) { .edx-footer { padding-inline:var(--ed-space-3); } }

/* Canonical homepage social values, scoped so footer routes do not depend on channel CSS. */
.edx-footer .edx-social { border:1px solid #e4edf8; box-shadow:0 6px 18px #25598e0f; }
.edx-footer .edx-tg { color:#28a8e9; }
.edx-footer .edx-vc { font-weight:800; }
.edx-footer .edx-yt, .edx-footer .edx-ten { color:#f34b4b; }
.edx-footer .edx-ten { font-size:20px; font-weight:800; }

.edx-footer > .edx-footer-nav {
	display: grid;
	flex: 1 1 28rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-content: start;
	gap: 20px clamp(12px, 2vw, 28px);
	min-width: 0;
}
.edx-footer-nav h2 {
	margin: 0 0 10px;
	color: #071a52;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.3;
}
.edx-footer-nav .ed-nav-group-label {
	margin: 0 0 2px;
	color: #52698e;
	font-size: 13px;
	font-weight: 750;
	line-height: 1.4;
}
.edx-footer-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.edx-footer-nav a {
	display: flex;
	align-items: center;
	gap: 6px;
	min-height: 34px;
	line-height: 1.35;
	overflow-wrap: anywhere;
}
.edx-footer-nav .edx-footer-nav__catalog {
	color: #075fbf;
}
@media (max-width: 1100px) {
	.edx-footer > .edx-footer-nav { flex: 0 0 100%; }
}
@media (max-width: 600px) {
	.edx-footer > .edx-footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.edx-footer-nav__site { grid-column: 1 / -1; }
	.edx-footer-nav__site ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
	.edx-footer-nav a { min-height: 44px; }
}
