/*
 * Sidebar
 * Remove
 */
div.container.hsd::before {
	display: none;
}

/*
 * Body Height
 */
div.container.hsd {
	padding: 15vh 0;
	min-height: 75vh;
}

/*
 * Headings
 */
div.container.hsd-list h1 {
	margin-bottom: 1em;
}

div.container.hsd-list h2 {
	margin-top: 2em;
}

div.container.hsd-list h2:first-of-type {
	margin-top: 0;
}

/*
 * Manufacturer View
 */
div.container.hsd-manufacturer div.hsd-manufacturer-wrapper {
	display: flex;
	flex-flow: row-reverse nowrap;
	justify-content: space-between;
}

div.container.hsd-manufacturer div.hsd-manufacturer-wrapper aside.sidebar {
	flex: 0 0 256px;

	margin-left: 1em;
}

div.container.hsd-manufacturer div.hsd-manufacturer-wrapper main {
	flex: 1 1 auto;
}

@media (max-width: 1280px) {
	div.container.hsd-manufacturer div.hsd-manufacturer-wrapper {
		flex-flow: column wrap;
	}

	div.container.hsd-manufacturer div.hsd-manufacturer-wrapper aside.sidebar {
		flex: 1 1 256px;

		margin-left: 0;
		margin-bottom: 2em;
	}
}


/*
 * Download
 * Details
 */
 div.container.hsd article aside.details {
	display: flex;
	flex-flow: row wrap;
	justify-content: space-between;
	align-items: center;

	border-top: 1px dashed #d9d9d9;
	padding-top: 1rem;
}

div.container.hsd article aside.details div > * {
	margin-right: 1rem;
}

div.container.hsd article aside.details div > *:last-of-type {
	margin: 0;
}

/*
 * Download
 * Lists
 */
div.container.hsd-list article {
	margin-bottom: 0.5em;
}

div.container.hsd-list article:hover ul {
	margin: 0 1rem;
}

div.container.hsd-list article:hover ul li {
	margin: 0.4rem 0;
}

div.container.hsd-list article ul a {
	color: inherit;
	text-decoration: underline dotted;
}

div.container.hsd-list article:hover ul a.hs-tags {
	padding: 0.2em 0.4em;

	border: 1px solid #d9d9d9;
	border-radius: 3px;

	text-decoration: none;
}

div.container.hsd-list article div.wrapper {
	margin: 0 1rem 1rem 1rem;
}

div.container.hsd-list article div.wrapper:empty {
	margin: 0;
}


/*
 * Download
 * Lists
 * Details
 */
div.container.hsd-list article aside {
 	transition: margin-top 0.2s, line-height 0.2s, opacity 0.2s;

	line-height: 1;
	opacity: 0;
}

div.container.hsd-list article aside.taxonomy-1 {	margin-top: calc( -1em ); }
div.container.hsd-list article aside.taxonomy-2 {	margin-top: calc( -2em ); }
div.container.hsd-list article aside.taxonomy-3 {	margin-top: calc( -3em ); }
div.container.hsd-list article aside.taxonomy-4 {	margin-top: calc( -4em ); }
div.container.hsd-list article aside.taxonomy-5 {	margin-top: calc( -5em ); }

div.container.hsd-list article:hover aside {
	margin-top: 0;
	line-height: 1.7em;
	opacity: 1;
}

div.container.hsd-list article aside.details {
	transition: margin 0.4s, opacity 0.4s;

	margin-top: calc(-2rem - 1.5em - 0.6em - 4px);
	padding: 1rem;

	opacity: 0;
	background-color: #f4f4f4;
}

div.container.hsd-list article:hover aside.details {
	margin-top: 1rem;
	opacity: 1;
}

div.container.hsd-list article aside.details p.post-meta {
	margin: 0;
	padding: 0;
}

/*
 * Download Single
 * Grid
 */
div.container.hsd-single article div.hsd_grid {
	display: grid;
	grid-template-columns: auto 2fr;

	padding-top: 1rem;
	border-top: 1px dashed #d9d9d9;
}

div.container.hsd-single article div.hsd_grid.gapx {
	grid-column-gap: 1rem;
}

div.container.hsd-single article div.hsd_grid.gapy {
	grid-row-gap: 1rem;
}

div.container.hsd-single article div.hsd_grid aside {
	grid-column: 2 / 3;
}

