/**
 * Toolbox (/tools/ and /tools/{material}/).
 *
 * Built on the Journal front page components (blog-journal-home.css): only
 * what the Toolbox adds lives here.
 */

/* Family row: names instead of years, in the thin face at a smaller size. */
.aduk-tb-families b {
	font-size: 40px;
	letter-spacing: -0.04em;
}

/* Material cards in the opening slider show whole pictures. */
.aduk-tb-shelf .aduk-jh-slide--book {
	width: 360px;
}

.aduk-tb-shelf .aduk-jh-slide--book h2 {
	font-size: 30px;
}

/* Family heading with its note under it. */
.aduk-tb-family .aduk-jh-sec__head {
	align-items: flex-end;
}

.aduk-tb-family__note {
	max-width: 560px;
	margin-top: 10px !important;
	color: var(--jh-soft);
}

.aduk-tb-band .aduk-jh-band__head h2,
.aduk-tb-band .aduk-jh-band__head h3 {
	font-size: 52px;
	line-height: 1;
}

.aduk-tb-band__brands a {
	color: var(--jh-ink);
	border-bottom: 1px solid var(--jh-line) !important;
}

.aduk-tb-band__brands a:hover {
	border-bottom-color: currentColor !important;
}

/* Material page heading: a quiet trail above the name. */
.aduk-tb-head {
	align-items: flex-end;
}

.aduk-tb-crumbs {
	margin-bottom: 10px !important;
}

.aduk-tb-crumbs a:hover {
	color: var(--jh-ink);
}

/* Lead: a picture made with the material beside its label. */
.aduk-tb-lead {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 56px;
	align-items: start;
	padding: 36px 0 0;
	border-top: 1px solid var(--jh-ink);
}

.aduk-tb-lead__figure {
	margin: 0;
}

.aduk-tb-lead__figure img {
	width: 100%;
	height: min(68vh, 640px) !important;
	padding: 28px;
	object-fit: contain;
	background: var(--jh-paper);
}

.aduk-tb-lead__figure figcaption {
	margin-top: 10px;
}

.aduk-tb-lead__figure figcaption a {
	color: var(--jh-ink);
}

.aduk-tb-label__note {
	margin: 0 0 28px !important;
	font-family: var(--jh-serif);
	font-size: clamp(24px, 2.1vw, 32px);
	line-height: 1.2;
}

.aduk-tb-label dl {
	margin: 0;
	border-top: 1px solid var(--jh-line);
}

.aduk-tb-label dl > div {
	display: grid;
	grid-template-columns: 170px minmax(0, 1fr);
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid var(--jh-line);
}

.aduk-tb-label dt {
	color: var(--jh-soft);
	font-size: 14px;
	font-weight: 400;
}

.aduk-tb-label dd {
	margin: 0;
	font-size: 17px;
}

.aduk-tb-label dd a {
	border-bottom: 1px solid var(--jh-line) !important;
}

.aduk-tb-label dd a:hover {
	border-bottom-color: currentColor !important;
}

.aduk-tb-shops {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
}

.aduk-tb-shops a::after {
	content: " \2197";
	color: var(--jh-soft);
}

.aduk-tb-label__fine {
	margin-top: 14px !important;
	color: var(--jh-soft);
	font-size: 13px;
}

/* Every work made with it: five across, whole pictures. */
.aduk-tb-works {
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 36px 24px;
}

.aduk-tb-works .aduk-jh-card__media img {
	padding: 10px;
	object-fit: contain;
}

.aduk-tb-empty {
	padding: 64px 0;
	color: var(--jh-soft);
}

@media (max-width: 1100px) {
	.aduk-tb-works {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.aduk-tb-lead {
		gap: 36px;
	}
}

@media (max-width: 700px) {
	.aduk-tb-families b {
		font-size: 28px;
	}

	.aduk-tb-shelf .aduk-jh-slide--book {
		width: 72vw;
	}

	.aduk-tb-band .aduk-jh-band__head h2,
	.aduk-tb-band .aduk-jh-band__head h3 {
		font-size: 36px;
	}

	.aduk-tb-lead {
		grid-template-columns: 1fr;
		gap: 24px;
		padding-top: 20px;
	}

	.aduk-tb-lead__figure img {
		height: auto !important;
		max-height: 70vh;
		padding: 16px;
	}

	.aduk-tb-label dl > div {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.aduk-tb-works {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 14px;
	}
}
