/* DU 31-Day Challenge — selectors carry #top so they win over Enfold's theme rules */

#top .du31 {
	--navy: #0b1f45;
	--navy-deep: #071535;
	--orange: #f39c2b;
	--orange-deep: #d9820f;
	--green: #1b8f3a;
	--paper: #faf8f4;
	--ink: #1f2933;
	--muted: #66718a;
	--line: #e7e2d9;
	--radius: 14px;

	max-width: 1000px;
	margin: 0 auto;
	padding: 28px 0 80px;
	color: var(--ink);
	font-size: 17px;
	line-height: 1.6;
}
#top .du31 *,
#top .du31 *::before,
#top .du31 *::after { box-sizing: border-box; }
#top .du31 [hidden] { display: none !important; }
#top .du31 a { color: var(--navy); }

#top .du31__eyebrow {
	display: block;
	margin: 0 0 4px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--orange-deep);
}
#top .du31__title {
	margin: 0;
	font-size: clamp(24px, 4vw, 40px);
	line-height: 1;
	text-transform: uppercase;
	color: var(--navy) !important;
}

/* ---- header ---- */
#top .du31__top {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 24px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--line);
}
#top .du31__me {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 18px;
	font-size: 14px;
	color: var(--muted);
}
#top .du31__who { font-weight: 700; color: var(--navy); }
#top .du31__count strong { color: var(--navy); font-size: 18px; }
#top .du31__links { display: flex; gap: 4px; }
#top .du31__links a {
	padding: 6px 10px;
	border-radius: 999px;
	color: var(--navy);
	font-weight: 700;
	text-decoration: none;
}
#top .du31__links a:hover { background: #eef1f7; }

/* ---- timeline ---- */
#top .du31__timeline {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 22px;
	padding: 22px 0 8px;
	margin-bottom: 28px;
}
#top .du31__part-name {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
	white-space: nowrap;
}
#top .du31__part-name b {
	display: inline-grid;
	place-items: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--navy);
	color: #fff;
	font-size: 10px;
}
#top .du31__nodes {
	display: flex;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}
#top .du31__nodes li { margin: 0; }
#top .du31__node {
	position: relative;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 2px solid var(--line);
	background: #fff;
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
#top a.du31__node:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(11, 31, 69, 0.15); }
#top .du31__node.is-done { background: var(--green); border-color: var(--green); color: #fff; }
#top .du31__node.is-done span { display: none; }
#top .du31__node.is-done::after {
	content: "";
	width: 9px;
	height: 5px;
	margin-top: -2px;
	border-left: 2.5px solid #fff;
	border-bottom: 2.5px solid #fff;
	transform: rotate(-45deg);
}
#top .du31__node.is-current {
	background: var(--orange);
	border-color: var(--orange);
	color: var(--navy);
	box-shadow: 0 0 0 4px rgba(243, 156, 43, 0.25);
	animation: du31-pulse 2.4s ease-in-out infinite;
}
#top .du31__node.is-next { border-color: var(--navy); color: var(--navy); border-style: dashed; }
@keyframes du31-pulse {
	0%, 100% { box-shadow: 0 0 0 4px rgba(243, 156, 43, 0.25); }
	50% { box-shadow: 0 0 0 8px rgba(243, 156, 43, 0.10); }
}
@media (max-width: 640px) {
	#top .du31__timeline { gap: 12px 16px; }
	#top .du31__node { width: 28px; height: 28px; font-size: 11px; }
}

/* ---- buttons ---- */
#top .du31-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 10px 22px;
	border: 2px solid var(--navy);
	border-radius: 999px;
	background: #fff;
	color: var(--navy);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
#top .du31-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(11, 31, 69, 0.15); }
#top .du31-btn--primary { background: var(--orange); border-color: var(--orange); color: var(--navy); }
#top .du31-btn--primary:hover { background: #f6ab4a; border-color: #f6ab4a; }
#top .du31-btn--lg { min-height: 56px; padding: 14px 34px; font-size: 17px; }
#top .du31-btn.is-busy, #top button.is-busy { opacity: 0.6; cursor: wait; }
#top .du31-link {
	padding: 4px 0;
	border: 0;
	background: none;
	color: var(--navy);
	font-size: 13px;
	font-weight: 700;
	text-decoration: underline;
	cursor: pointer;
}
#top .du31-link--danger { color: #b3261e; }

