/* baseline */
@font-face {
	font-family: 'Roboto Slab';
	src: url('fonts/roboto-slab-v10-latin_latin-ext-700.woff2') format('woff2'), url('fonts/roboto-slab-v10-latin_latin-ext-700.woff') format('woff');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Roboto Slab';
	src: url('fonts/roboto-slab-v10-latin_latin-ext-regular.woff2') format('woff2'), url('fonts/roboto-slab-v10-latin_latin-ext-regular.woff') format('woff');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

html {
	font: normal 400 16px 'Roboto Slab', serif;
	height: 100%;
	background-color: #fff;
}

body {
	box-sizing: border-box;
	min-height: 100%;
	margin: 0;
	padding: 0;
}

a {
	color: black;
}

h1 {
	color: #ff7f00;
	margin: 0;
}

.visuallyhidden {
	border: 0;
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
}

/* default styles*/
header {
	background-color: #111;
	background: radial-gradient(ellipse at center, #333 0, #111 67%);
	padding: 6rem 2em;
	text-align: center;
	margin-bottom: 1rem;
}

header a {
	color: #ff7f00;
}

header p {
	color: white;
	max-width: 500px;
	margin: 1rem auto 0;
}

.schedule {
	display: block;
	margin: 2rem;
}

.schedule > * {
	width: 100%;
}

h2 {
	margin-top: 3rem;
}

.slot {
	margin-bottom: 2rem;
}

.info {
}

.info summary {
	cursor: pointer;
	color: #e06f00;
	text-decoration: underline;
}

.info[open] summary {
	color: black;
	text-decoration: none;
}

.slot h3 {
	display: inline;
	color: #e06f00;
}

.info br {
	margin-bottom: 1rem;
}

.performer {
	margin-top: .2rem;
	font-weight: bold;
}

.performer ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
	display: inline;
}

.performer li {
	display: inline;
	position: relative
}

.tools {
	list-style-type: none;
	margin: 0;
	padding: 0;
	margin-top: .5rem;
}

.tools li {
	display: inline;
	position: relative;
	padding-right: .5rem;
}

.tools li a {
}

.location {
	margin-top: .2rem;
}

.location small::before {
	content: "("
}

.location small::after {
	content: ")"
}

.slot.empty .location {
	display: none;
}

.time {
	display: none;
}

footer {
	background-color: #111;
	padding: 1rem;
	margin-top: 4rem;
	color: white;
}

footer a {
	padding: 0 .5rem;
	color: white;
}

/* table view */
@media all and (min-width: 700px) {

	.schedule {
		display: flex;
		flex-wrap: wrap;
		margin: 5rem 2rem 3rem;
		padding: 0;
		border: solid 1px black;
	}
	.schedule > * {
		box-sizing: border-box;
		flex-grow: 1;
		margin: 0;
		padding: 1rem;
		list-style: none;
		border: solid 1px black;
		width: 20%;
	}
	.schedule > .stretch {
		width: 80%;
		text-align: center;
		font-weight: normal;
		font-size: 1.2rem;
		padding-top: 1.2rem;
	}
	.presentation h1 {
		width: 20%;
	}
	h2 {
		margin-top: 0;
		text-align: center;
	}
	.slot {
		position: relative;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		gap: 1rem;
	}
	.info {

	}
	.slot .tools {
		margin-top: auto;
	}
	.performer {
	}
	.slot.first .location, .slot.first.empty .location {
		display: block;
		position: absolute;
		top: -4.5rem;
		left: 0;
		width: 100%;
		text-align: center;
		font-weight: bold;
		font-size: 1.5rem;
		margin-top: 0;
	}
	.slot:not(.first) .location, .location span {
		border: 0;
		clip: rect(0 0 0 0);
		height: 1px;
		margin: -1px;
		overflow: hidden;
		padding: 0;
		position: absolute;
		width: 1px;
	}
	.time {
	}
	.location small {
		display: block;
		font-weight: normal;
		font-size: 75%
	}
}

/* presentation mode */
.presentation {
	padding-top: 1rem;
	padding-bottom: .5rem;
	color: #eee;
}

.presentation header {
	background: none;
	padding: 2em 2em 0;
}

.presentation h1 {
	font-size: 1.2rem;
	color: #ff7f00;
	text-align: center;
}

.presentation h1::before {
	content: 'https://';
	opacity: .7;
}

.presentation .schedule {
	margin-top: 1rem;
	margin-bottom: 0;
	border-color: #777;
}

.presentation .schedule > * {
	border-color: #777;
}

.presentation .performer {
	margin-top: .1rem;
	color: #ff7f00;
	font-weight: normal;
}
.presentation .performer a {
	text-decoration: none;
	color: inherit;
}

.presentation .tools {
	display: none;
}

.presentation .info summary {
	list-style: none;
	text-decoration: none;
	color: #eee;
	max-height: 4.8rem;
	overflow: hidden;
	transition: color 2s;
}
.presentation .slot h3 {
	color: #eee !important;
}

.presentation .slot.updated .info summary {
	color: #e06f00;
	transition: color .25s;
}

.presentation .info p {
	display: none;
}

/* edit mode */
.cell-edit {
	align-self: flex-start;
	margin-top: 1rem;
	display: inline-block;
	font-size: .85rem;
	font-weight: bold;
	color: white;
	text-decoration: none;
	border: solid 1px #c66200;
	background: #e06f00;
	padding: .35rem .85rem;
	border-radius: .25rem;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
	transition: background .15s, transform .1s, box-shadow .15s;
}

.cell-edit:hover,
.cell-edit:focus {
	background: #ff7f00;
	border-color: #c66200;
	box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
	outline: none;
	transform: translateY(-1px);
}

.edit .slot.empty .cell-edit {
	margin-top: auto;
}

.edit-dialog {
	border: solid 1px #ccc;
	border-radius: .3rem;
	padding: 1.5rem 1.5rem 1rem;
	max-width: 32rem;
	width: 90%;
	box-shadow: 0 1rem 3rem rgba(0, 0, 0, .25);
}

.edit-dialog::backdrop {
	background: rgba(0, 0, 0, .35);
}

.edit-dialog .dialog-close {
	position: absolute;
	top: .25rem;
	right: .5rem;
	background: none;
	border: 0;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	color: #888;
}

.edit-dialog .dialog-close:hover,
.edit-dialog .dialog-close:focus {
	color: #e06f00;
}

.cell-edit-form h1,
.cell-edit-page h1 {
	margin-top: 0;
	font-size: 1.2rem;
	color: #e06f00;
}

.cell-edit-form label {
	display: block;
	margin: 1rem 0;
	font-weight: bold;
}

.cell-edit-form input[type=text] {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin-top: .25rem;
	padding: .5rem;
	font: inherit;
	border: solid 1px #aaa;
	border-radius: .2rem;
}

.cell-edit-form input[type=text]:focus {
	outline: none;
	border-color: #e06f00;
}

.cell-edit-form .actions {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: 1rem;
}

.cell-edit-form button[type=submit] {
	font: inherit;
	font-weight: bold;
	background: #e06f00;
	color: white;
	border: 0;
	padding: .5rem 1.25rem;
	border-radius: .2rem;
	cursor: pointer;
}

.cell-edit-form button[type=submit]:hover,
.cell-edit-form button[type=submit]:focus {
	background: #ff7f00;
	outline: none;
}

.cell-edit-form .dialog-cancel {
	font: inherit;
	background: none;
	border: 0;
	color: #888;
	cursor: pointer;
	text-decoration: underline;
	padding: .5rem 0;
}

.cell-edit-form .dialog-cancel:hover,
.cell-edit-form .dialog-cancel:focus {
	color: #e06f00;
	outline: none;
}

.cell-edit-form .hint {
	margin: 0 0 0 auto;
	font-size: .75rem;
	color: #888;
	font-weight: normal;
}

.cell-edit-page {
	max-width: 32rem;
	margin: 3rem auto;
	padding: 1.5rem;
}
