/* =========================================================
   TNTU REDESIGN — inner pages, staff, news, footer
   Uses tokens from twentyfourteen/style.css (:root)
========================================================= */

.masthead-fixed .site-main {
	margin-top: 0 !important;
}

/* footer always at the bottom of the screen */
html {
	margin-top: 0 !important;
}

#page {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

#main {
	flex: 1 0 auto;
}

.tntu-footer {
	flex-shrink: 0;
}

.tntu-main {
	display: block;
	background: var(--surface);
	color: var(--ink-700);
	font-size: 16px;
	line-height: 1.65;
}

.tntu-main a {
	color: var(--blue-700);
}

.tntu-main a:hover {
	color: var(--gold-600);
}

.tntu-main img {
	max-width: 100%;
	height: auto;
}

.gold-rule {
	width: 64px;
	height: 4px;
	margin-top: 22px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--gold-400), var(--gold-300));
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	color: var(--blue-700);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.badge-gold {
	display: inline-block;
	margin-bottom: 10px;
	padding: 4px 12px;
	border-radius: 999px;
	background: #fff6dc;
	color: #8a5d00;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* ================= BREADCRUMBS ================= */

.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 22px;
	font-size: 14px;
	color: var(--ink-400);
}

.breadcrumbs a {
	color: var(--ink-500) !important;
	text-decoration: none !important;
}

.breadcrumbs a:hover {
	color: var(--blue-700) !important;
}

.breadcrumbs .sep {
	color: var(--line);
}

.breadcrumbs .current {
	color: var(--ink-700);
	font-weight: 600;
}

/* ================= PAGE HERO ================= */

.page-hero {
	background:
		radial-gradient(circle at 92% 10%, rgba(32, 121, 212, 0.08), transparent 40%),
		var(--bg);
	border-bottom: 1px solid var(--line);
}

.page-hero-inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 40px 32px 52px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 56px;
	align-items: center;
}

.page-hero.has-image .page-hero-inner {
	grid-template-columns: 1.2fr 0.8fr;
}

.page-hero-title {
	max-width: 820px;
	margin: 0 !important;
	font-family: var(--font-display) !important;
	font-size: 44px !important;
	line-height: 1.1 !important;
	font-weight: 700;
	color: var(--ink-900);
	letter-spacing: -0.03em;
	text-transform: none !important;
}

.page-hero-lead {
	max-width: 720px;
	margin: 22px 0 0;
	font-size: 18px;
	line-height: 1.65;
	color: var(--ink-700);
}

.page-hero-media img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 20px;
	box-shadow: 0 20px 40px -20px rgba(16, 40, 74, 0.35);
}

/* ================= STATS ================= */

.page-stats {
	max-width: var(--maxw);
	margin: -28px auto 0;
	padding: 0 32px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	position: relative;
	z-index: 2;
}

.page-stats-1 { grid-template-columns: repeat(1, minmax(0, 320px)); }
.page-stats-2 { grid-template-columns: repeat(2, 1fr); }
.page-stats-3 { grid-template-columns: repeat(3, 1fr); }

.stat-card {
	padding: 22px 24px;
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: 16px;
	box-shadow: 0 10px 24px -16px rgba(16, 40, 74, 0.25);
}

.stat-value {
	font-family: var(--font-display);
	font-size: 34px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--blue-800);
}

.stat-label {
	margin-top: 6px;
	font-size: 14px;
	line-height: 1.4;
	color: var(--ink-500);
}

/* ================= LAYOUT ================= */

.page-shell {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 56px 32px 80px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 56px;
	align-items: start;
}

.page-shell-wide {
	grid-template-columns: minmax(0, 1fr);
}

.page-body {
	min-width: 0;
}

.edit-link {
	margin-top: 32px;
	font-size: 14px;
}

.edit-link a {
	color: var(--ink-400) !important;
}

/* ================= PROSE (editor content) ================= */

.prose {
	max-width: 760px;
	font-size: 17px;
	line-height: 1.75;
	color: var(--ink-700);
}

.prose-wide,
.page-shell-wide .prose {
	max-width: none;
}

