body {
	font-size: 16px;
	line-height: 23px;
	font-weight: 300;
	-webkit-font-smoothing: subpixel-antialiased;
}

body *::selection {
	background: #e74c3c;
	color: #fff;
}

.container {
	max-width: 980px;
}

.top-strip {
	background-color: #333;
	height: 0.25em;
	width: 100%;
}

h1,
h2,
h3 {
	/* font-weight: 300; */
}

h1 {
	margin: 0 0 10px;
	font-size: 30px;
	line-height: 35px;
}

h2 {
	margin: 0 0 10px;
	font-size: 25px;
	line-height: 30px;
}

h3 {
	margin: 0;
	font-size: 20px;
	line-height: 25px;
}

.page-header {
	margin-top: 0px;
	margin-bottom: 20px;
	background-color: #f8f9fa;
	padding: 20px 0;
}
.display-4 {
	font-size: 2.5rem;
}
.lead {
	font-size: 1.25rem;
	font-weight: 300;
}

#conf-title.page-header {
	border-bottom: none;
}

#conf-full-name {
	margin-bottom: 5px;
}

p.authors {
	margin-bottom: 5px;
	color: #808080;
	font-size: 20px;
}

p.authors a {
	border-color: #dedede;
}

img {
	max-width: 100%;
}

p {
	text-align: justify;
}

a {
	text-decoration: none;
	border-bottom: 1px solid #ccc;
	color: inherit;
}

p.lead.authors a {
	border-bottom: none;
}

a:hover,
a:focus {
	color: inherit;
	text-decoration: none;
}

.thumb {
	margin: 20px 0;
	border: 1px solid #808080;
}

pre {
	color: #333;
	font-size: 12px;
	line-height: 17px;
}

footer {
	text-align: center;
	margin-top: 3rem;
	padding-top: 1rem;
	color: #6c757d;
	background: #343a40;
	color: white;
}

footer a {
	color: #ffde57;
}

footer a:hover {
	color: #0097e6;
}

footer .row {
	padding: 0.5rem;
}

footer .row * {
	text-align: center !important;
}

.social-links {
	display: flex;
	justify-content: center;
	gap: 1.5rem;
	margin: 1rem auto;
}

.conf-row {
	margin-bottom: 5px;
}

.conf-title,
.conf-title-small,
.conf-title-icon {
	font-size: 20px;
	font-weight: 400;
}

.conf-title-small {
	display: none;
}

.conf-title-icon {
	white-space: nowrap;
	font-size: 20px;
}

.deadline,
.meta {
	font-size: 13px;
}

.note {
	font-size: 13px;
	margin-bottom: 5px;
}

.timer,
.timer-small {
	font-size: 20px;
	font-weight: 400;
}

#confs {
	margin-top: 20px;
}
.timer-small {
	display: none;
}

.conf-timer {
	font-size: 72px;
	color: #444;
	margin-top: 40px;
	margin-bottom: 0.5em;
}

#conf-key-facts,
#conf-deadlines,
#conf-share-links {
	margin-bottom: 1em;
}

#conf-share-links {
	font-size: 12px;
}

#conf-deadline-timer #cfp-timer.conf-timer {
	margin-top: 15px;
	line-height: 100%;
	margin-bottom: 10px;
}

/* Countdown urgency states */
.countdown-display[data-urgency="medium"] {
	color: #b8860b;
}

.countdown-display[data-urgency="high"] {
	color: #e67e22;
}

.countdown-display[data-urgency="critical"] {
	color: #e74c3c;
	font-weight: 500;
}

.countdown-display.deadline-passed {
	color: #999;
}

@media (prefers-color-scheme: dark) {
	.countdown-display[data-urgency="medium"] {
		color: #f0c040;
	}

	.countdown-display[data-urgency="high"] {
		color: #f39c12;
	}

	.countdown-display[data-urgency="critical"] {
		color: #ff6b6b;
	}
}

