/* Additions for the static rebuild. The original theme stylesheet is untouched. */

/* Static stand-in for the 2010 Twitter profile widget (same colours as the original widget config) */
.tweet-box {
	background: #232323;
	color: #ddd;
	width: 303px;
	max-width: 100%;
	font-size: 11px;
	line-height: 1.4;
}
.tweet-box .tweet-head,
.tweet-box .tweet-foot {
	padding: 6px 8px;
	font-weight: bold;
}
.tweet-box ul {
	list-style: none;
	margin: 0;
	padding: 0;
	background: #111;
	max-height: 300px;
	overflow-y: auto;
}
.tweet-box li {
	padding: 6px 8px;
	border-bottom: 1px solid #232323;
}
.tweet-box li p {
	margin: 0 0 3px 0;
	color: #ddd;
}
.tweet-box a {
	color: #e7af12;
}
.tweet-box .tweet-date {
	font-size: 10px;
	color: #888;
}

/* Notes where embedded media no longer exists */
.lost-media {
	display: inline-block;
	padding: 6px 8px;
	border: 1px dashed #666;
	color: #999;
	font-style: italic;
}

/* Vimeo replacements for Flash embeds */
iframe[src*="player.vimeo.com"] {
	max-width: 100%;
	border: 0;
	margin: 10px 0;
}

/* Disabled registration form */
input[disabled], select[disabled], textarea[disabled] {
	opacity: .5;
}

.footer.social {
	text-align: center;
	font-size: 12px;
	padding-top: 0;
}
.footer.social a { color: #e7af12; }

.footer.archive-note {
	font-size: 10px;
	color: #888;
	text-align: center;
	padding-top: 0;
}

/* Printing / PDF export: keep the dark theme but drop the fixed cyclist background, which smears across printed pages */
@media print {
	html, body {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}
	body {
		background: #333 !important;
	}
	.tweet-box ul {
		max-height: none;
		overflow: visible;
	}
}

/* Working site (app/tdf.py): notices, forms, admin */
.tdf-notice {
	background: #e7af12;
	color: #111;
	padding: 6px 10px;
	margin: 0 0 10px 0;
	font-weight: bold;
}
#tdf-admin {
	padding: 0 20px 20px 20px;
}
#tdf-admin td {
	color: #ddd;
}
#tdf-admin textarea, #commentform textarea, .wpf textarea {
	max-width: 100%;
}
.tdf-races h2 { margin-top: 18px; }
.tdf-races table td { color: #ddd; }
.tdf-races ul { margin: 6px 0 12px 20px; list-style: disc; }
.tdf-slogan {
	text-align: center;
	font-size: 22px;
	letter-spacing: 1px;
	text-transform: none;
	padding: 8px 10px 12px 10px;
}
.tdf-slogan a { color: #e7af12; text-decoration: none; }

/* News grouped by year: each year rolls up into one line */
.news-tools { font-size: 11px; text-align: right; margin: 0 0 6px 0; }
details.news-year { border-top: 1px solid #444; }
details.news-year > summary {
	list-style: none;
	cursor: pointer;
	padding: 8px 4px;
	display: flex;
	align-items: baseline;
	gap: 14px;
}
details.news-year > summary::-webkit-details-marker { display: none; }
details.news-year > summary::before {
	content: "\25B8";
	color: #e7af12;
	display: inline-block;
	width: 12px;
	transition: transform .15s;
}
details.news-year[open] > summary::before { transform: rotate(90deg); }
details.news-year > summary:hover { background: #2a2a2a; }
.news-y { font-size: 20px; color: #e7af12; min-width: 52px; }
.news-count { color: #ddd; }
.news-status { color: #999; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; margin-left: auto; }
details.news-inactive > summary::before,
details.news-inactive .news-y,
details.news-inactive .news-count { color: #6d6d6d; }
details.news-inactive .news-status { color: #5a5a5a; }
details.news-inactive .news-posts { color: #888; padding: 0 4px 10px 26px; }
.news-posts { padding-bottom: 8px; }

/* Home page announcement box (2027 return): meant to be loud */
.tdf-announce {
	border: 5px solid #e7af12;
	outline: 1px solid #e7af12;
	outline-offset: 4px;
	background: #111;
	padding: 24px 28px 16px 28px;
	margin: 28px 6px 28px 6px;
	clear: both;
}
.tdf-announce-kicker {
	display: inline-block;
	background: #e7af12;
	color: #111;
	font-weight: bold;
	font-size: 12px;
	letter-spacing: 3px;
	text-transform: uppercase;
	padding: 4px 10px;
	margin-bottom: 12px;
}
.tdf-announce h2 {
	margin: 0 0 8px 0;
	color: #e7af12;
	font-size: 34px;
	line-height: 1.1;
	letter-spacing: 1px;
	text-transform: none;
}
div.tdf-announce p.tdf-announce-slogan { font-size: 22px; font-weight: bold; color: #fff; margin: 0 0 16px 0 !important; }
.tdf-announce h3 {
	margin: 16px 0 4px 0;
	color: #e7af12;
	font-size: 16px;
	letter-spacing: 1px;
	text-transform: none;
	border-bottom: 1px solid #444;
	padding-bottom: 3px;
}
div.tdf-announce p { margin: 0 0 8px 0; font-size: 13px; line-height: 1.5; text-align: left; }
.tdf-announce ul { margin: 4px 0 8px 22px; list-style: disc; font-size: 13px; }
.tdf-announce li { margin-bottom: 3px; list-style: disc; }
.tdf-announce-note { font-size: 11px !important; color: #999; font-style: italic; margin-top: 12px !important; }
