/*
Theme Name: Uncommitted University
Template: divi5
Description: Child theme of Divi 5 matching the app.uncommittedu.com design system (dark navy, UU blue, Bebas Neue/Oswald/Inter).
Version: 1.4.1
Author: Uncommitted University
*/

:root {
	--uu-bg: #0B1A26;
	--uu-fg: #F3EFE3;
	--uu-card: #12222f;
	--uu-border: rgba(255, 255, 255, 0.10);
	--uu-primary: #4282D8;
	--uu-primary-hover: #1E315A;
	--uu-secondary: #16311F;
	--uu-accent: #C1652E;
	--uu-muted: rgba(243, 239, 227, 0.72);

	--uu-font-display: "Bebas Neue", "Oswald", sans-serif;
	--uu-font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
	--uu-font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
}

/* ---------- Base ---------- */
body {
	background-color: var(--uu-bg);
	color: var(--uu-fg);
	font-family: var(--uu-font-sans);
	-webkit-font-smoothing: antialiased;
}

#page-container,
#main-content,
#et-main-area {
	background-color: var(--uu-bg);
}

a {
	color: var(--uu-primary);
}
a:hover {
	color: #6ea3e8;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.uu-display {
	font-family: var(--uu-font-display);
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: var(--uu-fg);
}

.uu-mono, code, kbd {
	font-family: var(--uu-font-mono);
	font-feature-settings: "tnum" 1;
}

/* ---------- Motion (ported verbatim from app styles.css) ---------- */
@keyframes uu-fade-up {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}

.uu-enter {
	animation: uu-fade-up 220ms ease-out both;
}

.uu-card-hover {
	transition: background-color 150ms ease, border-color 150ms ease,
		box-shadow 150ms ease, transform 150ms ease;
}
.uu-card-hover:hover {
	border-color: color-mix(in oklab, var(--uu-primary) 40%, var(--uu-border));
	box-shadow: 0 6px 20px -12px rgba(0, 0, 0, 0.5);
	transform: translateY(-2px);
}

.uu-btn {
	transition: background-color 150ms ease, border-color 150ms ease,
		color 150ms ease, transform 150ms ease, filter 150ms ease,
		box-shadow 150ms ease;
}
.uu-btn:hover { filter: brightness(1.08); }
.uu-btn:active { transform: translateY(0.5px); }

@media (prefers-reduced-motion: reduce) {
	.uu-enter { animation: none !important; }
	.uu-card-hover, .uu-btn { transition: none !important; }
}

/* ---------- Blog archive ---------- */
.uu-archive {
	max-width: 1200px;
	margin: 0 auto;
	padding: 64px 24px 96px;
}
.uu-archive-header {
	text-align: center;
	margin-bottom: 48px;
}
.uu-archive-header h1 {
	font-size: clamp(2.5rem, 5vw, 3.5rem);
	margin-bottom: 12px;
}
.uu-archive-header p {
	color: var(--uu-muted);
	font-size: 1.125rem;
	max-width: 640px;
	margin: 0 auto;
}
.uu-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 28px;
}
.uu-post-card {
	background-color: var(--uu-card);
	border: 1px solid var(--uu-border);
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.uu-post-card-media {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: linear-gradient(135deg, var(--uu-secondary), var(--uu-bg));
}
.uu-post-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 400ms ease;
}
.uu-post-card:hover .uu-post-card-media img {
	transform: scale(1.05);
}
.uu-post-card-body {
	padding: 20px 22px 24px;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.uu-post-card-tag {
	font-family: var(--uu-font-mono);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--uu-primary);
	margin-bottom: 10px;
}
.uu-post-card h2 {
	font-size: 1.375rem;
	line-height: 1.15;
	margin: 0 0 10px;
}
.uu-post-card h2 a {
	color: var(--uu-fg);
	text-decoration: none;
}
.uu-post-card h2 a:hover {
	color: var(--uu-primary);
}
.uu-post-card-excerpt {
	color: var(--uu-muted);
	font-size: 0.9375rem;
	line-height: 1.5;
	flex: 1;
	margin: 0 0 16px;
}
.uu-post-card-meta {
	font-family: var(--uu-font-mono);
	font-size: 0.75rem;
	color: var(--uu-muted);
	text-transform: none;
}
.uu-archive-pagination {
	margin-top: 56px;
	display: flex;
	justify-content: center;
	gap: 8px;
}
.uu-archive-pagination a,
.uu-archive-pagination span {
	font-family: var(--uu-font-mono);
	padding: 8px 16px;
	border: 1px solid var(--uu-border);
	border-radius: 8px;
	color: var(--uu-fg);
	text-decoration: none;
}
.uu-archive-pagination .current {
	background-color: var(--uu-primary);
	border-color: var(--uu-primary);
}
.uu-archive-pagination a:hover {
	border-color: var(--uu-primary);
}