.prose > *:first-child {
	margin-top: 0 !important;
}

.prose p {
	margin: 0 0 1.2em;
}

.prose h2,
.prose h3,
.prose h4 {
	font-family: var(--font-display) !important;
	color: var(--ink-900);
	text-transform: none !important;
	letter-spacing: -0.01em;
	line-height: 1.25;
}

.prose h2 {
	margin: 2em 0 0.7em;
	padding-bottom: 12px;
	font-size: 28px;
	border-bottom: 1px solid var(--line);
	position: relative;
}

.prose h2::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 48px;
	height: 3px;
	border-radius: 999px;
	background: var(--gold-400);
}

.prose h3 {
	margin: 1.8em 0 0.6em;
	font-size: 22px;
}

.prose h4 {
	margin: 1.6em 0 0.5em;
	font-size: 18px;
}

.prose a {
	color: var(--blue-700) !important;
	text-decoration: underline;
	text-decoration-color: var(--blue-300);
	text-underline-offset: 3px;
}

.prose a:hover {
	color: var(--gold-600) !important;
	text-decoration-color: var(--gold-400);
}

.prose strong,
.prose b {
	color: var(--ink-900);
	font-weight: 700;
}

.prose ul,
.prose ol {
	margin: 0 0 1.4em !important;
	padding: 0 !important;
	list-style: none !important;
}

.prose li {
	position: relative;
	margin: 0 0 0.6em;
	padding-left: 28px;
}

.prose ul > li::before {
	content: "";
	position: absolute;
	left: 6px;
	top: 0.72em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--blue-500);
}

/* list-item counter respects <ol start="N"> (old content splits lists into separate <ol>) */
.prose ol > li {
	display: list-item;
	padding-left: 40px;
}

.prose ol > li::before {
	content: counter(list-item);
	position: absolute;
	left: 0;
	top: 0.15em;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--blue-50);
	color: var(--blue-800);
	font-size: 13px;
	font-weight: 800;
	line-height: 26px;
	text-align: center;
}

.prose li > ul,
.prose li > ol {
	margin: 0.6em 0 0 !important;
}

.prose blockquote {
	margin: 1.6em 0;
	padding: 20px 26px;
	border: none;
	border-left: 4px solid var(--gold-400);
	border-radius: 0 14px 14px 0;
	background: var(--bg);
	color: var(--ink-900);
	font-family: var(--font-display);
	font-size: 19px;
	font-style: italic;
	line-height: 1.6;
}

.prose blockquote p:last-child {
	margin-bottom: 0;
}

.prose img {
	border-radius: 14px;
}

.prose .alignleft {
	float: left;
	margin: 0.3em 1.6em 1em 0;
}

.prose .alignright {
	float: right;
	margin: 0.3em 0 1em 1.6em;
}

.prose .aligncenter {
	display: block;
	margin: 1.4em auto;
}

.prose .wp-caption {
	max-width: 100%;
}

.prose .wp-caption-text {
	margin-top: 8px;
	font-size: 14px;
	color: var(--ink-500);
	text-align: center;
}

.prose table {
	width: 100%;
	margin: 0 0 1.6em;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--line);
	border-radius: 14px;
	overflow: hidden;
	font-size: 15px;
}

.prose th,
.prose td {
	padding: 12px 16px;
	border: none;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.prose th {
	background: var(--blue-50);
	text-transform: none;
	letter-spacing: 0;
	color: var(--ink-900);
	font-weight: 700;
}

.prose tr:last-child td {
	border-bottom: none;
}

.prose tr:nth-child(even) td {
	background: #fafcff;
}

.prose hr {
	margin: 2.4em 0;
	border: 0;
	height: 1px;
	background: var(--line);
}

.prose iframe {
	max-width: 100%;
	border-radius: 14px;
}

.prose::after {
	content: "";
	display: table;
	clear: both;
}

.prose h3.prose-section {
	margin: 2.2em 0 0.8em;
	padding-left: 14px;
	border-left: 4px solid var(--gold-400);
	font-size: 22px;
	line-height: 1.3;
}

.prose > h3.prose-section:first-child {
	margin-top: 0;
}

/* ================= QUOTE ================= */

.page-quote {
	position: relative;
	max-width: 760px;
	margin: 0 0 40px;
	padding: 30px 32px 28px 76px;
	border-radius: 18px;
	background: var(--blue-800);
	color: #ffffff;
	overflow: hidden;
}

.page-quote::before {
	content: "\201C";
	position: absolute;
	left: 22px;
	top: 6px;
	font-family: var(--font-display);
	font-size: 92px;
	line-height: 1;
	color: var(--gold-400);
}

.page-quote blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: #ffffff;
	font-family: var(--font-display);
	font-size: 20px;
	font-style: italic;
	line-height: 1.55;
}