.conf-sub {
	cursor: pointer;
}

.conf-sub::selection {
	background: #0097e6;
}

#conf-sort-order-checkbox,
#cfp-sort-order-checkbox {
	text-align: right;
	font-size: 14px;
	padding-top: 5px;
}

#conf-sort-order-checkbox input[type='checkbox']:checked:after,
#cfp-sort-order-checkbox input[type='checkbox']:checked:after {
	background-color: #0097e6;
	border-color: #0097e6;
}

#cfp-sort-order-checkbox input[type='checkbox']:after,
#cfp-sort-order-checkbox input[type='checkbox']:focus:after,
#conf-sort-order-checkbox input[type='checkbox']:after,
#conf-sort-order-checkbox input[type='checkbox']:focus:after {
	border-color: #0097e6;
}

.filter-label {
	text-align: right;
}

.brand-link {
	text-decoration: none;
	border: none;
	vertical-align: middle;
}

.brand-link:hover {
	border-bottom: 1px solid #1198b2;
}

.icon-inner {
	width: 0.95em;
	height: 0.95em;
	display: inline-block;
	vertical-align: middle;
	position: relative;
	fill: currentColor;
}

#past-events-title,
#past-cfps-title {
	padding-bottom: 15px;
	border-bottom: 2px solid #bb2d3b;
}

.badge-link {
	vertical-align: middle;
	margin-bottom: 3px;
	margin-left: 2px;
	margin-right: 2px;
}

.badge-danger {
	background-color: #bb2d3b;
}

@media only screen and (max-width: 768px) {
	.conf-timer {
		font-size: 64px;
	}
	.calendar {
		margin-bottom: 10px;
	}
	.filter-label {
		text-align: left;
	}
}

@media only screen and (max-width: 576px) {
	.conf-timer {
		font-size: 36px;
	}
	.conf-place {
		display: none;
	}
	.conf-date {
		display: none;
	}
	.note {
		display: none;
	}
	.conf-row {
		margin-bottom: 7px;
	}
	.timer {
		display: none;
	}
	.timer-small {
		text-align: right;
		display: grid;
	}
	.conf-title {
		display: none;
	}
	.conf-title-small {
		display: inline;
	}
}

@media only screen and (max-width: 375px) {
	.conf-timer {
		font-size: 28px;
	}
}

.checkbox {
	font-size: 12px;
}

.calendar {
	font-size: 12px;
	margin-top: 3px;
}

.calendar img {
	margin-right: 5px;
}

.ind-cal {
	margin: 0 5px;
}

.calendar img {
	height: 20px;
}

#breadcrumbs ol {
	list-style: none;
	padding: 0;
	margin: 0;
	display: inline;
}

#breadcrumbs li {
	display: inline;
}

#breadcrumbs li + li::before {
	content: " / ";
	color: #808080;
}

#breadcrumbs a {
	margin-top: 1rem;
	text-decoration: none;
	font-size: 0.7rem;
	color: #808080;
}

#breadcrumbs a:hover {
	text-decoration: dashed;
	color: #fff;
}

.social-icon {
	display: inline-block;
	margin: 0;
	font-size: 2rem;
	color: #666;
	transition: color 0.3s ease;
}

.social-icon:hover {
	color: #333;
}

/* Mastodon specific color */
.fa-mastodon:hover {
	color: #6364ff;
}

/* Bluesky specific styling */
.fa-bluesky:hover {
	color: #0085ff;
}

#left-snek {
	right: 15rem;
	z-index: 1000;
	transform: scale(5) translateY(0.5rem);
	transition: bottom ease 0.5s;
}

#left-snek:hover {
	bottom: 0em;
}

#left-snek.annoyed {
	animation: runAway 3s ease-in-out;
	transition: opacity 1s ease-out;
	transition-delay: 2s;
	opacity: 0;
}

#right-snek.annoyed {
	transition: transform 1s ease-out;
	transition-delay: 2s;
	transform: scale(5.5, 5.5);
}

