* {
	box-sizing: border-box;
}

html,
body {
	width: 100%;
	height: 100%;
	margin: 0;
}

body {
	overflow: hidden;
	background: #111;
	color: #fff;
	font-family: "Roboto Mono", monospace;
}

.extras {
	display: flex;
	height: 100%;
	flex-direction: column;
	background: #111;
}

.section-tabs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.section-tabs button {
	min-width: 0;
	padding: 2px 0;
	border: 1px solid #333;
	border-radius: 0;
	color: #fff;
	background: inherit;
	font-family: inherit;
	font-size: 12px;
	cursor: pointer;
}

.section-tabs button:hover,
.section-tabs button[aria-selected="true"] {
	background: #444;
}

.section-tabs button:focus-visible {
	outline: 2px solid #aaa;
	outline-offset: 2px;
}

.section-panel {
	min-height: 0;
	flex: 1;
	overflow-y: auto;
	color: #fff;
	scrollbar-gutter: stable;
	scrollbar-color: #373737 #282828;
	scrollbar-width: thin;
}

.section-panel::-webkit-scrollbar {
	width: 8px;
}

.section-panel::-webkit-scrollbar-track {
	background: #282828;
}

.section-panel::-webkit-scrollbar-thumb {
	border-radius: 100px;
	background: #373737;
}

.section-panel::-webkit-scrollbar-thumb:hover {
	background: #555;
}

.section-panel h1 {
	margin: 0;
	padding: 5px 2px;
	background: #444;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
}

.section-panel p {
	margin: 0;
	padding: 10px 5px;
	border-bottom: 1px solid #555;
	font-size: 12px;
}

#other-options {
	display: grid;
	gap: 6px;
	padding: 8px 5px;
}

#tags-list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 8px 5px;
}

#tags-list a {
	padding: 3px 5px;
	border: 1px solid #555;
	color: #ddd;
	font-size: 11px;
	text-decoration: none;
}

#tags-list a:hover,
#tags-list a:focus-visible {
	background: #444;
	color: #fff;
	text-decoration: underline;
}

.article-setting {
	padding: 6px;
	border: 1px solid #555;
	background: #222;
	color: #fff;
	font: inherit;
	font-size: 11px;
	text-align: left;
	cursor: pointer;
}

.article-setting[aria-pressed="true"]::after {
	content: " (On)";
	color: #b7e4b7;
}

.article-setting:focus-visible {
	outline: 2px solid #aaa;
	outline-offset: 2px;
}

[hidden] {
	display: none !important;
}