/* ---------- Homepage ---------- */
.uu-hero {
	position: relative;
	padding: 96px 24px 88px;
	text-align: center;
	background:
		radial-gradient(1200px 600px at 20% 0%, rgba(22, 49, 31, 0.5), transparent 60%),
		radial-gradient(900px 500px at 90% 100%, rgba(193, 101, 46, 0.25), transparent 55%);
}
.uu-hero-inner {
	max-width: 760px;
	margin: 0 auto;
}
.uu-hero h1 {
	font-size: clamp(2.75rem, 6vw, 4.25rem);
	line-height: 1.02;
	margin: 0 0 20px;
}
.uu-hero p {
	color: var(--uu-muted);
	font-size: 1.1875rem;
	line-height: 1.5;
	max-width: 600px;
	margin: 0 auto 36px;
}
.uu-hero-ctas {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
}
.uu-btn-primary,
.uu-btn-secondary {
	font-family: var(--uu-font-mono);
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 14px 28px;
	border-radius: 8px;
	text-decoration: none;
	display: inline-block;
}
.uu-btn-primary {
	background: var(--uu-primary);
	color: #fff;
}
.uu-btn-secondary {
	background: transparent;
	color: var(--uu-fg);
	border: 1px solid var(--uu-border);
}

.uu-section {
	max-width: 1200px;
	margin: 0 auto;
	padding: 72px 24px;
}
.uu-section-header {
	text-align: center;
	margin-bottom: 44px;
}
.uu-section-header h2 {
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	margin: 0 0 12px;
}
.uu-section-header p {
	color: var(--uu-muted);
	font-size: 1.0625rem;
	max-width: 560px;
	margin: 0 auto;
}
.uu-section-alt {
	background-color: var(--uu-card);
	border-top: 1px solid var(--uu-border);
	border-bottom: 1px solid var(--uu-border);
}

.uu-pillar-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 24px;
}
.uu-pillar-card {
	background-color: var(--uu-bg);
	border: 1px solid var(--uu-border);
	border-radius: 12px;
	padding: 28px 24px;
	text-decoration: none;
	display: block;
}
.uu-pillar-card .uu-pillar-num {
	font-family: var(--uu-font-mono);
	font-size: 0.75rem;
	color: var(--uu-primary);
	letter-spacing: 0.08em;
	margin-bottom: 14px;
}
.uu-pillar-card h3 {
	font-size: 1.25rem;
	margin: 0 0 10px;
	color: var(--uu-fg);
}
.uu-pillar-card p {
	color: var(--uu-muted);
	font-size: 0.9375rem;
	line-height: 1.5;
	margin: 0;
}

.uu-how-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 32px;
	text-align: center;
}
.uu-how-step .uu-how-num {
	font-family: var(--uu-font-display);
	font-size: 2.5rem;
	color: var(--uu-primary);
	line-height: 1;
	margin-bottom: 12px;
}
.uu-how-step h3 {
	font-size: 1.125rem;
	margin: 0 0 10px;
}
.uu-how-step p {
	color: var(--uu-muted);
	font-size: 0.9375rem;
	line-height: 1.5;
	margin: 0;
}

.uu-cta-band {
	text-align: center;
	padding: 80px 24px;
	background: linear-gradient(135deg, var(--uu-secondary), var(--uu-bg));
}
.uu-cta-band h2 {
	font-size: clamp(2rem, 4vw, 2.75rem);
	margin: 0 0 16px;
}
.uu-cta-band p {
	color: var(--uu-muted);
	margin: 0 0 32px;
}