.page-quote figcaption {
	margin-top: 14px;
	color: var(--blue-300);
	font-size: 14px;
	font-weight: 700;
}

/* ================= TIMELINE (History) ================= */

.prose-timeline {
	position: relative;
	padding-left: 44px;
}

.prose-timeline::before {
	content: "";
	position: absolute;
	left: 11px;
	top: 8px;
	bottom: 8px;
	width: 2px;
	background: linear-gradient(var(--blue-300), var(--line));
	border-radius: 2px;
}

.prose-timeline h2,
.prose-timeline h3 {
	position: relative;
	border-bottom: none;
	padding-bottom: 0;
}

.prose-timeline h2::after {
	display: none;
}

.prose-timeline h2::before,
.prose-timeline h3::before {
	content: "";
	position: absolute;
	left: -44px;
	top: 0.2em;
	width: 24px;
	height: 24px;
	box-sizing: border-box;
	border-radius: 50%;
	background: #ffffff;
	border: 5px solid var(--blue-700);
	box-shadow: 0 0 0 5px var(--blue-50);
}

.prose-timeline h3::before {
	left: -40px;
	width: 16px;
	height: 16px;
	border-width: 4px;
	border-color: var(--gold-400);
	box-shadow: 0 0 0 4px #fff6dc;
}

/* ================= ASIDE ================= */

.page-aside {
	position: sticky;
	top: 24px;
	display: grid;
	gap: 20px;
}

.aside-card {
	padding: 22px 22px 18px;
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: 16px;
}

.aside-title {
	margin-bottom: 12px;
	color: var(--ink-400);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.aside-nav ul,
.aside-recent ul {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.aside-nav li {
	margin: 0;
}

.aside-nav a {
	display: block;
	margin: 0 -10px;
	padding: 8px 10px;
	border-radius: 9px;
	color: var(--ink-700) !important;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.35;
	text-decoration: none !important;
}

.aside-nav a:hover {
	background: var(--blue-50);
	color: var(--blue-700) !important;
}

.aside-nav .is-current > a {
	background: var(--blue-50);
	color: var(--blue-800) !important;
	font-weight: 700;
	box-shadow: inset 3px 0 0 var(--gold-400);
}

.aside-contacts dl {
	margin: 0;
}

.aside-contacts dt {
	margin-top: 12px;
	color: var(--ink-400);
	font-size: 13px;
	font-weight: 600;
}

.aside-contacts dt:first-child {
	margin-top: 0;
}

.aside-contacts dd {
	margin: 2px 0 0;
	color: var(--ink-900);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.45;
}

.aside-contacts a {
	color: var(--blue-800) !important;
	text-decoration: none !important;
	word-break: break-word;
}

.aside-recent li {
	padding: 10px 0;
	border-top: 1px solid var(--line);
}

.aside-recent li:first-child {
	padding-top: 0;
	border-top: 0;
}

.aside-recent time {
	display: block;
	color: var(--ink-400);
	font-size: 13px;
}

.aside-recent a {
	color: var(--ink-900) !important;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none !important;
}

.aside-recent a:hover {
	color: var(--blue-700) !important;
}

/* ================= SECTION HEAD ================= */

.section-head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 28px;
}

.section-title {
	margin: 0 !important;
	font-family: var(--font-display) !important;
	font-size: 28px !important;
	line-height: 1.2;
	color: var(--ink-900);
	text-transform: none !important;
}

.section-count {
	min-width: 34px;
	height: 34px;
	padding: 0 10px;
	border-radius: 999px;
	background: var(--blue-50);
	color: var(--blue-800);
	font-weight: 800;
	font-size: 14px;
	display: inline-grid;
	place-items: center;
}

/* ================= STAFF GRID ================= */

.staff-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}