div.container.hsd-single article div.hsd_grid div.image {
	grid-row: 1 / 3;
}

div.container.hsd-single article div.hsd_grid div.image img {
	border: 1px solid #d9d9d9;
}

div.container.hsd-single article div.hsd_grid div.wrapper {
	grid-column: 2 / 3;
	grid-row: 2 / 3;
}

@media (max-width: 512px) {
	div.container.hsd-single article div.hsd_grid {
		grid-template-columns: 1fr;
	}

	div.container.hsd-single article div.hsd_grid div.image,
	div.container.hsd-single article div.hsd_grid aside,
	div.container.hsd-single article div.hsd_grid div.wrapper {
		grid-area: unset;
	}
}

/*
 * Download
 * Single
 * Details
 */
div.container.hsd-single article aside.details {
	margin-top: 2rem;
}

/*
 * Download
 * File Icon
 */
div.container.hsd article h3.entry-title {
	transition: padding 0.2s, border-bottom-color 0.2s;

	position: relative;
	z-index: 5;

	color: #555;

	padding: 0.7rem 3rem 0.7rem 1rem;
	font-size: 1.125em;
	line-height: 1.5;
}

div.container.hsd article h3.entry-title.notfound {
	text-decoration: line-through;
}

div.container.hsd article h3.entry-title::before {
	transition: margin 0.2s, opacity 0.2s;
  display: inline-block;
  position: absolute;
  right: 0;

  font-family: 'ETmodules';
  opacity: 0;
  margin: 0 -1em 0 0;
}

div.container.hsd article h3.entry-title.notfound::before,
div.container.hsd article:hover h3.entry-title::before {
  opacity: 1;
  margin: 0 1rem 0 0;
}

div.container.hsd article h3.entry-title.default::before { content: ''; }
div.container.hsd article h3.entry-title.notfound::before { content: ''; }
div.container.hsd article h3.entry-title.file::before {	content: ''; }
div.container.hsd article h3.entry-title.software::before {	content: ''; }
div.container.hsd article h3.entry-title.archive::before { content: ''; }
div.container.hsd article h3.entry-title.spreadsheet::before { content: ''; }
div.container.hsd article h3.entry-title.image::before { content: ''; }
div.container.hsd article h3.entry-title.recent::before {	content: '}'; }

/*
 * Manufacturer Grid
 */
div#hsd-manufacturer-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-gap: 0.5rem;
}

@media (max-width: 1280px) {
	div#hsd-manufacturer-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 1024px) {
	div#hsd-manufacturer-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	div#hsd-manufacturer-grid {
		grid-template-columns: repeat(1, 1fr);
	}
}

div#hsd-manufacturer-grid div.hsd-manufacturer {
	display: flex;
	flex-flow: column;
	justify-content: space-between;

	border: 1px solid #d9d9d9;
	text-align: center;
}

div#hsd-manufacturer-grid div.hsd-manufacturer a.hsdLogo {
	flex: 1 1 auto;

	display: flex;
	flex-flow: column;
	justify-content: center;

	min-width: 256px;
	min-height: 256px;
	padding: 2rem;

	color: inherit;
	font-size: 2rem;
	font-weight: bold;
	text-transform: uppercase;
	line-height: 1;
}

div.hsd-details {
	display: flex;
	flex-flow: row nowrap;
	justify-content: space-between;
	align-items: center;

	padding: 1em;
	text-align: initial;

	background-color: #f4f4f4;
}

div.hsd-details > *:first-child {
	margin-right: 1em;
}

/**
 * List Downloads
 */
article.hsdDownload {
	display: grid;
	grid-gap: 1rem;
	grid-template-columns:
		max-content
		1fr
		1fr
		max-content
		max-content;

	padding: 1rem;
	margin-bottom: 0.2rem;

	background-color: #f4f4f4;
}

article.hsdDownload:hover {
	background-color: #d9d9d9;
}

article.hsdDownload a {
	color: inherit;
}

article.hsdDownload:hover a {
	text-decoration: underline;
}

article.hsdDownload:hover .icon.download a {
	text-decoration: none;
}

article.hsdDownload.error {
	grid-template-columns: max-content auto;
}


/**
 * Download Icon
 */
article.hsdDownload .icon {
  font-family: 'ETmodules';
  font-size: 1.8em;

  user-select: none;
  cursor: default;
}

article.hsdDownload .languages,
article.hsdDownload .filetype {
	opacity: 0.4;
}