/* Additions for the preserved copy of robertsongsmith.com: the banner, the play buttons that
   replace the Flash player, and the parts of the theme that its script set up when a page loaded. */

.archive-banner {
	background: #333;
	color: #ddd;
	font: 13px/1.5 Arial, sans-serif;
	text-align: center;
	padding: 8px 12px;
}
.archive-banner a, .archive-banner a:visited { color: #9cf; }

/* The theme's script showed the small players, and turned the spools only on hover. */
.playerette { display: block; }
.cassette .spool { display: none; }
.first:hover .spool, .first.playing .spool { display: block; }

/* Submissions are closed, so the send button opens a note about that, and the tags are not links. */
.send button {
	display: block;
	width: 130px;
	height: 34px;
	margin: 0;
	padding: 0;
	border: 0;
	background: url(send.png) no-repeat;
	overflow: hidden;
	text-indent: -999em;
	cursor: pointer;
}
.send button:hover { background-position: 0 -34px; }
.send button:focus-visible { outline: 2px solid #1AACB9; outline-offset: 2px; }
.tags span { padding-left: 18px; background: url(tag.png) left no-repeat; color: #0F757D; }

#send-closed {
	width: 260px;
	margin: auto;
	padding: 12px 14px;
	border: 2px solid #1AACB9;
	border-radius: 4px;
	background: #1b1b1b;
	color: #ccc;
	font: 14px/1.45 "Helvetica Neue", Arial, Helvetica, sans-serif;
	box-shadow: 0 8px 24px rgb(0 0 0 / 0.5);
}
#send-closed::backdrop { background: transparent; }

/* Where the browser supports anchor positioning, the note opens just below the button. */
@supports (anchor-name: --send) {
	.send button { anchor-name: --send; }
	#send-closed {
		position-anchor: --send;
		position-area: bottom span-right;
		inset: auto;
		margin: 10px 0 0;
	}
}

/* A play button draws a triangle, and a pause symbol while its cover plays. */
button.play {
	appearance: none;
	-webkit-appearance: none;
	display: block;
	position: relative;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	--symbol: #fff;
}
button.play::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 6px 0 6px 10px;
	border-color: transparent transparent transparent var(--symbol);
	transform: translate(-40%, -50%);
}
.playing button.play::before {
	width: 4px;
	height: 12px;
	border-width: 0 3px;
	border-color: var(--symbol);
	transform: translate(-50%, -50%);
}
button.play:disabled { opacity: 0.35; cursor: not-allowed; }
button.play:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }

/* The small player sits to the right of the cassette icon. */
.playerette button.play { width: 26px; height: 27px; }

/* The cassette's player sits at the left of the label, beside "click to play". */
.cassette button.play { width: 28px; height: 18px; background: #fff; --symbol: #1AACB9; }

/* The list of posts on the archives page. */
.archive-list { font-size: 1.4em; line-height: 1.6; }
.archive-list h2 { font-size: 2.643em; margin-bottom: 0.6em; }
.archive-list h3 { color: #bbb; font-size: 1.3em; margin: 1.2em 0 0.4em; }
.archive-list li span { color: #555; margin-left: 0.4em; }