.staff-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: 18px;
	overflow: hidden;
	color: inherit !important;
	text-decoration: none !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}

.staff-card:hover {
	transform: translateY(-3px);
	border-color: var(--blue-300);
	box-shadow: 0 18px 36px -22px rgba(16, 40, 74, 0.45);
}

.staff-photo {
	aspect-ratio: 4 / 4.4;
	background: linear-gradient(160deg, var(--blue-50), #dce9f7);
	display: grid;
	place-items: center;
	overflow: hidden;
}

.staff-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
	transition: transform 0.35s ease;
}

.staff-card:hover .staff-photo img {
	transform: scale(1.03);
}

.staff-initials {
	font-family: var(--font-display);
	font-size: 46px;
	font-weight: 700;
	color: var(--blue-700);
	letter-spacing: 0.02em;
}

.staff-card-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 18px 20px 20px;
}

.staff-name {
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ink-900);
}

.staff-position {
	margin-top: 8px;
	font-size: 14px;
	line-height: 1.45;
	color: var(--ink-700);
}

.staff-degree {
	margin-top: 4px;
	font-size: 13px;
	line-height: 1.45;
	color: var(--ink-500);
}

.staff-more {
	margin-top: auto;
	padding-top: 14px;
	color: var(--blue-700);
	font-size: 14px;
	font-weight: 700;
}

.staff-extra.has-cards {
	margin-top: 64px;
	padding-top: 40px;
	border-top: 1px solid var(--line);
}

/* old content: list item that only wraps a nested list */
.prose li:has(> ul:first-child)::before,
.prose li:has(> ol:first-child)::before {
	display: none;
}

.prose li:has(> ul:first-child),
.prose li:has(> ol:first-child) {
	padding-left: 0;
}

.staff-extra .section-title {
	margin-bottom: 24px !important;
}

/* ================= PROFILE ================= */

.profile-hero {
	background:
		radial-gradient(circle at 90% 0%, rgba(32, 121, 212, 0.1), transparent 45%),
		var(--bg);
	border-bottom: 1px solid var(--line);
}

.profile-hero-inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 40px 32px 52px;
}

.profile-head {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}

.profile-photo {
	aspect-ratio: 4 / 4.6;
	border-radius: 22px;
	overflow: hidden;
	background: linear-gradient(160deg, #ffffff, #dce9f7);
	border: 6px solid #ffffff;
	box-shadow: 0 20px 40px -24px rgba(16, 40, 74, 0.5);
	display: grid;
	place-items: center;
}

.profile-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
}

.profile-photo .staff-initials {
	font-size: 72px;
}

.profile-name {
	margin: 0 !important;
	font-family: var(--font-display) !important;
	font-size: 42px !important;
	line-height: 1.1 !important;
	color: var(--ink-900);
	letter-spacing: -0.02em;
	text-transform: none !important;
}

.profile-position {
	margin-top: 22px;
	color: var(--ink-900);
	font-size: 18px;
	font-weight: 600;
}

.profile-degree {
	margin-top: 4px;
	color: var(--ink-500);
	font-size: 16px;
}

.profile-research {
	max-width: 680px;
	margin-top: 24px;
	padding: 18px 22px;
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: 14px;
}

.profile-research .info-label {
	margin-bottom: 6px;
}

.profile-research p {
	margin: 0;
	color: var(--ink-700);
	line-height: 1.6;
}

.profile-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 24px;
}

.profile-links .hero-btn {
	min-height: 40px;
	padding: 0 18px;
	font-size: 14px;
}

/* ================= NEWS ================= */

.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.post-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: 18px;
	overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.post-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 36px -22px rgba(16, 40, 74, 0.45);
}