/* ---------- Single post ---------- */
.uu-single-hero {
	position: relative;
	max-height: 480px;
	overflow: hidden;
}
.uu-single-hero img {
	width: 100%;
	height: 480px;
	object-fit: cover;
	display: block;
}
.uu-single-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(11,26,38,0) 40%, var(--uu-bg) 100%);
}
.uu-single-wrap {
	max-width: 760px;
	margin: 0 auto;
	padding: 56px 24px 96px;
}
.uu-single-wrap.uu-has-hero {
	margin-top: -80px;
	position: relative;
	z-index: 1;
}
.uu-single-tag {
	font-family: var(--uu-font-mono);
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--uu-primary);
	margin-bottom: 14px;
}
.uu-single-wrap h1.entry-title {
	font-size: clamp(2.25rem, 4.5vw, 3.25rem);
	line-height: 1.05;
	margin: 0 0 16px;
}
.uu-single-meta {
	font-family: var(--uu-font-mono);
	font-size: 0.8125rem;
	color: var(--uu-muted);
	margin-bottom: 40px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--uu-border);
}
.uu-single-meta .uu-updated {
	color: var(--uu-primary);
}
.uu-author-header {
	max-width: 820px;
}
.uu-author-bio {
	margin-top: 18px;
	font-size: 1rem;
	line-height: 1.7;
	color: var(--uu-fg);
	text-align: left;
}
.uu-author-bio p {
	margin: 0 0 1.1em;
}
.uu-author-count {
	font-family: var(--uu-font-mono);
	font-size: 0.8125rem;
	color: var(--uu-muted);
	margin-top: 8px;
}
.uu-single-meta .uu-author-link {
	color: var(--uu-fg);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.uu-single-meta .uu-author-link:hover {
	color: var(--uu-primary);
}
.uu-single-content {
	font-size: 1.0625rem;
	line-height: 1.75;
	color: var(--uu-fg);
}
/* Figure captions were rendering at full body size, so they read as ordinary
   paragraphs rather than captions. Backlinko item 7c wants a full-sentence
   caption under every visual — it has to look like a caption to work. */
.uu-single-content figure {
	margin: 32px 0;
}
.uu-single-content figure img {
	display: block;
	max-width: 100%;
	height: auto;
}
.uu-single-content figcaption {
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--uu-muted);
	font-style: italic;
	text-align: left;
	margin-top: 10px;
	padding-left: 12px;
	border-left: 3px solid var(--uu-border);
}
.uu-single-content p { margin: 0 0 1.4em; }
.uu-single-content h2 {
	font-size: 1.75rem;
	margin: 2em 0 0.6em;
}
.uu-single-content h3 {
	font-size: 1.375rem;
	margin: 1.75em 0 0.5em;
}
.uu-single-content a { text-decoration: underline; text-underline-offset: 2px; }
.uu-single-content ul, .uu-single-content ol {
	margin: 0 0 1.4em;
	padding-left: 1.4em;
}
.uu-single-content li { margin-bottom: 0.4em; }
.uu-single-content blockquote {
	border-left: 3px solid var(--uu-primary);
	padding: 4px 0 4px 20px;
	margin: 1.75em 0;
	color: var(--uu-muted);
	font-style: italic;
}
.uu-single-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.75em 0;
	font-size: 0.9375rem;
}
.uu-single-content table th,
.uu-single-content table td {
	border: 1px solid var(--uu-border);
	padding: 10px 14px;
	text-align: left;
}
.uu-single-content table th {
	background-color: var(--uu-card);
	font-family: var(--uu-font-mono);
	text-transform: uppercase;
	font-size: 0.75rem;
	letter-spacing: 0.05em;
}
.uu-single-content img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
}

/* ---------- Wide tables scroll inside their own box ----------
   Measured 2026-08-01: the eligibility guide's 8-column table rendered 365px
   wide inside a 327px column at 375px viewport, pushing the whole PAGE to
   389px. That is what let you drag the layout sideways and leave a blank
   strip on the right.

   The table is wrapped by uu_wrap_content_tables() in functions.php rather
   than given `display:block` here. Setting display:block on a <table> drops
   it out of the accessibility tree as a table in several engines, so screen
   readers stop announcing rows and columns - unacceptable when the published
   Accessibility Statement commits to real screen-reader testing.

   tabindex="0" is required, not decoration: a scrollable region that cannot
   be focused cannot be scrolled by keyboard at all (WCAG 2.1.1). */
.uu-table-scroll {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 1.75em 0;
}
.uu-table-scroll:focus-visible {
	outline: 2px solid var(--uu-primary);
	outline-offset: 2px;
}
.uu-single-content .uu-table-scroll table {
	margin: 0;
	min-width: 520px;
}

/* ---------- Mobile: keep the nav reachable in long guides ----------
   Divi sets #main-header to position:absolute below 980px, so et_fixed_nav
   (which IS enabled) only ever applies on desktop. The guides are long, so
   the menu was unreachable without scrolling all the way back up.

   Only #main-header sticks. #top-header (the hello@ address bar) is left in
   normal flow and scrolls away: making both fixed would cost 111px of a
   812px phone screen permanently.

   The .uu-nav-stuck class is toggled in functions.php at the exact scroll
   offset where the header's natural position reaches the sticky position,
   so it detaches without a visible jump. */
@media (max-width: 980px) {
	body.uu-nav-stuck #main-header {
		position: fixed !important;
		top: 0 !important;
	}
	body.admin-bar.uu-nav-stuck #main-header {
		top: 46px !important;
	}
}

/* ---------- Footer follow buttons (Monarch shortcode, hooked via wp_footer) ---------- */
.uu-footer-follow {
	background-color: var(--uu-bg);
	padding: 28px 24px 40px;
	text-align: center;
	border-top: 1px solid var(--uu-border);
}
/* Monarch ignored total="false" once already (rendered "0 Follows", social
   proof of nothing). CSS kill on top of the shortcode's counts="false", so
   neither knob failing can put a zero back on the page. */
.uu-footer-follow .et_social_totalcount,
.uu-footer-follow .et_social_count {
	display: none !important;
}
.uu-footer-follow .et_social_icons_container {
	list-style: none;
	display: flex;
	justify-content: center;
	gap: 14px;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}