#right-snek {
	right: 4rem;
	z-index: 1001;
	transform: scale(-5.5, 5.5);
	transition: bottom ease 0.5s;
}

#right-snek:hover {
	bottom: 0em;
}

#smol-snek-body {
	z-index: 1003;
	position: absolute;
	bottom: 0;
	right: 0;
	transform: scale(-3.5, 3.5) translateY(0.5rem);
}

#smol-snek-tongue {
	z-index: 1002;
	position: absolute;
	bottom: 2.7rem;
	right: -0.8rem;
	transform: scale(0.7);
}

#smol-snek-all {
	z-index: 1003;
	right: 3rem;
	transition: bottom ease 0.5s;
}

#smol-snek-all:hover {
	bottom: 0.5em;
}

.location-pin {
	position: fixed;
	opacity: 0;
	bottom: -5rem;
	transition: bottom 5.5s ease-out;
	filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.3));
}

.location-pin.visible {
	opacity: 1;
	bottom: 1rem;
}

.snek-speech-bubble {
	position: fixed;
	right: 2rem;
	bottom: 5.5rem;
	max-width: 220px;
	padding: 0.6rem 1.75rem 0.6rem 0.9rem;
	background: #fff;
	color: #333;
	border: 2px solid #646464;
	border-radius: 0.9rem;
	box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.25);
	font-size: 0.85rem;
	line-height: 1.3;
	z-index: 1004;
	opacity: 0;
	transform: translateY(0.5rem);
	transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.snek-speech-bubble.visible {
	opacity: 1;
	transform: translateY(0);
}

.snek-speech-bubble::after {
	content: '';
	position: absolute;
	bottom: -12px;
	right: 24px;
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
	border-top: 12px solid #646464;
}

.snek-speech-bubble::before {
	content: '';
	position: absolute;
	bottom: -8px;
	right: 26px;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	border-top: 10px solid #fff;
	z-index: 1;
}

.snek-speech-link {
	color: inherit;
	text-decoration: none;
}

.snek-speech-link:hover,
.snek-speech-link:focus {
	color: #4584b6;
	text-decoration: underline;
}

.snek-speech-close {
	position: absolute;
	top: 1px;
	right: 6px;
	background: none;
	border: none;
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	color: #888;
	padding: 0 0.25rem;
}

.snek-speech-close:hover,
.snek-speech-close:focus {
	color: #333;
}

#right-snek.wiggle {
	bottom: 2rem;
}

#smol-snek-all.wiggle {
	bottom: 1.5rem;
}

@keyframes runAway {
	0% {
		transform: scale(5) translateX(0) rotate(0deg);
	}
	20% {
		transform: scale(5) translateX(-20px) rotate(-5deg);
	}
	40% {
		transform: scale(5) translateX(-40px) rotate(5deg);
	}
	100% {
		transform: scale(5) translateX(-100vw) rotate(-10deg);
	}
}

/* Only show on medium screens and up (≥768px) */
@media (max-width: 767.98px) {
	.location-pin,
	.snek-speech-bubble {
		display: none !important;
	}
}

/* Print styles */
@media print {
	.location-pin,
	.snek-speech-bubble,
	.skip-nav,
	.navbar,
	.conference-actions,
	.action-indicator,
	.action-popover,
	.mobile-action-bookmark,
	.calendar,
	#conf-share-links,
	#twitter-widget,
	.mastodon-feed,
	footer {
		display: none !important;
	}

	body {
		font-size: 12pt;
		color: #000;
		background: #fff;
	}

	a {
		color: #000;
		text-decoration: underline;
	}

	a[href]::after {
		content: " (" attr(href) ")";
		font-size: 0.8em;
		color: #555;
	}

	a[href^="#"]::after,
	a[href^="javascript:"]::after {
		content: "";
	}

	.conf-timer {
		font-size: 24pt;
	}

	.container {
		max-width: 100%;
	}
}