.post-card-media {
	display: block;
	aspect-ratio: 16 / 10;
	background: linear-gradient(135deg, var(--blue-800), var(--blue-500));
	overflow: hidden;
}

.post-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.post-card-placeholder {
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	color: rgba(255, 255, 255, 0.9);
	font-family: var(--font-display);
	font-size: 42px;
	font-weight: 700;
}

.post-card-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 20px 22px 22px;
}

.post-meta {
	color: var(--ink-400);
	font-size: 13px;
	font-weight: 600;
}

.post-meta .dot {
	margin: 0 6px;
}

.post-card-title {
	margin: 10px 0 0 !important;
	font-family: var(--font-display) !important;
	font-size: 20px !important;
	line-height: 1.3 !important;
	text-transform: none !important;
}

.post-card-title a {
	color: var(--ink-900) !important;
	text-decoration: none !important;
}

.post-card-title a:hover {
	color: var(--blue-700) !important;
}

.post-card-excerpt {
	margin: 10px 0 0;
	color: var(--ink-500);
	font-size: 15px;
	line-height: 1.6;
}

.post-card-more {
	margin-top: auto;
	padding-top: 16px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
}

.tntu-main .pagination,
.tntu-main .navigation.pagination {
	margin-top: 44px;
	border: 0;
}

.tntu-main .pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0;
	border: 0;
	background: none;
}

.tntu-main .pagination .page-numbers {
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	display: inline-grid;
	place-items: center;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #ffffff;
	color: var(--ink-700) !important;
	font-weight: 700;
	text-decoration: none !important;
	text-transform: none;
	letter-spacing: 0;
}

.tntu-main .pagination .page-numbers:hover {
	background: var(--blue-50);
}

.tntu-main .pagination .page-numbers.current {
	background: var(--blue-800);
	border-color: var(--blue-800);
	color: #ffffff !important;
}

.post-cover {
	margin: 0 0 32px;
}

.post-cover img {
	display: block;
	width: 100%;
	border-radius: 18px;
}

.post-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 28px;
}

.post-tags a {
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--blue-50);
	color: var(--blue-800) !important;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none !important;
}

.post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 44px;
	padding-top: 28px;
	border-top: 1px solid var(--line);
}

.post-nav a {
	display: block;
	height: 100%;
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-radius: 14px;
	text-decoration: none !important;
}

.post-nav a:hover {
	border-color: var(--blue-300);
	background: var(--blue-50);
}

.post-nav-next {
	text-align: right;
}

.post-nav-label {
	display: block;
	color: var(--ink-400);
	font-size: 13px;
	font-weight: 700;
}

.post-nav-title {
	display: block;
	margin-top: 4px;
	color: var(--ink-900);
	font-weight: 600;
	line-height: 1.35;
}

.post-comments {
	margin-top: 48px;
}

.post-comments .comments-area {
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
}

/* ================= SEARCH / EMPTY / 404 ================= */

.inline-search {
	display: flex;
	gap: 10px;
	max-width: 560px;
	margin: 0 0 36px;
}

.inline-search input[type="search"] {
	flex: 1;
	min-height: 46px;
	padding: 0 18px;
	border: 1px solid var(--line) !important;
	border-radius: 999px;
	background: #ffffff;
	color: var(--ink-900);
	font-size: 15px;
	outline: none;
}

.inline-search input[type="search"]:focus {
	border-color: var(--blue-300) !important;
	box-shadow: 0 0 0 4px var(--blue-50);
}

.inline-search .hero-btn {
	border: 0;
	cursor: pointer;
}

.empty-state {
	padding: 48px 32px;
	border: 1px dashed var(--line);
	border-radius: 18px;
	text-align: center;
	background: var(--bg);
}

.empty-title {
	font-family: var(--font-display);
	font-size: 24px;
	font-weight: 700;
	color: var(--ink-900);
}

.empty-state p {
	margin: 8px 0 0;
	color: var(--ink-500);
}

.error-404 {
	max-width: 640px;
	margin: 0 auto;
	padding: 90px 32px 110px;
	text-align: center;
}

