.ndlh-pdf-downloads {
	color: #1f2933;
	width: 100%;
}

.ndlh-pdf-downloads__row {
	align-items: center;
	border-bottom: 1px solid #d7dde1;
	display: grid;
	gap: 1rem;
	grid-template-columns: 2.25rem minmax(0, 1fr) minmax(5rem, auto) auto;
	padding: 1rem 0;
}

.ndlh-pdf-downloads__row:last-child {
	border-bottom: 0;
}

.ndlh-pdf-downloads__icon {
	align-items: center;
	display: flex;
	justify-content: center;
}

.ndlh-pdf-downloads__icon svg {
	display: block;
	height: 2.375rem;
	overflow: visible;
	width: 2rem;
}

.ndlh-pdf-downloads__icon-page {
	fill: #fff;
	stroke: #c62828;
	stroke-linejoin: round;
	stroke-width: 2;
}

.ndlh-pdf-downloads__icon-fold {
	fill: none;
	stroke: #c62828;
	stroke-linejoin: round;
	stroke-width: 2;
}

.ndlh-pdf-downloads__icon text {
	fill: #c62828;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 7px;
	font-weight: 700;
}

.ndlh-pdf-downloads__title {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
	min-width: 0;
}

.ndlh-pdf-downloads__size {
	color: #59636b;
	font-size: 0.9375rem;
	justify-self: end;
	white-space: nowrap;
}

.ndlh-pdf-downloads .ndlh-pdf-downloads__button {
	background-color: #25465f;
	border: 0;
	border-radius: 3px;
	color: #ffffff !important;
	display: inline-block;
	font-size: 0.9375rem;
	font-weight: 700;
	justify-self: end;
	line-height: 1.2;
	padding: 0.75rem 1rem;
	text-align: center;
	text-decoration: none;
	transition: opacity 160ms ease;
	white-space: nowrap;
}

.ndlh-pdf-downloads .ndlh-pdf-downloads__button:hover,
.ndlh-pdf-downloads .ndlh-pdf-downloads__button:focus {
	background-color: #25465f;
	color: #ffffff !important;
	opacity: 0.8;
	text-decoration: none;
}

.ndlh-pdf-downloads .ndlh-pdf-downloads__button:focus-visible {
	outline: 3px solid rgba(37, 70, 95, 0.35);
	outline-offset: 3px;
}

.ndlh-pdf-downloads__notice {
	background: #fff8e5;
	border-left: 4px solid #dba617;
	box-sizing: border-box;
	color: #1d2327;
	margin: 1rem 0;
	padding: 0.875rem 1rem;
	width: 100%;
}

.ndlh-pdf-downloads--grid {
	display: grid;
	gap: 1.25rem;
}

.ndlh-pdf-downloads--grid.ndlh-pdf-downloads--columns-1 {
	grid-template-columns: minmax(0, 1fr);
}