/* ---- day article ---- */
#top .du31-day { max-width: 760px; margin: 0 auto; }
#top .du31-day__eyebrow {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--orange-deep);
}
#top .du31-day__eyebrow span { margin: 0 6px; color: var(--line); }
#top .du31-day__title {
	margin: 0 0 12px;
	font-size: clamp(30px, 4.6vw, 46px);
	line-height: 1.02;
	color: var(--navy) !important;
}
#top .du31-day__status { margin: 0 0 20px; font-size: 14px; color: var(--muted); }
#top .du31-day__body {
	padding-top: 22px;
	border-top: 3px solid var(--orange);
	font-size: 18px;
	line-height: 1.72;
}
#top .du31-day__body p { margin: 0 0 1.15em; }
#top .du31-day__body h2,
#top .du31-day__body h3,
#top .du31-day__body h4,
#top .du31-day__body h5 { margin: 1.8em 0 0.6em; color: var(--navy); line-height: 1.15; }
#top .du31-day__body h2 { font-size: 30px; }
#top .du31-day__body h3 { font-size: 26px; }
#top .du31-day__body h4 { font-size: 21px; }
#top .du31-day__body h5 { font-size: 18px; }
#top .du31-day__body ul,
#top .du31-day__body ol { margin: 0 0 1.3em 1.4em; padding: 0; }
#top .du31-day__body li { margin: 0 0 0.45em; }
#top .du31-day__body ul { list-style: disc; }
#top .du31-day__body ol { list-style: decimal; }
#top .du31-day__body strong { color: var(--navy); }
#top .du31-day__body a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
#top .du31-day__body img { max-width: 100%; height: auto; border-radius: 10px; }
#top .du31-day__body figure { margin: 1.5em 0; text-align: center; }
#top .du31-day__body table {
	width: 100%;
	margin: 1.4em 0;
	border-collapse: collapse;
	font-size: 16px;
}
#top .du31-day__body td, #top .du31-day__body th {
	padding: 10px 12px;
	border: 1px solid var(--line);
	vertical-align: top;
}
#top .du31-day__body tr:nth-child(even) td { background: #f6f4ef; }
#top .du31-day__body blockquote.du31-verse {
	margin: 1.4em 0;
	padding: 16px 22px 14px 24px;
	border-left: 4px solid var(--orange);
	border-radius: 0 12px 12px 0;
	background: var(--paper);
	font-size: 19px;
	font-style: italic;
	color: var(--navy);
	quotes: none;
}
#top .du31-day__body blockquote.du31-verse p { margin: 0; }
#top .du31-day__body blockquote.du31-verse cite {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	font-style: normal;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--orange-deep);
}
#top .du31-day__actions {
	margin-top: 44px;
	padding: 30px 24px;
	border-radius: var(--radius);
	background: var(--paper);
	text-align: center;
}
#top .du31-day__prompt { margin: 0 0 14px; color: var(--muted); }
#top .du31-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

#top .du31-callout {
	margin: 18px 0 28px;
	padding: 22px 24px;
	border-radius: var(--radius);
	background: var(--navy);
	color: #e9eefb;
}
#top .du31-callout p { margin: 0 0 16px; color: inherit; }
#top .du31-callout strong { color: #fff; }

/* ---- schedule / locked ---- */
#top .du31-schedule, #top .du31-locked { max-width: 760px; margin: 0 auto; }
#top .du31-schedule__done {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 24px 26px;
	border-radius: var(--radius);
	background: linear-gradient(135deg, #0d2350, #17398a);
	color: #fff;
}
#top .du31-schedule__done h2, #top .du31-locked h2, #top .du31-finished h2, #top .du31-team h2 { margin: 0; color: inherit; color: inherit !important; font-size: clamp(26px, 3.6vw, 36px); line-height: 1.05; }
#top .du31-schedule__done .du31__eyebrow { color: #f5b95d; }
#top .du31-check {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--green);
	box-shadow: 0 0 0 6px rgba(27, 143, 58, 0.25);
}
#top .du31-check::after {
	content: "";
	width: 18px;
	height: 10px;
	margin-top: -4px;
	border-left: 4px solid #fff;
	border-bottom: 4px solid #fff;
	transform: rotate(-45deg);
}
#top .du31-check--lg { width: 76px; height: 76px; margin: 0 auto 14px; }
#top .du31-check--lg::after { width: 28px; height: 15px; border-width: 5px; }
#top .du31-schedule__next { margin: 26px 0 8px; }
#top .du31-schedule__next h3, #top .du31-locked h2, #top .du31-team h2 { color: var(--navy) !important; }
#top .du31-schedule__next h3 { margin: 0; font-size: clamp(22px, 3vw, 30px); line-height: 1.1; }
#top .du31-schedule__part { margin: 4px 0 0; color: var(--muted); }