.error-404 .error-code {
	font-family: var(--font-display);
	font-size: 120px;
	font-weight: 700;
	line-height: 1;
	color: var(--blue-800);
	letter-spacing: -0.04em;
}

.error-404 h1 {
	margin: 16px 0 0;
	font-size: 34px;
	text-transform: none;
}

.error-404 .gold-rule {
	margin: 20px auto 0;
}

.error-404 p {
	margin: 20px 0 28px;
	color: var(--ink-500);
	font-size: 17px;
}

.error-404 .inline-search {
	margin: 0 auto 18px;
}

/* ================= FOOTER ================= */

.tntu-footer {
	margin-top: auto;
	background: var(--blue-950);
	color: rgba(255, 255, 255, 0.75);
	font-size: 15px;
	line-height: 1.6;
}

.tntu-footer-inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 32px;
}

.tntu-footer > .tntu-footer-inner {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 48px;
	padding-top: 56px;
	padding-bottom: 48px;
}

.footer-title {
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
	color: #ffffff;
}

.footer-brand p {
	max-width: 360px;
	margin: 10px 0 16px;
}

.footer-label {
	margin-bottom: 14px;
	color: var(--gold-300);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.tntu-footer a {
	color: #ffffff !important;
	text-decoration: none !important;
}

.tntu-footer a:hover {
	color: var(--gold-300) !important;
}

.footer-link-accent {
	font-weight: 700;
}

.footer-menu,
.footer-contacts {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.footer-menu li,
.footer-contacts li {
	margin: 0 0 8px;
}

.tntu-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 13px;
	color: rgba(255, 255, 255, 0.55);
}

.tntu-footer-bottom .tntu-footer-inner {
	padding-top: 18px;
	padding-bottom: 18px;
}

.footer-menu-columns {
	columns: 2;
	column-gap: 24px;
}

/* ================= BURGER MENU ================= */

.navbar-burger,
.submenu-toggle {
	display: none;
}

.navbar-menu .current-menu-ancestor > a {
	color: var(--gold-300) !important;
}

@media screen and (max-width: 900px) {
	.navbar-inner {
		padding: 0 20px !important;
	}

	.navbar-burger {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		margin: 0;
		padding: 14px 0 !important;
		border: 0 !important;
		background: none !important;
		color: #ffffff !important;
		font-size: 15px;
		font-weight: 700;
		cursor: pointer;
	}

	.navbar-burger-icon {
		display: grid;
		gap: 4px;
		width: 22px;
	}

	.navbar-burger-icon span {
		display: block;
		height: 2px;
		border-radius: 2px;
		background: currentColor;
		transition: transform 0.2s, opacity 0.2s;
	}

	.navbar-burger[aria-expanded="true"] .navbar-burger-icon span:nth-child(1) {
		transform: translateY(6px) rotate(45deg);
	}

	.navbar-burger[aria-expanded="true"] .navbar-burger-icon span:nth-child(2) {
		opacity: 0;
	}

	.navbar-burger[aria-expanded="true"] .navbar-burger-icon span:nth-child(3) {
		transform: translateY(-6px) rotate(-45deg);
	}

	.navbar .navbar-menu {
		display: none !important;
		flex-direction: column;
		align-items: stretch !important;
		gap: 0 !important;
		padding: 0 0 14px !important;
	}

	.navbar .navbar-menu.is-open {
		display: flex !important;
	}

	.navbar-menu > li {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
	}

	.navbar-menu > li > a {
		flex: 1;
		padding: 14px 4px !important;
		font-size: 16px !important;
		border-radius: 0 !important;
		background: none !important;
	}

	.submenu-toggle {
		display: grid;
		place-items: center;
		width: 44px;
		height: 44px;
		padding: 0 !important;
		border: 0 !important;
		border-radius: 10px !important;
		background: rgba(255, 255, 255, 0.08) !important;
		color: #ffffff !important;
		cursor: pointer;
	}

	.submenu-toggle svg {
		width: 18px;
		height: 18px;
		fill: none;
		stroke: currentColor;
		stroke-width: 2;
		transition: transform 0.2s;
	}

	.is-open > .submenu-toggle svg {
		transform: rotate(180deg);
	}

	.navbar .navbar-menu ul {
		position: static !important;
		display: none;
		flex-basis: 100%;
		min-width: 0 !important;
		margin: 0 0 12px !important;
		padding: 6px !important;
		border: 0 !important;
		border-radius: 12px !important;
		background: rgba(255, 255, 255, 0.06) !important;
		box-shadow: none !important;
		opacity: 1 !important;
		visibility: visible !important;
		transform: none !important;
	}

	.navbar .navbar-menu li.is-open > ul {
		display: block;
	}

	.navbar .navbar-menu ul a {
		color: rgba(255, 255, 255, 0.85) !important;
		white-space: normal;
	}

	.navbar .navbar-menu ul a:hover,
	.navbar .navbar-menu ul .current-menu-item > a {
		background: rgba(255, 255, 255, 0.08) !important;
		color: var(--gold-300) !important;
	}
}

/* ================= RESPONSIVE ================= */

@media screen and (max-width: 1100px) {
	.staff-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.page-shell {
		grid-template-columns: minmax(0, 1fr) 280px;
		gap: 40px;
	}
}

@media screen and (max-width: 900px) {
	.page-hero-inner,
	.profile-hero-inner {
		padding: 28px 20px 40px;
	}

	.page-hero.has-image .page-hero-inner {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.page-hero-title {
		font-size: 32px !important;
	}

	.page-hero-lead {
		font-size: 16px;
	}

	.page-stats {
		margin-top: 24px;
		padding: 0 20px;
		grid-template-columns: repeat(2, 1fr) !important;
	}

	.page-shell {
		grid-template-columns: minmax(0, 1fr);
		padding: 40px 20px 56px;
		gap: 40px;
	}

	.page-aside {
		position: static;
	}

	.prose {
		font-size: 16px;
	}

	.prose h2 {
		font-size: 24px;
	}

	.staff-grid,
	.post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}

	.profile-head {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.profile-photo {
		max-width: 240px;
	}

	.profile-name {
		font-size: 32px !important;
	}

	.tntu-footer-inner {
		padding: 0 20px;
	}

	.tntu-footer > .tntu-footer-inner {
		grid-template-columns: 1fr;
		gap: 32px;
		padding-top: 40px;
		padding-bottom: 32px;
	}
}

@media screen and (max-width: 560px) {
	.staff-grid,
	.post-grid,
	.post-nav {
		grid-template-columns: minmax(0, 1fr);
	}

	.page-stats {
		grid-template-columns: 1fr !important;
	}

	.page-quote {
		padding: 56px 22px 22px;
	}

	.prose-timeline {
		padding-left: 34px;
	}

	.prose-timeline h2::before {
		left: -34px;
	}

	.prose-timeline h3::before {
		left: -30px;
	}

	.prose-timeline::before {
		left: 11px;
	}

	.inline-search {
		flex-direction: column;
	}

	.post-nav-next {
		text-align: left;
	}

	.error-404 .error-code {
		font-size: 88px;
	}
}

/* ================= MOBILE POLISH ================= */

html,
body {
	overflow-x: hidden;
}

@supports (overflow: clip) {
	html,
	body {
		overflow-x: clip;
	}
}

/* long URLs / words in old content must wrap */
.prose,
.prose a,
.aside-card,
.profile-research {
	overflow-wrap: anywhere;
	word-break: normal;
}

.prose table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
}

.prose img,
.prose video,
.prose embed,
.prose object {
	max-width: 100% !important;
	height: auto !important;
}

.prose [style*="width"] {
	max-width: 100% !important;
}

@media screen and (max-width: 900px) {
	/* compact header */
	.topbar-inner {
		flex-direction: row !important;
		flex-wrap: wrap;
		align-items: center !important;
		gap: 12px !important;
		padding: 12px 16px !important;
	}

	.brand {
		flex: 1 1 0;
		gap: 10px;
	}

	.brand-logo {
		width: 44px !important;
		height: 44px !important;
		max-width: 44px !important;
	}

	.brand-title {
		font-size: 1rem;
		line-height: 1.2;
	}

	.brand-subtitle {
		display: none;
	}

	.topbar-tools {
		width: 100% !important;
		gap: 8px;
	}

	.header-search-form {
		flex: 1;
	}

	.header-search-input,
	.header-search-input:focus {
		padding-top: 0.55em;
		padding-bottom: 0.55em;
		font-size: 16px; /* prevents iOS zoom on focus */
	}

	.navbar-inner {
		padding: 0 16px !important;
	}

	/* home */
	.home-hero {
		padding: 32px 16px 28px !important;
		gap: 20px !important;
	}

	.home-hero h1 {
		font-size: 30px !important;
	}

	.home-hero .eyebrow {
		margin-bottom: 12px;
		font-size: 11px;
	}

	.hero-actions {
		margin-top: 20px;
	}

	.hero-btn {
		flex: 1 1 auto;
	}

	.home-info-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		padding: 0 16px !important;
		margin-bottom: 40px !important;
	}

	.info-card {
		min-height: 0 !important;
		padding: 16px !important;
		border: 0 !important;
		border-top: 1px solid var(--line) !important;
		border-left: 1px solid var(--line) !important;
	}

	.info-card:nth-child(2n) {
		border-right: 1px solid var(--line) !important;
	}

	.info-card:nth-last-child(-n + 2) {
		border-bottom: 1px solid var(--line) !important;
	}

	.info-label {
		margin-bottom: 6px !important;
		font-size: 10px !important;
	}

	.info-value {
		font-size: 14px !important;
		overflow-wrap: anywhere;
	}

	/* inner pages */
	.page-hero-inner,
	.profile-hero-inner {
		padding: 20px 16px 28px;
	}

	.breadcrumbs {
		margin-bottom: 14px;
		font-size: 13px;
	}

	.eyebrow {
		margin-bottom: 8px;
		font-size: 11px;
		letter-spacing: 0.12em;
	}

	.page-hero-title {
		font-size: 28px !important;
	}

	.gold-rule {
		margin-top: 14px;
	}

	.page-shell {
		padding: 28px 16px 48px;
		gap: 32px;
	}

	.page-stats {
		padding: 0 16px;
	}

	.prose h2 {
		font-size: 22px;
	}

	.prose h3,
	.prose h3.prose-section {
		font-size: 19px;
	}

	.page-quote {
		margin-bottom: 28px;
	}

	.page-quote blockquote {
		font-size: 17px;
	}

	/* staff */
	.section-head {
		margin-bottom: 18px;
	}

	.section-title {
		font-size: 22px !important;
	}

	.staff-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 12px;
	}

	.staff-card {
		border-radius: 14px;
	}

	.staff-card-body {
		padding: 12px 12px 14px;
	}

	.staff-name {
		font-size: 15px;
	}

	.staff-position,
	.staff-degree {
		font-size: 12px;
	}

	.staff-more {
		padding-top: 10px;
		font-size: 13px;
	}

	.staff-initials {
		font-size: 34px;
	}

	/* profile */
	.profile-head {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.profile-photo {
		max-width: 150px;
	}

	.profile-photo {
		border-width: 4px;
		border-radius: 16px;
	}

	.profile-photo .staff-initials {
		font-size: 36px;
	}

	.profile-name {
		font-size: 24px !important;
	}

	.profile-info .gold-rule {
		margin-top: 10px;
	}

	.profile-position {
		margin-top: 12px;
		font-size: 15px;
	}

	.profile-links .hero-btn {
		flex: 0 1 auto;
	}

	/* footer */
	.tntu-footer > .tntu-footer-inner {
		padding-left: 16px;
		padding-right: 16px;
	}
}

@media screen and (max-width: 560px) {
	.staff-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.home-info-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media screen and (max-width: 340px) {
	.staff-grid,
	.home-info-grid {
		grid-template-columns: 1fr !important;
	}
}

@media screen and (max-width: 900px) {
	.info-value a[href^="mailto:"] {
		font-size: 13px;
		letter-spacing: -0.01em;
		overflow-wrap: normal;
		white-space: nowrap;
	}
}