.ndlh-pdf-downloads--grid.ndlh-pdf-downloads--columns-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ndlh-pdf-downloads--grid.ndlh-pdf-downloads--columns-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ndlh-pdf-downloads--grid.ndlh-pdf-downloads--columns-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ndlh-pdf-downloads--grid.ndlh-pdf-downloads--columns-5 {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ndlh-pdf-downloads--grid.ndlh-pdf-downloads--columns-6 {
	grid-template-columns: repeat(6, minmax(0, 1fr));
}

.ndlh-pdf-downloads__card {
	background: #ffffff;
	border: 1px solid #d7dde1;
	border-radius: 6px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 0.875rem;
}

.ndlh-pdf-downloads__thumbnail {
	align-items: center;
	aspect-ratio: 8.5 / 11;
	background: #f4f6f7;
	border: 1px solid #dfe6ea;
	box-sizing: border-box;
	color: #c62828;
	display: flex;
	justify-content: center;
	margin-bottom: 0.75rem;
	overflow: hidden;
	text-decoration: none;
	width: 100%;
}

.ndlh-pdf-downloads__thumb-image {
	display: block;
	height: 100%;
	object-fit: contain;
	object-position: center top;
	width: 100%;
}

.ndlh-pdf-downloads__card-title {
	display: block;
	margin-bottom: 0.375rem;
}

.ndlh-pdf-downloads__card-size {
	display: block;
	justify-self: auto;
	margin-bottom: 0.875rem;
	white-space: normal;
}

.ndlh-pdf-downloads__actions {
	display: grid;
	gap: 0.5rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: auto;
}

.ndlh-pdf-downloads .ndlh-pdf-downloads__actions .ndlh-pdf-downloads__button {
	font-size: 0.875rem;
	justify-self: stretch;
	padding: 0.625rem 0.5rem;
	white-space: normal;
}

.ndlh-pdf-downloads .ndlh-pdf-downloads__button--download {
	background-color: #3f6b4f;
}

.ndlh-pdf-downloads .ndlh-pdf-downloads__button--download:hover,
.ndlh-pdf-downloads .ndlh-pdf-downloads__button--download:focus {
	background-color: #3f6b4f;
}

.ndlh-pdf-downloads--table {
	background: #eef8f5;
	border-radius: 8px;
	box-sizing: border-box;
	display: grid;
	gap: 6px;
	overflow-x: auto;
	padding: 8px;
}

.ndlh-pdf-downloads__table-header,
.ndlh-pdf-downloads__table-row {
	align-items: center;
	background: #ffffff;
	border-radius: 6px;
	box-sizing: border-box;
	display: grid;
	gap: 1.5rem;
	grid-template-columns: minmax(14rem, 2fr) minmax(9rem, 1fr) minmax(11rem, 1.25fr) minmax(8rem, auto);
	min-width: 48rem;
	padding: 1rem 1.25rem;
}

.ndlh-pdf-downloads__table-header {
	color: #4d565c;
	font-size: 0.875rem;
	font-weight: 600;
}

.ndlh-pdf-downloads__table-row {
	color: #1f2933;
	min-height: 4rem;
}

.ndlh-pdf-downloads__table-title {
	font-weight: 700;
}

.ndlh-pdf-downloads__table-resource {
	align-items: center;
	display: flex;
	gap: 0.75rem;
}

.ndlh-pdf-downloads__table-thumbnail {
	align-items: center;
	display: flex;
	flex: 0 0 42px;
	height: 30px;
	justify-content: center;
}

.ndlh-pdf-downloads__table-thumbnail .ndlh-pdf-downloads__thumb-image {
	height: auto;
	max-height: 30px;
	max-width: 42px;
	object-fit: contain;
	width: auto;
}

.ndlh-pdf-downloads__table-row a:not(.ndlh-pdf-downloads__button) {
	color: #277867;
	font-weight: 500;
	text-decoration: none;
}

.ndlh-pdf-downloads__table-row a:not(.ndlh-pdf-downloads__button):hover,
.ndlh-pdf-downloads__table-row a:not(.ndlh-pdf-downloads__button):focus {
	text-decoration: underline;
}

.ndlh-pdf-downloads__table-action {
	justify-self: end;
}

@media (max-width: 76rem) {
	.ndlh-pdf-downloads--grid.ndlh-pdf-downloads--columns-5,
	.ndlh-pdf-downloads--grid.ndlh-pdf-downloads--columns-6 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 64rem) {
	.ndlh-pdf-downloads--grid.ndlh-pdf-downloads--columns-4,
	.ndlh-pdf-downloads--grid.ndlh-pdf-downloads--columns-5,
	.ndlh-pdf-downloads--grid.ndlh-pdf-downloads--columns-6 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 48rem) {
	.ndlh-pdf-downloads--grid.ndlh-pdf-downloads--columns-3,
	.ndlh-pdf-downloads--grid.ndlh-pdf-downloads--columns-4,
	.ndlh-pdf-downloads--grid.ndlh-pdf-downloads--columns-5,
	.ndlh-pdf-downloads--grid.ndlh-pdf-downloads--columns-6 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 40rem) {
	.ndlh-pdf-downloads--table {
		background: transparent;
		display: block;
		overflow: visible;
		padding: 0;
	}

	.ndlh-pdf-downloads__table-header {
		display: none;
	}

	.ndlh-pdf-downloads__table-row {
		border: 1px solid #d7dde1;
		border-radius: 8px;
		display: grid;
		gap: 0;
		grid-template-columns: minmax(0, 1fr);
		margin-bottom: 0.75rem;
		min-height: 0;
		min-width: 0;
		padding: 0;
	}

	.ndlh-pdf-downloads__table-row > [role="cell"] {
		border-top: 1px solid #e8ecef;
		display: grid;
		gap: 0.75rem;
		grid-template-columns: 6.5rem minmax(0, 1fr);
		padding: 0.75rem;
	}

	.ndlh-pdf-downloads__table-title {
		display: grid;
		grid-template-columns: 6.5rem minmax(0, 1fr);
	}

	.ndlh-pdf-downloads__table-title::before {
		grid-row: 1;
	}

	.ndlh-pdf-downloads__table-title .ndlh-pdf-downloads__table-resource {
		grid-column: 2;
	}

	.ndlh-pdf-downloads__table-row > [role="cell"]::before {
		color: #59636b;
		content: attr(data-label);
		font-size: 0.75rem;
		font-weight: 700;
		text-transform: uppercase;
	}

	.ndlh-pdf-downloads__table-row > [role="cell"]:first-child {
		border-top: 0;
	}

	.ndlh-pdf-downloads__table-action .ndlh-pdf-downloads__button {
		justify-self: stretch;
	}

	.ndlh-pdf-downloads__row {
		gap: 0.375rem 0.75rem;
		grid-template-columns: 2.25rem minmax(0, 1fr) auto;
	}

	.ndlh-pdf-downloads__row .ndlh-pdf-downloads__icon {
		grid-row: 1 / span 2;
	}

	.ndlh-pdf-downloads__row .ndlh-pdf-downloads__size {
		grid-column: 2;
		justify-self: start;
	}

	.ndlh-pdf-downloads__row .ndlh-pdf-downloads__button {
		grid-column: 3;
		grid-row: 1 / span 2;
	}
}

@media (max-width: 28rem) {
	.ndlh-pdf-downloads__row {
		grid-template-columns: 2.25rem minmax(0, 1fr);
	}

	.ndlh-pdf-downloads__row .ndlh-pdf-downloads__icon {
		grid-row: 1 / span 2;
	}

	.ndlh-pdf-downloads__row .ndlh-pdf-downloads__button {
		grid-column: 1 / -1;
		grid-row: auto;
		justify-self: stretch;
		margin-top: 0.5rem;
	}
}

@media (max-width: 30rem) {
	.ndlh-pdf-downloads--grid {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.ndlh-pdf-downloads__actions {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ndlh-pdf-downloads .ndlh-pdf-downloads__button {
		transition: none;
	}
}
