/* The Kreator box in the Buku editor. */
.mahanani-bk-daftar,
.mahanani-bk-hasil {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mahanani-bk-baris {
	align-items: center;
	border-bottom: 1px solid #dcdcde;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 6px 0;
}

.mahanani-bk-nama {
	flex: 1 1 160px;
	min-width: 0;
	overflow-wrap: anywhere;
}

.mahanani-bk-tombol {
	display: inline-flex;
	gap: 4px;
}

.mahanani-bk-tombol button {
	font-size: 16px;
	line-height: 1;
	min-width: 28px;
	padding: 6px;
	text-align: center;
}

.mahanani-bk-cari {
	margin-top: 12px;
}

.mahanani-bk-cari label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.mahanani-bk-cari input[type="search"] {
	box-sizing: border-box;
	max-width: 400px;
	width: 100%;
}

.mahanani-bk-hasil {
	border: 1px solid #dcdcde;
	box-sizing: border-box;
	margin-top: 4px;
	max-width: 400px;
}

.mahanani-bk-hasil li {
	margin: 0;
}

.mahanani-bk-hasil button {
	box-sizing: border-box;
	display: block;
	overflow-wrap: anywhere;
	padding: 6px 8px;
	text-align: left;
	width: 100%;
}

.mahanani-bk-kosong {
	margin: 6px 0 0;
}

/* The details box in the Buku editor. */
.mahanani-bd {
	display: grid;
	gap: 0 16px;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.mahanani-bd p {
	margin: 0 0 12px;
}

.mahanani-bd label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.mahanani-bd input {
	box-sizing: border-box;
	width: 100%;
}

.mahanani-bd input:invalid {
	border-color: #b32d2e;
	box-shadow: 0 0 0 1px #b32d2e;
}

/* The Buat buku form. */
.mahanani-buat {
	box-sizing: border-box;
	margin: 0 auto;
	max-width: 760px;
	padding: 24px 16px 64px;
}

.mahanani-buat-daftar {
	margin: 0 0 16px;
	padding-left: 20px;
}

.mahanani-buat-penuh {
	font-weight: 600;
}

.mahanani-buat .is-gagal {
	border-color: #b32d2e;
	box-shadow: 0 0 0 1px #b32d2e;
}

.mahanani-buat-aksi {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.mahanani-buat-mirip {
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 12px;
}

/* The two screens of starting a Buku. */
.mahanani-tunel {
	max-width: 1040px;
}

/* Room for the fixed footer that appears at the end of the page. */
#primary.mahanani-tunel {
	max-width: none;
	padding-bottom: 130px;
	padding-left: 10%;
	padding-right: 10%;
}

.mahanani-tunel [hidden] {
	display: none;
}

.mahanani-tunel-jenis {
	margin: 0 auto 24px;
	max-width: 760px;
}

.mahanani-tunel-jenis h2 {
	margin: 0 0 16px;
}

.mahanani-tunel-pilihan {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.mahanani-tunel-pilihan button {
	background: transparent;
	border: 1px solid currentColor;
	border-radius: 6px;
	color: inherit;
	cursor: pointer;
	font: inherit;
	padding: 20px;
	text-align: left;
}

.mahanani-tunel-pilihan strong {
	display: block;
	font-size: 1.2em;
	margin-bottom: 6px;
}

.mahanani-tunel-pilihan button[aria-pressed="true"] {
	border-width: 2px;
}

.mahanani-tunel-muka {
	align-items: start;
	display: grid;
	gap: 36px;
	grid-template-columns: minmax(0, 8fr) minmax(0, 17fr);
	margin: 0 auto 24px;
	/* Keeps the cover a book's size on very wide screens. */
	max-width: 1200px;
}

.mahanani-tunel-sampul {
	cursor: pointer;
	display: block;
	position: relative;
}

.mahanani-tunel-sampul:focus-within {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.mahanani-tunel-sampul img {
	box-shadow: 0 2px 12px rgba(29, 35, 39, .22);
	display: block;
	height: auto;
	width: 100%;
}

.mahanani-tunel-sampul span {
	background: rgba(29, 35, 39, .75);
	border-radius: 4px;
	bottom: 10px;
	color: #fff;
	font-size: 13px;
	padding: 4px 10px;
	position: absolute;
	right: 10px;
}

/* Fields that read as the page they fill in, marked only by a dashed line. */
.mahanani-tunel .mahanani-tunel-teks textarea {
	background: transparent;
	border: 0;
	border-bottom: 1px dashed rgba(128, 128, 128, .5);
	border-radius: 0;
	box-sizing: border-box;
	color: inherit;
	display: block;
	font-family: inherit;
	margin: 0 0 14px;
	overflow: hidden;
	overflow-wrap: anywhere;
	padding: 2px 0;
	resize: none;
	width: 100%;
}

.mahanani-tunel .mahanani-tunel-teks textarea:focus {
	border-bottom: 1px solid currentColor;
	outline: none;
}

.mahanani-tunel .mahanani-tunel-teks textarea.is-gagal {
	border-bottom: 2px solid #b32d2e;
	box-shadow: none;
}

.mahanani-tunel .mahanani-tunel-teks textarea::placeholder {
	color: inherit;
	opacity: .45;
}

.mahanani-tunel .mahanani-tunel-teks .mahanani-tunel-judul {
	font-size: clamp(30px, 4vw, 44px);
	font-weight: 700;
	line-height: 1.15;
}

.mahanani-tunel .mahanani-tunel-teks .mahanani-tunel-subjudul {
	font-size: clamp(18px, 2.2vw, 22px);
	line-height: 1.3;
	opacity: .85;
}

.mahanani-tunel .mahanani-tunel-teks .mahanani-tunel-sinopsis {
	font-size: 17px;
	line-height: 1.55;
}

.mahanani-tunel-klasifikasi h2 {
	margin: 0 0 4px;
	outline: none;
}

.mahanani-tunel-klasifikasi,
.mahanani-tunel-klasifikasi:not([hidden]) ~ .mahanani-buat-aksi {
	margin-left: auto;
	margin-right: auto;
	max-width: 900px;
}

.mahanani-tunel-detail {
	margin: 0 auto 24px;
	max-width: 760px;
}

.mahanani-tunel-detail h2 {
	margin: 0 0 4px;
	outline: none;
}

.mahanani-tunel-catatan {
	margin: 0 0 16px;
	opacity: .7;
}

.mahanani-tunel-detail:not([hidden]) ~ .mahanani-buat-aksi {
	margin-left: auto;
	margin-right: auto;
	max-width: 760px;
}

@media (max-width: 700px) {
	#primary.mahanani-tunel {
		padding-left: 16px;
		padding-right: 16px;
	}

	.mahanani-tunel-muka {
		gap: 20px;
		grid-template-columns: minmax(0, 1fr);
	}

	.mahanani-tunel-sampul {
		justify-self: center;
		max-width: 208px;
		width: 100%;
	}
}

/* The bar on the temporary board. */
.mahanani-tunel-aksi {
	align-items: center;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	bottom: 16px;
	box-shadow: 0 2px 8px rgba(29, 35, 39, .2);
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	left: 50%;
	max-width: calc(100vw - 32px);
	padding: 8px 12px;
	position: fixed;
	transform: translateX(-50%);
	z-index: 998;
}

/* The mark on a Buku waiting for verification. */
.mahanani-buku-belum {
	background: #fff8e5;
	border: 1px solid #dba617;
	border-radius: 4px;
	color: #1d2327;
	font-size: 13px;
	left: 8px;
	/* Leaves room for the column of board buttons on the right. */
	max-width: calc(100vw - 80px);
	padding: 4px 10px;
	position: fixed;
	top: calc(var(--yt-admin-bar, 0px) + var(--yt-header-tinggi, 60px) + 8px);
	z-index: 998;
}

.mahanani-buku-belum button {
	background: none;
	border: 0;
	color: inherit;
	cursor: pointer;
	font: inherit;
	padding: 0;
	text-decoration: underline;
}

.mahanani-buku-belum button:disabled {
	cursor: wait;
	opacity: .6;
}

/* The "Data buku" part of the board's panel. */
.mahanani-kartu-data-buku {
	border-top: 1px solid #dcdcde;
	flex-basis: 100%;
	order: 10;
	padding-top: 8px;
}

.mahanani-bd-utama p {
	margin: 0 0 12px;
}

.mahanani-bd-utama label,
.mahanani-bd-sampul > span:first-child {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.mahanani-bd-utama input[type="text"],
.mahanani-bd-utama textarea {
	box-sizing: border-box;
	font: inherit;
	width: 100%;
}

.mahanani-bd-sampul button {
	margin-right: 4px;
}

/* Choosing from a Buku's trees. */
.mahanani-pohon-grup {
	display: grid;
	gap: 12px 16px;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	margin-bottom: 12px;
}

.mahanani-pohon {
	border: 1px solid #dcdcde;
	border-radius: 4px;
	margin: 0;
	min-width: 0;
	padding: 8px 10px;
}

.mahanani-pohon legend,
p.mahanani-pohon > label {
	font-weight: 600;
}

p.mahanani-pohon select {
	box-sizing: border-box;
	display: block;
	font-weight: 400;
	margin-top: 6px;
	width: 100%;
}

.mahanani-pohon input[type="search"] {
	box-sizing: border-box;
	margin-bottom: 6px;
	width: 100%;
}

.mahanani-pohon > ul {
	max-height: 200px;
	overflow-y: auto;
}

.mahanani-pohon ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mahanani-pohon ul ul {
	padding-left: 18px;
}

.mahanani-pohon li {
	margin: 0;
}

.mahanani-pohon li[hidden] {
	display: none;
}

.mahanani-pohon li label {
	align-items: flex-start;
	cursor: pointer;
	display: flex;
	font-weight: 400;
	gap: 6px;
	overflow-wrap: anywhere;
}

.mahanani-buat-sampul {
	display: block;
	height: auto;
	margin-bottom: 8px;
	max-height: 220px;
	max-width: 100%;
	width: auto;
}

.mahanani-kartu-data-buku > strong {
	display: block;
	margin-bottom: 8px;
}

.mahanani-kartu-data-buku .button-link {
	background: none;
	border: 0;
	color: #2271b1;
	cursor: pointer;
}

.mahanani-kartu-data-buku .button-link.is-destructive {
	color: #b32d2e;
}

.mahanani-kartu-data-aksi {
	align-items: center;
	display: flex;
	gap: 8px;
	margin: 12px 0 0;
}

.mahanani-kartu-data-aksi button {
	background: #2271b1;
	border: 0;
	border-radius: 4px;
	color: #fff;
	cursor: pointer;
	padding: 6px 12px;
}

.mahanani-kartu-data-aksi button:disabled {
	opacity: .6;
}

/* The Kreator card's names. */
.mahanani-kartu-el-kreator a {
	color: inherit;
	cursor: pointer;
	text-decoration: none;
}

.mahanani-kartu-el-kreator a:hover {
	color: var(--warna-tautan-hover, #191970);
}

/* The detail card on a Buku's board. Its text size is the card's Ukuran. */
.mahanani-buku-detail {
	margin: 0;
}

.mahanani-buku-detail dt {
	font-size: .78em;
	font-weight: 600;
	letter-spacing: .06em;
	margin-top: .9em;
	opacity: .6;
	text-transform: uppercase;
}

.mahanani-buku-detail dt:first-child {
	margin-top: 0;
}

.mahanani-buku-detail dd {
	margin: 0;
}

/* Links are never underlined on this site (style.css): these take the link colour instead. */
.mahanani-buku-detail a,
.mahanani-buku-detail a:visited {
	color: var(--warna-tautan, #4169e1);
	cursor: pointer;
}

.mahanani-buku-detail a:hover,
.mahanani-buku-detail a:focus {
	color: var(--warna-tautan-hover, #191970);
}