#top .du31-when { margin-top: 22px; padding: 26px; border-radius: var(--radius); background: var(--paper); }
#top .du31-when h4 { margin: 0 0 16px; font-size: 20px; color: var(--navy); }
#top .du31-when__options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
#top .du31-when__opt {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 18px;
	border: 2px solid var(--line);
	border-radius: 12px;
	background: #fff;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease;
}
#top .du31-when__opt:hover { border-color: var(--orange); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(11, 31, 69, 0.12); }
#top .du31-when__opt strong { font-size: 17px; color: var(--navy); }
#top .du31-when__opt span { font-size: 13px; color: var(--muted); }
#top .du31-when__opt em { font-style: normal; }
#top .du31-when__pick { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
#top .du31-when__pick label { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; font-weight: 700; color: var(--navy); }
#top .du31-when__pick input[type=datetime-local] { min-height: 44px; padding: 6px 10px; border: 2px solid var(--line); border-radius: 8px; font: inherit; }
#top .du31-when__note { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { #top .du31-when__options { grid-template-columns: 1fr; } }

#top .du31-locked__when {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 22px 0;
	padding: 20px 24px;
	border-radius: var(--radius);
	background: var(--paper);
}
#top .du31-locked__when p { margin: 0; font-size: 20px; font-weight: 700; color: var(--navy); }
#top .du31-locked__when .du31-countdown { font-size: 14px; font-weight: 400; color: var(--muted); }
#top .du31-lock {
	flex: 0 0 auto;
	position: relative;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--navy);
}
#top .du31-lock::before {
	content: "";
	position: absolute;
	left: 15px;
	top: 10px;
	width: 14px;
	height: 12px;
	border: 3px solid #fff;
	border-bottom: 0;
	border-radius: 8px 8px 0 0;
}
#top .du31-lock::after {
	content: "";
	position: absolute;
	left: 12px;
	top: 20px;
	width: 20px;
	height: 14px;
	border-radius: 3px;
	background: #fff;
}
#top .du31-locked__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }

/* ---- finished ---- */
#top .du31-finished { margin: 0 0 34px; padding: 34px 24px; border-radius: var(--radius); background: linear-gradient(135deg, #0d2350, #17398a); color: #fff; text-align: center; }
#top .du31-finished .du31__eyebrow { color: #f5b95d; }
#top .du31-finished p { margin: 10px 0 0; color: #c9d3ee; }

/* ---- completed list ---- */
#top .du31-done-list { margin-top: 34px; }
#top .du31-done-list__lead { margin: 0 0 12px; color: var(--muted); }
#top .du31-done-list ol { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
#top .du31-done-list li { margin: 0; }
#top .du31-done-list a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: 10px;
	color: var(--ink);
	font-size: 14px;
	line-height: 1.3;
	text-decoration: none;
	background: #fff;
}
#top .du31-done-list a:hover { border-color: var(--navy); }
#top .du31-done-list b { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; font-size: 12px; }

/* ---- login ---- */
#top .du31-login { max-width: 440px; margin: 20px auto 0; padding: 34px 32px; border-radius: var(--radius); background: #fff; box-shadow: 0 20px 50px rgba(11, 31, 69, 0.12); }
#top .du31-login .du31__title { font-size: 26px; }
#top .du31-login__lead { margin: 14px 0 22px; color: var(--muted); }
#top .du31-login form p { margin: 0 0 14px; }
#top .du31-login label { display: block; margin-bottom: 6px; font-weight: 700; color: var(--navy); }
#top .du31-login input[type=text], #top .du31-login input[type=password] { width: 100%; min-height: 46px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 8px; font: inherit; }
#top .du31-login .login-remember label { display: flex; align-items: center; gap: 8px; font-weight: 400; }
#top .du31-login input[type=submit] { width: 100%; min-height: 48px; border: 0; border-radius: 999px; background: var(--orange); color: var(--navy); font-weight: 700; font-size: 16px; cursor: pointer; }
#top .du31-login__help { margin: 14px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

/* ---- team ---- */
#top .du31-team__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
#top .du31-team__head h2 { color: var(--navy); }
#top .du31-team__add { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
#top .du31-team__add input, #top .du31-team__add select { width: auto; flex: 1 1 180px; margin: 0; min-height: 44px; padding: 6px 12px; border: 2px solid var(--line); border-radius: 8px; font: inherit; }
#top .du31-team__msg { margin: 0 0 14px; padding: 10px 14px; border-radius: 8px; background: #fdecea; color: #8a1c14; font-size: 14px; }
#top .du31-table-wrap { overflow-x: auto; }
#top .du31-table { width: 100%; border-collapse: collapse; font-size: 14px; }
#top .du31-table th { padding: 10px 12px; border-bottom: 2px solid var(--navy); text-align: left; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
#top .du31-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
#top .du31-table small { color: var(--muted); }
#top .du31-table__actions { white-space: nowrap; }
#top .du31-table__actions .du31-link { margin-right: 12px; }
