/* Common */
html, body {
  padding: 0;
  margin: 0;
}
body {
	font-family: 'Roboto', sans-serif;
	font-weight: 300;
	line-height: 150%;
	font-size: 90%;
}

a { }
a:link { color: black; font-weight: 500; }
a:visited { color: black; }
a:hover {color: #ff0000; }
.pseudo { border-bottom: 1px dashed; cursor:pointer; }
.pseudo:hover {color: #ff0000; }
.filter-toggle {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
	text-align: left;
}
.filter-toggle:hover,
.filter-toggle:focus {
	background: transparent;
	box-shadow: none;
}
.filter-toggle:after {
	content: " +";
	border: 0;
}
.filter-toggle[aria-expanded="true"]:after {
	content: " −";
}

button,
input[type="submit"] {
	background: #fff;
	border: 1px solid black;
	padding: 5px;
	cursor:pointer;
	box-shadow: 1px 1px 0 black;
}
button:hover,
input[type="submit"]:hover {
	background: rgb(255, 253, 196);
}
button:active, button.pressed,
input[type="submit"]:active {
	background: rgb(255, 253, 196);
	box-shadow: none;
}
button, input, textarea {
	font-family: 'Roboto', sans-serif;
	font-weight: 300;
	font-size: 100%;
}
input[type="text"] {
	padding: 5px;
	border: 1px solid black;
}

h1 {
	font-weight: 500;
	font-size: 170%;
	margin: 1.4em 0 0.55em;
}
h2 {
	font-size: 150%;
	font-weight: 500;
	margin: 1.4em 0 0.65em;
}
h3 {
	font-weight: 500;
	font-size: 125%;
	margin: 1.4em 0 0.7em;
}
h4 {
	font-size: 100%;
	font-weight: 100%;
	font-weight: 500;
	margin-bottom: 1em;
}
h1:first-child, 
h2:first-child, 
h3:first-child,
h4:first-child,
ul:first-child,
p:first-child {
	margin-top: 0;
}

/* Layout */
#layout {
	padding: 40px 40px 60px;
	min-width: 920px;
}
.leftCol {
	float: left;
	width: 25%;
	padding-right: 5%;
}
.rightCol {
	float: left;
	width: 70%;
}

/* Keep legacy justified project copy readable without changing museum content. */
#content.main-page .rightCol p[align="justify"] {
	text-align: justify;
}

/* Header */
#header {
	margin-bottom: 40px;
}
#header:after {
	clear:both;
	display:block;
	content: '';
}
#header h1 {
	margin: 0;
	font-size: 200%;
}
#header h1 a {
	color: inherit;
	text-decoration: none;
}
#header h1 a:hover {
	color: #ff0000;
}
#header ul {
	margin: 0;
	padding: 0;
}
#header ul li {
	list-style-type: none;
	margin: 0 30px 0 0;
	padding: 0;
	float: left;
}
#header .active a {
	text-decoration:none;
}

/* Footer */
#footer {
	border-top: 1px solid black;
	padding-top: 20px;
	margin-top: 100px;
	font-size: 90%;
}
#footer-vk {
	height: 31px;
	width: 31px;
	background: url(../img/icons.png) -8px -7px no-repeat;
	margin-right: 10px;
	display:inline-block;
	
	-webkit-border-radius: 2px;
	-moz-border-radius: 2px;
	border-radius: 2px;
}
#potanin-banner {
	float: left;
	width: 25%;
	text-align:right;
}
#footer-icons {
	float:left;
	width: 25%;
	padding-right: 5%;
}
#footer-description {
	float:left;
	width: 45%;
}

#content:after {
	clear:both;
	display:block;
	content: '';
}
#footer:after {
	clear:both;
	display:block;
	content: '';
}

/* Lantern */
#content.lantern .lantern-gallery {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}
#content.lantern .lantern-gallery__stage {
	order: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	background: #f4f4f2;
}
#content.lantern .lantern-gallery__slide {
	width: 100%;
	margin: 0;
	max-width: 100%;
}
#content.lantern .lantern-gallery__slide[hidden],
#content.lantern .lantern-gallery__controls [hidden],
#content.lantern .lantern-gallery__thumbnails[hidden],
#content.lantern .lantern-viewer[hidden] {
	display: none;
}
#content.lantern .lantern-gallery__main {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	line-height: 0;
	box-shadow: none;
	text-align: left;
	cursor: pointer;
}
#content.lantern .lantern-gallery__main:focus-visible,
#content.lantern .lantern-gallery__thumbnail:focus-visible,
#content.lantern .lantern-gallery__controls button:focus-visible,
#content.lantern .lantern-viewer button:focus-visible {
	outline: 2px solid #222;
	outline-offset: 2px;
}
#content.lantern .lantern-gallery__main:disabled {
	cursor: default;
}
#content.lantern .lantern-gallery__image {
	display: block;
	float: none;
	width: 100%;
	height: auto;
	max-width: 100%;
	margin: 0;
	object-fit: contain;
}
#content.lantern .lantern-gallery__controls {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 5px;
	max-width: 100%;
	margin-top: 4px;
	white-space: nowrap;
}
#content.lantern .lantern-gallery__controls button,
#content.lantern .lantern-viewer button {
	box-sizing: border-box;
	min-width: 44px;
	min-height: 44px;
	padding: 0;
	border: 1px solid transparent;
	background: transparent;
	color: inherit;
	cursor: pointer;
}
#content.lantern .lantern-gallery__controls button {
	border: 0;
	box-shadow: none;
}
#content.lantern .lantern-gallery__controls button:hover {
	background: rgba(0, 0, 0, 0.06);
}
#content.lantern .lantern-gallery__arrow,
#content.lantern .lantern-viewer__arrow {
	font-size: 30px;
	line-height: 1;
}
#content.lantern .lantern-gallery__position {
	min-width: 48px;
	font-size: 90%;
	text-align: center;
}
#content.lantern .lantern-gallery__zoom {
	margin-left: auto;
	font-size: 21px;
}

@media (min-width: 769px) {
	#content.lantern .lantern-gallery__stage {
		height: 440px;
	}
	#content.lantern .lantern-gallery__slide,
	#content.lantern .lantern-gallery__main {
		height: 100%;
	}
	#content.lantern .lantern-gallery__image {
		width: auto;
		max-width: 100%;
		max-height: 100%;
		margin-right: auto;
		margin-left: auto;
	}
}
#content.lantern .lantern-gallery__thumbnails {
	order: 2;
	display: grid;
	grid-template-columns: repeat(var(--gallery-thumb-count, 4), minmax(0, 1fr));
	gap: 7px;
	max-width: 100%;
	margin-top: 7px;
	padding: 2px 2px 5px;
	box-sizing: border-box;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	scrollbar-width: thin;
}
#content.lantern .lantern-gallery__empty {
	margin: 0;
	padding: 1rem 0;
	font-size: 15px;
	line-height: 1.6;
}
#content.lantern .lantern-gallery__thumbnail {
	width: 100%;
	height: 68px;
	box-sizing: border-box;
	padding: 2px;
	border: 1px solid transparent;
	background: transparent;
	cursor: pointer;
}
#content.lantern .lantern-gallery__controls {
	order: 1;
}
#content.lantern .lantern-historical-text,
#content.lantern table .left > p {
	font-size: 15px;
	line-height: 1.6;
	text-align: left;
	word-break: normal;
	overflow-wrap: anywhere;
	hyphens: auto;
}
#content.lantern table .left > p {
	margin: 0 0 1em;
}
#content.lantern .lantern-gallery__thumbnail[aria-current="true"] {
	border-color: #333;
}
#content.lantern .lantern-gallery__thumbnail img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	float: none;
	object-fit: cover;
}
#content.lantern .lantern-historical-photo .lantern-img {
	float: none;
	width: auto;
	height: auto;
	max-width: 100%;
	display: block;
}
#content.lantern .lantern-historical-photo {
	margin-top: 22px;
}
#content.lantern .lantern-gallery__status,
#content.lantern .lantern-viewer__status {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
#content.lantern .lantern-viewer {
	position: fixed;
	z-index: 10000;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	box-sizing: border-box;
	width: 100vw;
	height: 100vh;
	padding: 16px;
	background: rgba(0, 0, 0, 0.9);
	color: #fff;
	overflow: hidden;
}
#content.lantern .lantern-viewer__dialog {
	position: relative;
	width: 100%;
	height: 100%;
	max-width: 1280px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) 44px;
	grid-template-rows: minmax(0, 1fr) auto;
	align-items: center;
	column-gap: 8px;
}
#content.lantern .lantern-viewer__close {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 1;
	font-size: 34px;
	line-height: 1;
}
#content.lantern .lantern-viewer__arrow {
	grid-row: 1;
	font-size: 38px;
}
#content.lantern .lantern-viewer__figure {
	grid-column: 2;
	grid-row: 1;
	min-width: 0;
	max-height: 100%;
	margin: 34px 0 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
#content.lantern .lantern-viewer__figure img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: calc(100vh - 150px);
	margin: 0;
	float: none;
	object-fit: contain;
	/* PHPThumb derivatives omit EXIF orientation; retain their source-pixel orientation in the viewer too. */
	image-orientation: none;
}
#content.lantern .lantern-viewer__figure figcaption {
	max-width: 100%;
	margin-top: 12px;
	color: #fff;
	text-align: center;
}
#content.lantern .lantern-back-link {
	display: inline-block;
	margin: 0 0 .65rem;
	color: #000;
	font-size: 14px;
}
#content.lantern .lantern-back-link__arrow {
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-right: .45em;
	vertical-align: -3px;
}
#content.lantern .lantern-back-link:hover,
#content.lantern .lantern-additional a:hover {
	color: #000;
	text-decoration-color: #ffd800;
}
#content.lantern .lantern-page-title h1 {
	font-size: clamp(25px, 2.2vw, 32px);
	font-weight: 500;
}
@media (max-width: 480px) {
	#content.lantern .lantern-gallery__thumbnail {
		height: 58px;
	}
	#content.lantern .lantern-viewer {
		padding: 8px;
	}
	#content.lantern .lantern-viewer__dialog {
		grid-template-columns: 40px minmax(0, 1fr) 40px;
		column-gap: 2px;
	}
	#content.lantern .lantern-viewer__figure {
		margin-top: 38px;
	}
	#content.lantern .lantern-viewer__figure img {
		max-height: calc(100vh - 128px);
	}
}

/* Detective section: project mark and gallery use the site's restrained editorial layout. */
body.detective-body { min-height: 100vh; }
body.detective-body #layout { display: flex; flex-direction: column; min-width: 0; min-height: 100vh; box-sizing: border-box; }
body.detective-body #content { flex: 1 0 auto; }
body.detective-body #footer { flex: 0 0 auto; }
#content.detective-page {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	overflow-wrap: anywhere;
}
#content.detective-page .detective-catalog-intro,
#content.detective-page .detective-current,
#content.detective-page .detective-archive,
#content.detective-page .detective-case,
#content.detective-page .detective-case-layout { min-width: 0; max-width: 100%; }
#content.detective-page h1 { margin: 0 0 .45em; font-size: 170%; font-weight: 500; line-height: 1.25; }
#content.detective-page h2 { font-size: 150%; font-weight: 500; line-height: 1.3; }
#content.detective-page .detective-catalog-intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(118px, 170px);
	gap: 1.5rem;
	align-items: center;
	max-width: 100%;
	margin: 0 0 1.7rem;
}
#content.detective-page .detective-catalog-intro__copy { max-width: 68ch; }
#content.detective-page .detective-catalog-intro h1 { margin-bottom: .4em; }
#content.detective-page .detective-catalog-intro p { margin: 0; }
#content.detective-page .detective-catalog-intro__logo { display: block; width: 100%; max-width: 170px; max-height: 205px; height: auto; object-fit: contain; }
#content.detective-page .detective-empty { max-width: 68ch; margin: .75rem 0; }
#content.detective-page .detective-current {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2.8fr);
	column-gap: 5%;
	align-items: start;
	margin: 0 0 2.2rem;
}
#content.detective-page .detective-current.no-image { grid-template-columns: minmax(0, 1fr); }
#content.detective-page .detective-current__media,
#content.detective-page .detective-case__media figure { min-width: 0; margin: 0; }
#content.detective-page .detective-current__media img,
#content.detective-page .detective-case__media img,
#content.detective-page .detective-archive__image img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
}
#content.detective-page .detective-current__media figcaption,
#content.detective-page .detective-case__media figcaption { margin-top: .4rem; font-size: 85%; line-height: 1.45; }
#content.detective-page .detective-current__copy,
#content.detective-page .detective-archive__copy,
#content.detective-page .detective-case__story { min-width: 0; }
#content.detective-page .detective-case-number { margin: 0 0 .35rem; font-weight: 500; }
#content.detective-page .detective-current__copy h2 { margin: 0 0 .55rem; }
#content.detective-page .detective-current__copy .detective-case-number { border-left: 4px solid #fff282; padding-left: .65rem; }
#content.detective-page .detective-current__copy > p { max-width: 72ch; }
#content.detective-page .detective-current__intro { margin: 0 0 .8rem; font-size: 15px; line-height: 1.6; }
#content.detective-page .detective-current__link { margin: .6rem 0 0; }
#content.detective-page .detective-archive { margin-top: 2rem; }
#content.detective-page .detective-archive > h2 { margin: 0 0 .55rem; }
#content.detective-page .detective-archive__list { margin: 0; padding: 0; list-style: none; }
#content.detective-page .detective-archive__item {
	display: grid;
	grid-template-columns: minmax(5.5rem, .22fr) minmax(0, 1fr);
	column-gap: 1.25rem;
	align-items: start;
	padding: 1rem 0 1.15rem;
	border-top: 1px solid #d0d0d0;
}
#content.detective-page .detective-archive__number { margin: .1rem 0 0; font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; }
#content.detective-page .detective-archive__entry {
	display: grid;
	grid-template-columns: minmax(6rem, .28fr) minmax(0, 1fr);
	column-gap: 1.2rem;
	align-items: start;
}
#content.detective-page .detective-archive__entry.no-image { grid-template-columns: minmax(0, 1fr); }
#content.detective-page .detective-archive__image { display: block; min-width: 0; max-width: 100%; }
#content.detective-page .detective-archive__image img { max-height: 9rem; width: auto; }
#content.detective-page .detective-archive__copy h3 { margin: 0 0 .35rem; font-size: 125%; font-weight: 500; line-height: 1.3; }
#content.detective-page .detective-archive__copy p { max-width: 68ch; margin: 0; line-height: 1.5; }
#content.detective-page .detective-case-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2.8fr);
	grid-template-areas: "media heading" "media story";
	column-gap: 5%;
	align-items: start;
}
#content.detective-page .detective-case-layout.no-images {
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas: "heading" "story";
	max-width: 72ch;
}
#content.detective-page .detective-case__header { grid-area: heading; min-width: 0; margin-bottom: .25rem; }
#content.detective-page .detective-case__number-row { display: inline-flex; align-items: center; gap: .65rem; max-width: 100%; margin: 0 0 .35rem; }
#content.detective-page .detective-case__number-row .detective-case-number { margin: 0; border-left: 4px solid #fff282; padding-left: .65rem; }
#content.detective-page .detective-case__mark { display: block; flex: 0 0 auto; width: 60px; height: auto; max-height: 70px; object-fit: contain; }
#content.detective-page .detective-case__media { grid-area: media; min-width: 0; }
#content.detective-page .detective-case-layout.has-images > .detective-gallery { grid-area: media; min-width: 0; }
#content.detective-page .detective-case__story { grid-area: story; }
#content.detective-page .detective-case__story { max-width: 72ch; }
#content.detective-page .detective-case__intro { margin: .6rem 0 1rem; font-size: 15px; line-height: 1.6; }
#content.detective-page .detective-case__text { font-size: 15px; line-height: 1.6; }
#content.detective-page .detective-case__text p { margin: 0 0 1em; }
#content.detective-page .detective-case__text img { display: block; max-width: 100%; height: auto; }
#content.detective-page .detective-case__text figure { margin: 1em 0; }
#content.detective-page .detective-case__text figcaption { margin-top: .4em; font-size: .9em; }
#content.detective-page .detective-case__text h2,
#content.detective-page .detective-case__text h3 { margin: 1.1em 0 .45em; }
#content.detective-page .detective-case__text ul,
#content.detective-page .detective-case__text ol { margin: 0 0 1em; padding-left: 1.4em; }
#content.detective-page .detective-case__related { margin-top: 1.5rem; padding-top: .75rem; border-top: 1px solid #d0d0d0; }
#content.detective-page .detective-case__related h2 { margin: 0 0 .45rem; font-size: 125%; }
#content.detective-page .detective-case__related ul { margin: 0; padding-left: 1.25rem; }
#content.detective-page .detective-case__navigation { margin-top: 1.35rem; }
#content.detective-page .detective-case__navigation p { margin: 0 0 .5rem; }

/* The Detective gallery reuses the existing manufacturer gallery behavior. */
#content.detective-page .detective-gallery { min-width: 0; }
#content.detective-page .detective-gallery > h2 { margin: 0 0 .65rem; font-size: 125%; }
#content.detective-page .detective-gallery__stage { display: block; width: 100%; min-width: 0; }
#content.detective-page .detective-gallery__main {
	display: block;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	cursor: zoom-in;
}
#content.detective-page .detective-gallery__main img { display: block; width: auto; height: auto; max-width: 100%; max-height: 62vh; margin: 0 auto; object-fit: contain; }
#content.detective-page .detective-gallery__caption { min-height: 2.4em; margin: .45rem 0 .3rem; font-size: 88%; line-height: 1.45; overflow-wrap: anywhere; }
#content.detective-page .detective-gallery__controls { display: flex; align-items: center; gap: 7px; min-height: 44px; margin: .15rem 0 .55rem; }
#content.detective-page .detective-gallery__controls button,
#content.detective-page .detective-gallery__viewer button { box-sizing: border-box; min-width: 44px; min-height: 44px; padding: 0 8px; border: 0; background: transparent; box-shadow: none; font-size: 22px; line-height: 1; }
#content.detective-page .detective-gallery__controls button:hover,
#content.detective-page .detective-gallery__viewer button:hover { background: rgba(0,0,0,.06); }
#content.detective-page .detective-gallery__controls button:focus-visible,
#content.detective-page .detective-gallery__thumbnail:focus-visible,
#content.detective-page .detective-gallery__viewer button:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
#content.detective-page .detective-gallery__controls [hidden],
#content.detective-page .detective-gallery__viewer [hidden] { display: none; }
#content.detective-page .detective-gallery__position { min-width: 4.5rem; font-size: 90%; text-align: center; }
#content.detective-page .detective-gallery__zoom { width: 44px; margin-left: auto; }
#content.detective-page .detective-gallery__thumbnails { display: grid; grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)); gap: 7px; max-width: 100%; max-height: 88px; margin-top: .25rem; overflow-x: auto; overflow-y: hidden; }
#content.detective-page .detective-gallery__thumbnail { width: 100%; min-width: 0; min-height: 66px; max-height: 84px; padding: 2px; border: 1px solid transparent !important; background: transparent !important; box-shadow: none !important; }
#content.detective-page .detective-gallery__thumbnail[aria-selected="true"] { border-color: #333 !important; }
#content.detective-page .detective-gallery__thumbnail img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; }
#content.detective-page .detective-gallery__viewer[hidden] { display: none; }
#content.detective-page .detective-gallery__viewer { position: fixed; z-index: 10000; inset: 0; box-sizing: border-box; width: 100vw; height: 100vh; padding: 16px; background: rgba(0,0,0,.92); color: #fff; }
#content.detective-page .detective-gallery__dialog { position: relative; display: grid; grid-template-columns: 48px minmax(0,1fr) 48px; grid-template-rows: minmax(0,1fr) auto; align-items: center; gap: 8px; width: 100%; height: 100%; max-width: 1360px; margin: 0 auto; }
#content.detective-page .detective-gallery__viewer-close { position: absolute; top: 0; right: 0; z-index: 1; font-size: 32px !important; }
#content.detective-page .detective-gallery__viewer-arrow { grid-row: 1; color: #fff; font-size: 36px !important; }
#content.detective-page .detective-gallery__viewer-figure { display: flex; grid-column: 2; grid-row: 1; flex-direction: column; align-items: center; justify-content: center; min-width: 0; max-height: 100%; margin: 40px 0 0; }
#content.detective-page .detective-gallery__viewer-figure img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 150px); margin: 0; object-fit: contain; }
#content.detective-page .detective-gallery__viewer-figure figcaption { max-width: 72ch; margin-top: 12px; text-align: center; }
#content.detective-page .detective-gallery__viewer-figure figcaption span { display: block; }

@media (max-width: 768px) {
	body.detective-body #layout { padding: 24px 16px 40px; }
	#content.detective-page .detective-catalog-intro { grid-template-columns: minmax(0, 1fr) minmax(88px, 112px); gap: .75rem; }
	#content.detective-page .detective-catalog-intro__logo { max-width: 112px; max-height: 142px; }
	#content.detective-page .detective-current { grid-template-columns: minmax(0, 1fr); row-gap: 1rem; }
	#content.detective-page .detective-case-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "heading" "media" "story"; row-gap: 1rem; }
	#content.detective-page .detective-current__media,
	#content.detective-page .detective-case__media { max-width: 100%; }
	#content.detective-page .detective-case-layout.no-images { grid-template-areas: "heading" "story"; }
	#content.detective-page .detective-archive__item { grid-template-columns: 5rem minmax(0, 1fr); column-gap: .75rem; }
	#content.detective-page .detective-archive__entry { grid-template-columns: minmax(5rem, .34fr) minmax(0, 1fr); column-gap: .75rem; }
	#content.detective-page .detective-archive__image img { max-height: 7rem; }
	#content.detective-page .detective-case__story { max-width: 100%; }
	#content.detective-page .detective-gallery__main img { max-height: 70vh; }
}
@media (max-width: 480px) {
	#content.detective-page .detective-catalog-intro { grid-template-columns: minmax(0, 1fr) 86px; gap: .6rem; }
	#content.detective-page .detective-catalog-intro__logo { width: 86px; max-height: 110px; }
	#content.detective-page .detective-archive__item { grid-template-columns: 3.8rem minmax(0, 1fr); column-gap: .55rem; }
	#content.detective-page .detective-archive__entry { grid-template-columns: 4.25rem minmax(0, 1fr); column-gap: .6rem; }
	#content.detective-page .detective-gallery__dialog { grid-template-columns: 40px minmax(0,1fr) 40px; gap: 2px; }
	#content.detective-page .detective-gallery__viewer { padding: 8px; }
	#content.detective-page .detective-gallery__viewer-figure img { max-height: calc(100vh - 132px); }
}
#content.lantern .lantern-img {
	margin: 10px 10px 0 0;
	display:block;
	float:left;
}
#content.lantern h1:first-child {
	margin-top: 0;
	line-height: 1.25;
}
#content.lantern table {
	width: 100%;
	margin-bottom: 1em;
}
#content.lantern table td {
	vertical-align:top;
}
#content.lantern table .right {
	width: 330px;
	padding-left: 30px;
}
#lantern-params span {
	font-weight: 500;
}

/* Main page */
.main-page #map {
	height: 600px;
}
.main-page #map.map-status {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: 24px;
	background: #f3f3f3;
	text-align: center;
}
.main-page #map .map-status__content { max-width: 34rem; }
.main-page #map .map-status__content p { margin: 0 0 .65rem; }
.main-page #map .map-status__content a { color: #000; text-decoration: underline; }
.infoBox {
	min-width: 150px;
	width: auto;
	position: relative;
	background: #ffffff;
	border: 1px solid #000000;
	box-shadow: 2px 2px 0 black;
}
.infoBox:after, .infoBox:before {
	right: 100%;
	border: solid transparent;
	content: " ";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
}

.infoBox:after {
	border-color: rgba(255, 255, 255, 0);
	border-right-color: #ffffff;
	border-width: 10px;
	top: 100%;
	margin-top: -85px;
}
.infoBox:before {
	border-color: rgba(0, 0, 0, 0);
	border-right-color: #000000;
	border-width: 11px;
	top: 100%;
	margin-top: -86px;
}
.infoBox h4 {
	margin-top: 0;
}
.infoBox img {
	display:block;
	margin: 0 auto;
}

/* Filters */
.filter {
	
}
.filter h3 {
	margin-bottom: 1.2em;
}
.filter .filter-hidable {
	display:none;
	overflow:hidden;
}
/* Keep clipped accordion content clear of checkbox hover/focus outlines. */
#filters .filter-hidable {
	margin-left: -4px;
	margin-right: -4px;
	padding-left: 4px;
	padding-right: 4px;
}
.filter ul {
	margin: 0;
	padding: 0;
}
.filter .filter-hidable > ul {
	margin-bottom: 3em;
}
.filter ul ul {
	margin: 0.5em 0 0 1.3em;
}
.filter li {
	list-style-type:none;
	margin: 0.5em 0 0.5em 0;
}
.filter li:first-child {
	margin-top: 0;
}
#historic-range p {
	margin-bottom: 10px;
	margin-top: 0;
}
#historic-range {
	margin-bottom: 3em;
}
#historic-range h3 {
	margin-bottom: 10px;
}
#slider-range,
#manufacturer-slider-range {
	border: 1px solid black;
}
#slider-range,
#slider-range .ui-corner-all,
#manufacturer-slider-range,
#manufacturer-slider-range .ui-corner-all {
	-webkit-border-radius: 0px !important;
	-moz-border-radius: 0px !important;
	border-radius: 0px !important;
}
#slider-range a,
#manufacturer-slider-range a {
	outline: none;
	background: white;
	border: 1px solid black;
	box-shadow: 1px 1px 0 black;
}
#slider-range a:hover,
#manufacturer-slider-range a:hover {
	background: rgb(255, 253, 196);
}
#slider-range a:active,
#manufacturer-slider-range a:active {
	background: rgb(255, 253, 196);
	box-shadow: none;
}
#slider-range .ui-slider-range,
#manufacturer-slider-range .ui-slider-range {
	background: rgba(0, 0, 0, 0.1);
}
#legend {
	border-top: 1px solid black;
	margin: 50px 0 30px;
	padding-top: 20px;
}

/* List */
.list ul {
	padding-left: 0;
	margin-bottom: 1.2em;
	font-size: 130%;
}
.list ul li {
	list-style-type: none;
	padding-left: 0px;
	margin: 1.2em 0;
}
.list ul li:first-child {
	padding-top: 0;
	margin-top: 0;
}
.list ul ul {
	margin: 0.6em 0 1.2em;
	font-size: 75%;
}
.list ul ul li {
	padding-left: 20px;
	margin: 0.3em 0;
}

/* Search */
.sisea-search-form fieldset {
	border:none;
	padding: 0;
	margin: 1em 0;
}
.sisea-search-form label {
	display:none;
}
#home-lantern-search .lantern-search-form label {
	display:block;
}
#home-lantern-search .sisea-search-form fieldset {
	margin-top: 0;
}
.sisea-result .extract {
	margin-bottom: 1.0em;
	margin-top: -1em;
	font-size: 90%;
}
.search-page .rightCol {
	max-width: 800px;
}
.sisea-results-list {
	margin-top: 2em;
	margin-bottom: 2em;
}

/* Manufacturer catalogue and profiles */
body.manufacturer-body #layout { min-width: 0; }
#content.manufacturer-page {
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}
#content.manufacturer-page h1:first-child { margin-top: 0; }
#content.manufacturer-page .manufacturer-record,
#content.manufacturer-page .manufacturer-catalog-layout,
#content.manufacturer-page .manufacturer-company-layout { min-width: 0; max-width: 100%; }
#content.manufacturer-page .manufacturer-record { overflow-wrap: anywhere; }

/* The catalogue follows the existing 25 / 5 / 70 page grid. */
#content.manufacturer-catalog-page .manufacturer-catalog-layout {
	display: grid;
	grid-template-columns: minmax(14rem, 1fr) minmax(0, 2.8fr);
	gap: 0 5%;
	align-items: start;
}
#content.manufacturer-catalog-page .manufacturer-catalog-sidebar { min-width: 0; }
#content.manufacturer-catalog-page .manufacturer-catalog-sidebar > h2 {
	margin: 0 0 1rem;
	font-size: 125%;
}
#content.manufacturer-catalog-page .manufacturer-catalog-main { min-width: 0; }
#content.manufacturer-catalog-page .manufacturer-catalog-heading { margin-bottom: 1.45rem; }
#content.manufacturer-catalog-page .manufacturer-catalog-heading h1 {
	margin: 0 0 .45em;
	font-weight: 500;
	font-size: 170%;
}
#content.manufacturer-catalog-page .manufacturer-catalog-heading p { margin: 0; }
#content.manufacturer-catalog-page .manufacturer-catalog-filter {
	margin: 0;
	padding: 0;
}
#content.manufacturer-catalog-page .manufacturer-period-fields {
	margin: 0 0 1.1rem;
	padding: .65rem 0 0;
	border: 0;
	border-top: 1px solid #d0d0d0;
}
#content.manufacturer-catalog-page .manufacturer-period-fields legend {
	padding: 0 .5rem 0 0;
	font-weight: 500;
}
#content.manufacturer-catalog-page .manufacturer-year-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}
#content.manufacturer-catalog-page .manufacturer-year-fields label,
#content.manufacturer-catalog-page .manufacturer-category-field {
	display: block;
	min-width: 0;
	font-size: 90%;
}
#content.manufacturer-catalog-page .manufacturer-year-fields input,
#content.manufacturer-catalog-page .manufacturer-category-field select {
	display: block;
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	min-height: 40px;
	margin-top: 4px;
	padding: 6px 8px;
	border: 1px solid #888;
	background: #fff;
}
#content.manufacturer-catalog-page .manufacturer-period-empty {
	margin: .85rem 0;
	font-size: 90%;
	line-height: 1.45;
}
#content.manufacturer-catalog-page .manufacturer-period-single-year { margin: .85rem 0; font-variant-numeric: tabular-nums; }
#content.manufacturer-catalog-page .manufacturer-period-value { margin: 1.25rem 0 0; font-variant-numeric: tabular-nums; transform: translateY(-17px); }
#content.manufacturer-catalog-page .manufacturer-catalog-filter.has-period-slider .manufacturer-year-fields { display: none; }
#content.manufacturer-catalog-page .manufacturer-year-fields input:focus-visible,
#content.manufacturer-catalog-page .manufacturer-category-field select:focus-visible,
#content.manufacturer-catalog-page .manufacturer-undated-field input:not([type="checkbox"]):focus-visible,
#content.manufacturer-catalog-page .manufacturer-filter-actions button:focus-visible,
#content.manufacturer-catalog-page .manufacturer-catalog-filter a:focus-visible,
#content.manufacturer-page .manufacturer-gallery button:focus-visible {
	outline: 2px solid #000;
	outline-offset: 2px;
}
#content.manufacturer-catalog-page #manufacturer-slider-range a:focus,
#content.manufacturer-catalog-page #manufacturer-slider-range a:focus-visible,
#content.manufacturer-catalog-page #manufacturer-slider-range a:active { outline: none; outline-offset: 0; }
#content.manufacturer-catalog-page .manufacturer-category-field { margin: 0 0 1rem; }
#content.manufacturer-catalog-page .manufacturer-undated-field {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin: 0 0 1.05rem;
	font-size: 90%;
	line-height: 1.45;
}
#content.manufacturer-catalog-page .manufacturer-undated-field input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
}
#content.manufacturer-catalog-page .manufacturer-filter-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}
#content.manufacturer-catalog-page .manufacturer-filter-actions button {
	padding: 5px;
	border: 1px solid #000;
	background: #fff;
	box-shadow: 1px 1px 0 #000;
	color: #000;
	font: inherit;
	cursor: pointer;
}
#content.manufacturer-catalog-page .manufacturer-catalog-reset {
	display: inline-block;
	padding: 5px;
	border: 1px solid #000;
	background: #fff;
	box-shadow: 1px 1px 0 #000;
	color: #000;
	font: inherit;
	font-weight: 300;
	line-height: inherit;
	text-decoration: none;
	cursor: pointer;
}
#content.manufacturer-catalog-page .manufacturer-filter-actions button:hover,
#content.manufacturer-catalog-page .manufacturer-catalog-reset:hover { background: rgb(255, 253, 196); }
#content.manufacturer-catalog-page .manufacturer-filter-actions button:active,
#content.manufacturer-catalog-page .manufacturer-catalog-reset:active { box-shadow: none; }
#content.manufacturer-catalog-page .manufacturer-catalog-reset:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
#content.manufacturer-catalog-page .manufacturer-catalog-filter-note {
	max-width: 34ch;
	margin: 1rem 0 0;
	font-size: 85%;
	line-height: 1.5;
}
#content.manufacturer-catalog-page .manufacturer-catalog-count {
	margin: 1rem 0 0;
	font-weight: 500;
}
#content.manufacturer-catalog-page .manufacturer-catalog-list {
	margin: 0;
	padding: 0;
	list-style: none;
}
#content.manufacturer-catalog-page .manufacturer-catalog-item {
	display: grid;
	grid-template-columns: minmax(5.5rem, .22fr) minmax(0, 1fr);
	gap: 0 1.3rem;
	padding: 1.25rem 0 1.35rem;
	border-top: 1px solid #d0d0d0;
}
#content.manufacturer-catalog-page .manufacturer-catalog-item.has-thumbnail { grid-template-columns: minmax(5.5rem, .22fr) minmax(0, 1fr) minmax(76px, 120px); }
#content.manufacturer-catalog-page .manufacturer-catalog-thumbnail { grid-column: 3; grid-row: 1; display: block; min-width: 0; }
#content.manufacturer-catalog-page .manufacturer-catalog-thumbnail img { display: block; width: 100%; max-height: 92px; object-fit: contain; }
#content.manufacturer-catalog-page .manufacturer-catalog-item:last-child { border-bottom: 0; }
#content.manufacturer-catalog-page .manufacturer-catalog-year {
	padding-top: .12rem;
	font-variant-numeric: tabular-nums;
}
#content.manufacturer-catalog-page .manufacturer-catalog-year-value {
	display: block;
	font-size: 145%;
	font-weight: 500;
	line-height: 1.15;
}
#content.manufacturer-catalog-page .manufacturer-catalog-year-kind,
#content.manufacturer-catalog-page .manufacturer-catalog-year-unknown {
	display: block;
	margin-top: .3rem;
	font-size: 80%;
	line-height: 1.35;
}
#content.manufacturer-catalog-page .manufacturer-catalog-entry { min-width: 0; }
#content.manufacturer-catalog-page .manufacturer-catalog-item-title {
	margin: 0 0 .3rem;
	font-size: 125%;
	font-weight: 500;
	line-height: 1.3;
	overflow-wrap: anywhere;
}
#content.manufacturer-catalog-page .manufacturer-catalog-item-title a { color: inherit; text-decoration: none; }
#content.manufacturer-catalog-page .manufacturer-catalog-item-title a:hover,
#content.manufacturer-catalog-page .manufacturer-catalog-item-title a:focus-visible {
	color: #000;
	text-decoration: underline;
	text-decoration-color: #ffe000;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
	text-decoration-skip-ink: auto;
}
#content.manufacturer-catalog-page .manufacturer-catalog-item-title a:focus-visible { outline: 2px solid #000; outline-offset: 3px; }
#content.manufacturer-catalog-page .manufacturer-catalog-period {
	margin: 0;
	font-size: 90%;
	line-height: 1.5;
}
#content.manufacturer-catalog-page .manufacturer-catalog-status { font-weight: 500; }
#content.manufacturer-catalog-page .manufacturer-catalog-annotation {
	max-width: 68ch;
	margin: .55rem 0 0;
	font-size: 100%;
	line-height: 1.55;
	text-align: justify;
	hyphens: auto;
	-webkit-hyphens: auto;
}
#content.manufacturer-catalog-page .manufacturer-catalog-products {
	margin: .45rem 0 0;
	font-size: 88%;
	line-height: 1.45;
}
#content.manufacturer-catalog-page .manufacturer-catalog-filter-error,
#content.manufacturer-catalog-page .manufacturer-catalog-empty,
#content.manufacturer-catalog-page .manufacturer-catalog-no-results { margin: 1rem 0; }

/* Manufacturer page: follow the lantern dossier and manufacturer catalogue grid. */
#content.manufacturer-company-page .manufacturer-company-layout {
	display: grid;
	grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
	grid-template-areas: "media history";
	column-gap: 32px;
	align-items: start;
	align-content: start;
}
#content.manufacturer-company-page .manufacturer-company-media-column {
	display: flex;
	grid-area: media;
	flex: 0 0 auto;
	flex-direction: column;
	gap: 28px;
	align-self: start;
	min-width: 0;
}
#content.manufacturer-company-page .manufacturer-company-layout.no-gallery {
	grid-template-columns: minmax(14rem, 1fr) minmax(0, 2.8fr);
	grid-template-areas: "overview history";
	column-gap: 5%;
}
#content.manufacturer-company-page .manufacturer-company-layout.no-gallery.no-history,
#content.manufacturer-company-page .manufacturer-company-layout.no-gallery.no-overview {
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas: "overview";
}
#content.manufacturer-company-page .manufacturer-company-layout.no-gallery {
	row-gap: 0;
}
#content.manufacturer-company-page .manufacturer-company-layout.has-gallery.no-overview.no-history { grid-template-columns: minmax(0, 1fr); }
#content.manufacturer-company-page .manufacturer-company-details { grid-area: details; display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
#content.manufacturer-company-page .manufacturer-company-overview { grid-area: overview; min-width: 0; }
#content.manufacturer-company-page .manufacturer-gallery-section { grid-area: gallery; min-width: 0; margin: 0; }
#content.manufacturer-company-page .manufacturer-history { grid-area: history; min-width: 0; max-width: 88ch; margin: 0; }
#content.manufacturer-company-page .manufacturer-company-layout.no-gallery .manufacturer-history { margin: 0; }
#content.manufacturer-page .manufacturer-back-link {
	display: inline-block;
	margin: 0 0 .65rem;
	color: #000;
	font-size: 14px;
	text-decoration: none;
}
#content.manufacturer-page .manufacturer-back-link:hover,
#content.manufacturer-page .manufacturer-back-link:focus-visible {
	color: #000;
	text-decoration: underline;
	text-decoration-color: #ffd800;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}
#content.manufacturer-page .manufacturer-back-link:focus-visible { outline: 2px solid #000; outline-offset: 3px; }
#content.manufacturer-page .manufacturer-back-link__arrow { display: inline-block; width: 16px; height: 16px; margin-right: .45em; vertical-align: -3px; }
#content.manufacturer-page .manufacturer-page-title {
	margin: 0 0 1.35rem;
	padding: 0 0 .55em;
	border-bottom: 1px solid #000;
	font-weight: 500;
	font-size: clamp(25px, 2.2vw, 32px);
	line-height: 1.2;
	overflow-wrap: anywhere;
}
#content.manufacturer-page .manufacturer-section { min-width: 0; margin: 1.25rem 0; }
#content.manufacturer-page .manufacturer-company-overview > h2,
#content.manufacturer-page .manufacturer-history > h2 {
	margin: 0 0 .8em;
	font-size: 22px;
	font-weight: 500;
	line-height: 1.3;
}
#content.manufacturer-page .manufacturer-intro { margin: 0 0 1rem; font-size: 15px; line-height: 1.6; }
#content.manufacturer-page .manufacturer-facts { margin: 0; padding: 0; }
#content.manufacturer-page .manufacturer-fact { margin: 0; padding: .7rem 0; border-top: 1px solid #d0d0d0; }
#content.manufacturer-page .manufacturer-fact dt { margin: 0 0 .25rem; color: #444; font-size: 85%; line-height: 1.4; }
#content.manufacturer-page .manufacturer-fact dd { margin: 0; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
#content.manufacturer-page .manufacturer-fact--founded dd { font-size: 145%; font-weight: 500; line-height: 1.2; font-variant-numeric: tabular-nums; }
#content.manufacturer-page .manufacturer-fact-list { margin: 0; padding: 0; list-style: none; }
#content.manufacturer-page .manufacturer-fact-list li + li { margin-top: .55rem; }
#content.manufacturer-page .manufacturer-date-note { margin: .75rem 0 0; font-size: 90%; line-height: 1.5; }
#content.manufacturer-page .manufacturer-date-note p { margin: 0 0 .5em; }
#content.manufacturer-page .manufacturer-history__content { text-align: justify; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
#content.manufacturer-page .manufacturer-history__content h2,
#content.manufacturer-page .manufacturer-history__content h3,
#content.manufacturer-page .manufacturer-history__content h4 { font-size: inherit; font-weight: inherit; line-height: inherit; }
#content.manufacturer-page .manufacturer-history__content p { margin: 0 0 .85em; }
#content.manufacturer-page .manufacturer-history__content ul,
#content.manufacturer-page .manufacturer-history__content ol { margin: 0 0 1em; padding-left: 1.4em; }
#content.manufacturer-page .manufacturer-history__content img,
#content.manufacturer-page .manufacturer-history__content table { max-width: 100%; }
#content.manufacturer-page .manufacturer-history__content img { height: auto; }
#content.manufacturer-page .manufacturer-date-note {
	max-width: 72ch;
	margin: .45rem 0 1rem;
	font-size: 90%;
	line-height: 1.5;
}
#content.manufacturer-page .manufacturer-date-note p { margin: 0 0 .5em; }
#content.manufacturer-page .manufacturer-editorial-note { margin: 1rem 0; }
#content.manufacturer-page .manufacturer-back { margin-top: 1.5rem; }
#content.manufacturer-company-page .manufacturer-gallery h2 { margin-bottom: .65rem; }
#content.manufacturer-company-page .manufacturer-gallery__stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: auto;
	aspect-ratio: 5 / 4;
	max-height: 650px;
	box-sizing: border-box;
	background: #f4f4f2;
}
#content.manufacturer-company-page .manufacturer-gallery__main {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	cursor: zoom-in;
	line-height: 0;
}
#content.manufacturer-company-page .manufacturer-gallery__main img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	margin: 0 auto;
	object-fit: contain;
}
#content.manufacturer-company-page .manufacturer-gallery__stage > .manufacturer-gallery__main { position: absolute; inset: 0; }
#content.manufacturer-company-page .manufacturer-gallery__zoom {
	position: absolute;
	z-index: 2;
	right: 8px;
	bottom: 8px;
	box-sizing: border-box;
	min-width: 44px;
	min-height: 44px;
	padding: 5px;
	border: 1px solid #000;
	margin: 0;
	background: rgba(255, 255, 255, .92);
	box-shadow: 1px 1px 0 #000;
	font-size: 21px;
	line-height: 1;
}
#content.manufacturer-company-page .manufacturer-gallery__zoom:hover { background: rgb(255, 253, 196); }
#content.manufacturer-company-page .manufacturer-gallery__caption {
	min-height: 2.6em;
	margin: .45rem 0 .3rem;
	font-size: 88%;
	line-height: 1.45;
	overflow-wrap: anywhere;
}
#content.manufacturer-company-page .manufacturer-gallery__caption-text,
#content.manufacturer-company-page .manufacturer-gallery__meta { display: block; }
#content.manufacturer-company-page .manufacturer-gallery__meta { margin-top: .15rem; }
#content.manufacturer-company-page .manufacturer-gallery__controls {
	display: grid;
	grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
	align-items: center;
	width: 100%;
	min-height: 44px;
	margin: 4px 0 0;
}
#content.manufacturer-company-page .manufacturer-gallery__controls [data-gallery-previous] { justify-self: start; }
#content.manufacturer-company-page .manufacturer-gallery__controls [data-gallery-next] { justify-self: end; }
#content.manufacturer-company-page .manufacturer-gallery__controls .manufacturer-gallery__position { grid-column: 2; grid-row: 1; }
#content.manufacturer-company-page .manufacturer-gallery__controls button,
#content.manufacturer-company-page .manufacturer-gallery__viewer button {
	box-sizing: border-box;
	min-width: 44px;
	min-height: 44px;
	padding: 0 8px;
	border: 0;
	background: transparent;
	box-shadow: none;
	font-size: 22px;
	line-height: 1;
}
#content.manufacturer-company-page .manufacturer-gallery__controls button:hover,
#content.manufacturer-company-page .manufacturer-gallery__viewer button:hover { background: rgba(0,0,0,.06); }
#content.manufacturer-company-page .manufacturer-gallery__controls [hidden],
#content.manufacturer-company-page .manufacturer-gallery__viewer [hidden] { display: none; }
#content.manufacturer-company-page .manufacturer-gallery__position {
	min-width: 4.5rem;
	font-size: 90%;
	text-align: center;
}
#content.manufacturer-company-page .manufacturer-gallery__thumbnails {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
	justify-items: center;
	gap: 8px;
	max-width: 100%;
	margin-top: 8px;
	padding: 0 0 11px;
	overflow-x: auto;
	overflow-y: hidden;
}
#content.manufacturer-company-page .manufacturer-gallery__thumbnail {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	max-width: 160px;
	min-width: 0;
	height: 68px;
	min-height: 58px;
	padding: 2px 2px 8px;
	border: 1px solid transparent;
	background: transparent !important;
	box-shadow: none !important;
}
#content.manufacturer-company-page .manufacturer-gallery__thumbnail[aria-selected="true"] { border-color: transparent !important; }
#content.manufacturer-company-page .manufacturer-gallery__thumbnail[aria-selected="true"]::after {
	position: absolute;
	bottom: -10px;
	left: 50%;
	width: 0;
	height: 0;
	border-right: 6px solid transparent;
	border-bottom: 10px solid #111;
	border-left: 6px solid transparent;
	content: "";
	transform: translateX(-50%);
}
#content.manufacturer-company-page .manufacturer-gallery__thumbnail img {
	display: block;
	width: auto;
	height: 100%;
	max-width: 100%;
	margin: 0;
	object-fit: contain;
}
#content.manufacturer-company-page .manufacturer-company-layout.has-gallery .manufacturer-company-overview { margin: 0; }
#content.manufacturer-company-page .manufacturer-gallery__viewer[hidden] { display: none; }
#content.manufacturer-company-page .manufacturer-gallery__viewer {
	position: fixed;
	z-index: 10000;
	inset: 0;
	box-sizing: border-box;
	width: 100vw;
	height: 100vh;
	padding: 16px;
	background: rgba(0,0,0,.92);
	color: #fff;
}
#content.manufacturer-company-page .manufacturer-gallery__dialog {
	position: relative;
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr) 48px;
	grid-template-rows: minmax(0,1fr) auto;
	align-items: center;
	gap: 8px;
	width: 100%;
	height: 100%;
	max-width: 1360px;
	margin: 0 auto;
}
#content.manufacturer-company-page .manufacturer-gallery__viewer-close {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 1;
	font-size: 32px !important;
}
#content.manufacturer-company-page .manufacturer-gallery__viewer-arrow { grid-row: 1; color: #fff; font-size: 36px !important; }
#content.manufacturer-company-page .manufacturer-gallery__viewer-figure {
	display: flex;
	grid-column: 2;
	grid-row: 1;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 0;
	max-height: 100%;
	margin: 40px 0 0;
}
#content.manufacturer-company-page .manufacturer-gallery__viewer-figure img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: calc(100vh - 150px);
	margin: 0;
	object-fit: contain;
}
#content.manufacturer-company-page .manufacturer-gallery__viewer-figure figcaption {
	max-width: 72ch;
	margin-top: 12px;
	text-align: center;
}
#content.manufacturer-company-page .manufacturer-gallery__viewer-figure figcaption span { display: block; }
#content.manufacturer-company-page .manufacturer-related-lanterns {
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid #000;
}
#content.manufacturer-company-page .manufacturer-related-lanterns ul { margin: 0; padding-left: 1.25rem; }

@media (max-width: 900px) {
	#content.manufacturer-catalog-page .manufacturer-catalog-layout {
		grid-template-columns: minmax(0,1fr);
		gap: 1.75rem;
	}
	#content.manufacturer-catalog-page .manufacturer-catalog-sidebar {
		padding-bottom: 1.25rem;
		border-bottom: 1px solid #000;
	}
}
@media (max-width: 900px) {
	#content.manufacturer-company-page .manufacturer-company-layout {
		grid-template-columns: minmax(0,1fr);
		column-gap: 0;
		row-gap: 1rem;
	}
	#content.manufacturer-company-page .manufacturer-company-layout.no-gallery { grid-template-columns: minmax(0,1fr); }
	#content.manufacturer-company-page .manufacturer-company-layout.has-gallery { grid-template-areas: "media" "history"; }
	#content.manufacturer-company-page .manufacturer-company-media-column { gap: 28px; }
	#content.manufacturer-company-page .manufacturer-company-details { gap: 1rem; }
	#content.manufacturer-company-page .manufacturer-company-layout.no-gallery { grid-template-areas: "overview" "history"; }
	#content.manufacturer-company-page .manufacturer-company-layout.no-gallery.no-overview { grid-template-areas: "history"; }
	#content.manufacturer-company-page .manufacturer-company-layout.no-gallery.no-history { grid-template-areas: "overview"; }
	#content.manufacturer-company-page .manufacturer-history { max-width: none; }
}
@media (max-width: 768px) {
	#content.manufacturer-catalog-page .manufacturer-period-value { transform: translateY(-8px); }
	#manufacturer-slider-range { height: 8px; margin: 20px 14px 24px; touch-action: none; }
	#manufacturer-slider-range .ui-slider-handle { top: -10px; width: 26px; height: 26px; margin-left: -13px; box-sizing: border-box; touch-action: none; }
	#content.manufacturer-page .manufacturer-page-title { margin-bottom: 1rem; }
}

@media (max-width: 480px) {
	#content.manufacturer-catalog-page .manufacturer-year-fields { gap: 8px; }
	#content.manufacturer-catalog-page .manufacturer-catalog-item { grid-template-columns: 4.8rem minmax(0,1fr); gap: 0 .75rem; }
#content.manufacturer-catalog-page .manufacturer-catalog-item.has-thumbnail { grid-template-columns: 4rem minmax(0,1fr) 60px; gap: 0 .5rem; }
#content.manufacturer-catalog-page .manufacturer-catalog-thumbnail img { max-height: 60px; }
#content.manufacturer-page .manufacturer-facts { margin-top: .75rem; }
	#content.manufacturer-company-page .manufacturer-gallery__dialog { grid-template-columns: 40px minmax(0,1fr) 40px; gap: 2px; }
	#content.manufacturer-company-page .manufacturer-gallery__viewer { padding: 8px; }
	#content.manufacturer-company-page .manufacturer-gallery__viewer-figure img { max-height: calc(100vh - 132px); }
}

/* One shared header/nav for all MODX pages. The original site typography and links remain. */
#header {
	display: grid;
	grid-template-columns: minmax(0, 25fr) minmax(0, 5fr) minmax(0, 70fr);
	align-items: flex-start;
}
#header:after { display: none; }
#header .site-header__bar { grid-column: 1; min-width: 0; }
#header .leftCol { float: none; width: auto; padding: 0; }
#header .rightCol { grid-column: 3; float: none; width: 100%; padding: 0; margin: 0; }
#header .site-navigation { min-width: 0; }
#header .site-navigation ul { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 0; }
#header .site-navigation ul li { float: none; margin: 0; white-space: nowrap; }
#header .site-menu-toggle { display: none; }
#header .site-menu-toggle__line { display: block; width: 24px; height: 2px; background: #000; transition: transform .12s ease, opacity .12s ease; }

/* This width is derived from the six current Wayfinder labels: ~900px of links,
   a 213px site name, 24px separation, and 80px outer margins need ~1217px. */
@media (max-width: 1220px) {
	#header {
		display: block;
		width: 100vw;
		max-width: 100vw;
		margin-left: -40px;
	}
	#header .site-header__bar {
		position: relative;
		z-index: 20001;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		box-sizing: border-box;
		width: 100%;
		min-height: 48px;
		padding: 0 40px;
		background: #fff;
	}
	#header .site-menu-toggle {
		flex: 0 0 48px;
		display: none;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 5px;
		box-sizing: border-box;
		width: 48px;
		min-width: 48px;
		height: 48px;
		margin: 0;
		padding: 10px;
		border: 0;
		background: transparent;
		box-shadow: none;
	}
	body.site-menu-enhanced #header .site-menu-toggle { display: flex; }
	#header .site-menu-toggle:hover,
	#header .site-menu-toggle:active { background: transparent; box-shadow: none; }
	#header .site-menu-toggle:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
	#header .rightCol { display: block; margin: 0; }
	#header .site-navigation ul { display: block; margin: 0; padding: 0; }
	#header .site-navigation ul li { display: block; margin: 0; white-space: normal; }
	#header .site-navigation ul li a { display: block; min-height: 48px; box-sizing: border-box; padding: 13px 0; }
	body.site-menu-enhanced #header .site-navigation { display: none; }
	body.site-menu-enhanced.site-menu-open #header .site-navigation {
		position: fixed;
		z-index: 20000;
		inset: 0;
		display: block;
		box-sizing: border-box;
		width: 100vw;
		height: 100vh;
		max-height: 100vh;
		margin: 0;
		padding: 104px 40px 32px;
		overflow-x: hidden;
		overflow-y: auto;
		overscroll-behavior: contain;
		background: #fff;
	}
	body.site-menu-open #header .site-header__bar {
		position: fixed;
		z-index: 20001;
		top: 24px;
		left: 0;
		right: 0;
		padding-top: 0;
		padding-bottom: 0;
		border-bottom: 1px solid #d0d0d0;
	}
	body.site-menu-open #header .site-menu-toggle__line:first-child { transform: translateY(7px) rotate(45deg); }
	body.site-menu-open #header .site-menu-toggle__line:nth-child(2) { opacity: 0; }
	body.site-menu-open #header .site-menu-toggle__line:last-child { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 768px) {
	#header { margin-left: -40px; }
	#header .site-header__bar { padding-left: 16px; padding-right: 16px; }
	body.detective-body #header,
	body.manufacturer-body #header { margin-left: -16px; }
	body.site-menu-enhanced.site-menu-open #header .site-navigation { padding: 96px 16px 24px; }
	body.site-menu-open #header .site-header__bar { padding-left: 16px; padding-right: 16px; }
	#footer {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas: "icons banner" "description description";
		align-items: start;
		gap: 12px 20px;
		box-sizing: border-box;
		width: calc(100vw - 32px);
		margin-left: -24px;
	}
	#footer:after { display: none; }
	#footer-icons { grid-area: icons; float: none; width: auto; padding: 0; }
	#footer-description { grid-area: description; float: none; width: auto; padding: 0; }
	#potanin-banner { grid-area: banner; float: none; width: auto; padding: 0; text-align: right; }
	body.detective-body #footer,
	body.manufacturer-body #footer { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
	#header .site-menu-toggle__line { transition: none; }
}

/* M6.8b: narrow layouts retain the existing typography and editorial structure. */
@media (max-width: 1220px) {
	/* Include outer layout padding without overflowing past the viewport scrollbar. */
	#header {
		width: calc(100% + 80px);
		max-width: none;
		box-sizing: border-box;
	}
}

/* Legacy lantern layout rules removed in M6.10c; the dossier now has one scoped grid below. */
#content.lantern .lantern-historical-photo img { max-width: 100%; height: auto; }

@media (max-width: 920px) {
	#layout {
		min-width: 0;
		padding: 24px 16px 48px;
		box-sizing: border-box;
	}
	#header { width: calc(100% + 32px); margin-left: -16px; }

	#content.main-page > .leftCol,
	#content.main-page > .rightCol,
	#content.search-page > .leftCol,
	#content.search-page > .rightCol {
		float: none;
		width: 100%;
		max-width: none;
		margin: 0;
		padding: 0;
		box-sizing: border-box;
	}
	#content.main-page > .rightCol,
	#content.search-page > .rightCol { margin-top: 24px; }
	#content.main-page .leftCol { min-width: 0; }
	#content.main-page .leftCol > * { max-width: 100%; }
	#content.main-page #map { height: 65vh; min-height: 360px; max-height: 520px; }

	#filters { min-width: 0; }
	#filters .filter-toggle {
		display: flex;
		align-items: center;
		width: 100%;
		min-height: 44px;
		box-sizing: border-box;
		padding: 8px 0;
	}
	#filters .filter-hidable { overflow: hidden; }
	#filters li { min-width: 0; }
	#filters .filter li {
		margin-top: 0;
		margin-bottom: 0;
	}
	#filters li label {
		display: flex;
		align-items: flex-start;
		gap: 8px;
		min-height: 44px;
		box-sizing: border-box;
		padding: 10px 0;
		line-height: 1.45;
		overflow-wrap: anywhere;
	}
	#filters input[type="checkbox"] {
		flex: 0 0 18px;
		width: 18px;
		height: 18px;
		margin: 2px 0 0;
	}
	#slider-range {
		height: 8px;
		margin: 20px 14px 24px;
		touch-action: pan-y;
	}
	#slider-range .ui-slider-handle {
		top: -10px;
		width: 26px;
		height: 26px;
		margin-left: -13px;
		box-sizing: border-box;
		touch-action: pan-y;
	}
	#slider-range .ui-slider-handle:focus-visible { outline: 2px solid #000; outline-offset: 2px; }

	#content.search-page .sisea-search-form fieldset,
	#content.main-page .sisea-search-form fieldset {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 8px;
		min-width: 0;
	}
	#content.search-page .sisea-search-form input[type="text"],
	#content.main-page .sisea-search-form input[type="text"] {
		width: 100%;
		min-width: 0;
		min-height: 44px;
		box-sizing: border-box;
	}
	#content.search-page .sisea-search-form .search-history-control,
	#content.main-page .sisea-search-form .search-history-control {
		grid-column: 1;
		width: 100%;
		min-width: 0;
	}
	#content.search-page .sisea-search-form input[type="submit"],
	#content.main-page .sisea-search-form input[type="submit"] {
		grid-column: 2;
		min-width: 64px;
		min-height: 44px;
	}
	#content.search-page .sisea-search-form label { grid-column: 1 / -1; }
	#content.search-page .sisea-results-list,
	#content.search-page .sisea-result,
	#content.search-page .sisea-result a,
	#content.list a { min-width: 0; overflow-wrap: anywhere; }
	#content.search-page .sisea-results-list { padding-left: 1.25em; }
	#content.list ul ul { padding-left: 16px; }

	#content.lantern .lantern-gallery__thumbnails { touch-action: pan-x; }
	#content.lantern .lantern-gallery__controls button { min-width: 44px; min-height: 44px; }
	#content.lantern .lantern-viewer { padding: 8px; z-index: 20002; }
	#content.lantern .lantern-viewer__dialog { grid-template-columns: 40px minmax(0, 1fr) 40px; column-gap: 2px; }
	#content.lantern .lantern-viewer__figure { margin-top: 38px; }
	#content.lantern .lantern-viewer__figure img { max-width: 100%; max-height: calc(100vh - 128px); }
	.infoBox {
		box-sizing: border-box;
		min-width: 150px;
		max-width: calc(100vw - 32px);
		overflow-wrap: anywhere;
	}
	.infoBox img { max-width: 100%; height: auto; }
}

@media (max-width: 768px) {
	#content.main-page #map { height: 65vh; min-height: 360px; max-height: 520px; }
	#footer { width: 100%; margin-left: 0; }
}

@media (max-width: 360px) {
	#content.main-page #map { height: 62vh; min-height: 320px; }
	#content.lantern .lantern-gallery__controls { gap: 2px; }
	#content.lantern .lantern-gallery__position { min-width: 42px; }
}

/* RC1: compact archival cards within the existing category hierarchy. */
#content.main-page > .rightCol.list { min-width: 0; }
#content.main-page > .rightCol.list ul.catalog-sections {
	margin: 0;
	padding: 0;
	font-size: 100%;
}
#content.main-page > .rightCol.list .catalog-section {
	margin: 0 0 2.25rem;
	padding: 0;
}
#content.main-page > .rightCol.list .catalog-section > a {
	display: inline-block;
	margin-bottom: .35rem;
	font-size: 1.25rem;
	line-height: 1.3;
}
#content.main-page > .rightCol.list .catalog-section > h2 {
	margin: 0 0 .35rem;
	font-size: 1.45rem;
	font-weight: 500;
	line-height: 1.3;
}
#content.main-page > .rightCol.list .catalog-section > h2 a { color: #000; font-weight: inherit; text-decoration: none; }
#content.main-page > .rightCol.list .catalog-section > ul:not(.catalog-card-grid) {
	margin: .75rem 0 0;
	padding: 0;
	font-size: 100%;
}
#content.main-page > .rightCol.list .catalog-section > ul:not(.catalog-card-grid) > li {
	margin: 1.15rem 0 1.5rem;
	padding: 0;
}
#content.main-page > .rightCol.list .catalog-section > ul:not(.catalog-card-grid) > li > strong {
	display: block;
	margin-bottom: .55rem;
	font-size: 1rem;
	line-height: 1.4;
}
#content.main-page > .rightCol.list .catalog-section > ul:not(.catalog-card-grid) > li > h3 {
	margin: 0 0 .55rem;
	font-size: 1.08rem;
	font-weight: 500;
	line-height: 1.4;
}
#content.main-page > .rightCol.list ul.catalog-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: stretch;
	gap: 1.25rem 1rem;
	margin: .75rem 0 1.25rem;
	padding: 0;
	font-size: 100%;
}
#content.main-page > .rightCol.list .catalog-card-item {
	min-width: 0;
	margin: 0;
	padding: 0 0 .9rem;
	border-bottom: 1px solid #b8b8b8;
}
#content.main-page > .rightCol.list .catalog-card { height: 100%; }
#content.main-page > .rightCol.list .catalog-card__link {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .45rem;
	min-width: 0;
	color: #000;
	text-decoration: none;
}
#content.main-page > .rightCol.list .catalog-card__image {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f4f4f1;
}
#content.main-page > .rightCol.list .catalog-card__image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="38"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="39"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="40"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="42"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="44"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="46"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="113"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="114"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="47"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="48"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="105"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="111"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="49"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="51"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="54"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="56"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="55"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="115"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="119"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="52"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="53"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="58"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="59"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="60"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="104"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="67"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="69"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="70"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="71"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="72"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="73"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="74"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="75"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="76"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="77"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="81"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="78"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="79"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="80"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="82"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="83"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="84"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="85"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="86"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="87"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="88"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="89"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="90"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="92"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="93"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="94"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="95"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="97"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="98"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="99"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="101"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="102"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="103"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="117"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="118"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="120"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="112"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="106"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="116"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="61"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="64"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="68"] .catalog-card__image img,
#content.main-page > .rightCol.list .catalog-card-item[data-resource-id="91"] .catalog-card__image img {
	object-fit: contain;
}
#content.main-page > .rightCol.list .catalog-card__title {
	width: 100%;
	max-width: 100%;
	font-size: .98rem;
	font-weight: 600;
	line-height: 1.4;
	min-height: 4.2em;
	text-decoration: none;
	overflow-wrap: anywhere;
}
#content.main-page > .rightCol.list .catalog-card__title-text {
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
	text-decoration-line: none;
}
#content.main-page > .rightCol.list .catalog-card__summary {
	width: 100%;
	font-size: .9rem;
	font-weight: 300;
	line-height: 1.5;
	text-align: left;
	hyphens: auto;
	overflow-wrap: anywhere;
	display: block;
	height: 6em;
	max-height: 6em;
	overflow: hidden;
}
#content.main-page > .rightCol.list .catalog-card__link:hover .catalog-card__title,
#content.main-page > .rightCol.list .catalog-card__link:focus-visible .catalog-card__title {
	background: transparent;
}
#content.main-page > .rightCol.list .catalog-card__link:hover .catalog-card__title-text,
#content.main-page > .rightCol.list .catalog-card__link:focus-visible .catalog-card__title-text {
	background: transparent;
	text-decoration-line: underline;
	text-decoration-color: #ffe000;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}
#content.main-page > .rightCol.list .catalog-card__link:hover { color: #000; }
#content.main-page > .rightCol.list .catalog-card__link:focus-visible {
	outline: 2px solid #000;
	outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
	#content.main-page > .rightCol.list .catalog-card__title-text { transition: none; }
}

/* Keep native checkbox semantics while replacing the browser's blue accent. */
#filters input[type="checkbox"],
.manufacturer-catalog-filter input[type="checkbox"],
#catalog-filters input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	box-sizing: border-box;
	margin: 2px 0 0;
	border: 1px solid #000;
	border-radius: 0;
	background-color: #fff;
	vertical-align: top;
	cursor: pointer;
}
#filters input[type="checkbox"]:checked,
.manufacturer-catalog-filter input[type="checkbox"]:checked,
#catalog-filters input[type="checkbox"]:checked {
	background-color: #ffe000;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5.2 4.4 8.6 11 1.4' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-position: center;
	background-size: 12px 10px;
	background-repeat: no-repeat;
}
#filters input[type="checkbox"]:not(:disabled):hover,
.manufacturer-catalog-filter input[type="checkbox"]:not(:disabled):hover,
#catalog-filters input[type="checkbox"]:not(:disabled):hover {
	outline: 1px solid #000;
	outline-offset: 1px;
}
#filters input[type="checkbox"]:checked:not(:disabled):hover,
.manufacturer-catalog-filter input[type="checkbox"]:checked:not(:disabled):hover,
#catalog-filters input[type="checkbox"]:checked:not(:disabled):hover { background-color: #ffe000; }
#filters input[type="checkbox"]:focus-visible,
.manufacturer-catalog-filter input[type="checkbox"]:focus-visible,
#catalog-filters input[type="checkbox"]:focus-visible {
	border-width: 2px;
	outline: none;
	box-shadow: none;
}
#filters input[type="checkbox"]:disabled,
.manufacturer-catalog-filter input[type="checkbox"]:disabled,
#catalog-filters input[type="checkbox"]:disabled {
	background-color: #eee;
	cursor: not-allowed;
	opacity: .6;
}
#filters input[type="checkbox"]:disabled:checked,
.manufacturer-catalog-filter input[type="checkbox"]:disabled:checked,
#catalog-filters input[type="checkbox"]:disabled:checked { background-color: #d6bd00; }

.search-history-row { display: flex; align-items: stretch; }
.search-history-row .search-history-option { flex: 1; min-width: 0; overflow-wrap: anywhere; }
#content .sisea-search-form .search-history-remove {
	flex: 0 0 2rem;
	margin: 0;
	padding: .25rem;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: rgba(0, 0, 0, .5);
	font: inherit;
	font-size: 1.25em;
	cursor: pointer;
}
.sisea-search-form .search-history-remove:hover { color: #000; }
.sisea-search-form .search-history-remove:focus-visible { outline: 1px solid #000; outline-offset: -2px; }
.search-history-control { position: relative; display: inline-block; max-width: 100%; vertical-align: middle; }
.search-history-control input { max-width: 100%; }
.search-history-suggestions {
	position: absolute;
	top: calc(100% + 2px);
	left: 0;
	z-index: 20;
	width: 100%;
	max-height: 12rem;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	border: 1px solid #000;
	background: #fff;
}
.search-history-suggestions[hidden] { display: none; }
.search-history-option {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: .4rem .5rem;
	border: 0;
	background: #fff;
	color: #000;
	font: inherit;
	text-align: left;
	cursor: pointer;
}
.search-history-option:hover,
.search-history-option:focus-visible,
.search-history-option[aria-selected="true"] { background: #ffe000; }

@media (max-width: 1100px) {
	#content.main-page > .rightCol.list ul.catalog-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
	#content.main-page > .rightCol.list ul.catalog-card-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
	#content.main-page > .rightCol.list .catalog-card-item { padding-bottom: .75rem; }
}

/* RC2.2c: catalog controls reuse the established map-filter vocabulary and controls. */
#catalog-filters {
	margin-top: 1.4rem;
	min-width: 0;
}
#catalog-filters .catalog-filters__title {
	margin: 0 0 .8rem;
	font-size: 1.05rem;
	font-weight: 500;
}
#catalog-filters .catalog-filter-group { margin: 0 0 .7rem; }
#catalog-filters .catalog-filter-group h3 { margin: 0; font-size: 1rem; font-weight: 400; }
#catalog-filters .filter-toggle { min-height: 38px; width: 100%; }
#catalog-filters .filter-hidable { display: none; overflow: visible; }
#catalog-filters .filter-hidable > ul { margin: 0 0 1rem; padding: 0; }
#catalog-filters .filter-hidable ul ul { margin: .25rem 0 .4rem 1.2rem; }
#catalog-filters .filter-hidable li { list-style: none; margin: .25rem 0; padding: 0; font-size: .9rem; }
#catalog-filters .filter-hidable li label { display: flex; align-items: flex-start; gap: .45rem; line-height: 1.4; }
#catalog-filters .catalog-filter-count,
.catalog-filter-empty { margin: .7rem 0; font-size: .9rem; }
#catalog-filters .catalog-filter-reset { max-width: 100%; margin: .2rem 0 1rem; }
#catalog-filters [hidden],
.catalog-card-item[hidden],
.catalog-section[hidden],
.catalog-section li[hidden] { display: none !important; }

/* Public text links share the accepted black-and-yellow interaction without styling map tiles or controls. */
#header .site-navigation a:hover,
#header .site-navigation a:focus-visible,
#header h1 a:hover,
#header h1 a:focus-visible,
#content.main-page > .leftCol a:hover,
#content.main-page > .leftCol a:focus-visible,
#content.main-page > .rightCol.list .catalog-section > h2 a:hover,
#content.main-page > .rightCol.list .catalog-section > h2 a:focus-visible,
#content.search-page .sisea-result a:hover,
#content.search-page .sisea-result a:focus-visible,
#content.manufacturer-company-page .manufacturer-company-page__content a:hover,
#content.manufacturer-company-page .manufacturer-company-page__content a:focus-visible,
#content.detective-page a:hover,
#content.detective-page a:focus-visible,
#content.text-page a:hover,
#content.text-page a:focus-visible {
	color: #000;
	text-decoration-color: #ffe000;
	text-decoration-line: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}
#filters .filter-toggle:hover,
#filters .filter-toggle:focus-visible,
#catalog-filters .filter-toggle:hover,
#catalog-filters .filter-toggle:focus-visible {
	color: #000;
	text-decoration-color: #ffe000;
	text-decoration-line: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}
#header .site-navigation .active > a,
#header .site-navigation a[aria-current="page"] {
	color: #000;
	text-decoration-line: underline;
	text-decoration-color: #ffe000;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}
#header .site-navigation a { text-decoration: none; }
.sisea-search-form input[type="text"] {
	border: 1px solid #000;
	box-sizing: border-box;
}
.sisea-search-form input[type="text"]:focus { outline: none; }
.sisea-search-form input[type="text"]:focus-visible {
	border-color: #000;
	outline: 1px solid #ffe000;
	outline-offset: 1px;
	box-shadow: none;
}

@media (max-width: 920px) {
	#catalog-filters { margin-bottom: 1.5rem; }
	#catalog-filters .filter-toggle { min-height: 44px; padding: 8px 0; }
	#catalog-filters .filter-hidable { overflow: visible; }
	#filters .filter ul ul { margin-top: 0; margin-bottom: 0; }
	#catalog-filters .filter-hidable li { margin-top: 0; margin-bottom: 0; }
	#catalog-filters .filter-hidable ul ul { margin-top: 0; margin-bottom: 0; }
	#catalog-filters .filter-hidable li label { box-sizing: border-box; min-height: 44px; padding: 10px 0; }
	#catalog-filters input[type="checkbox"] { flex-basis: 18px; width: 18px; height: 18px; margin-top: 2px; }
}

/* M6.10c: one bounded dossier grid keeps gallery/map and passport/story columns in sync. */
#content.lantern {
	box-sizing: border-box;
	width: 100%;
	max-width: 1440px;
	min-width: 0;
	margin-left: auto;
	margin-right: auto;
}
#content.lantern:after { display: none; }
#content.lantern > .lantern-page-title { min-width: 0; margin-bottom: 24px; }
#content.lantern .lantern-page-title h1 { margin: 0 0 .35em; line-height: 1.2; overflow-wrap: anywhere; }
#content.lantern .lantern-columns {
	display: grid;
	grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
	grid-template-areas: "media details";
	align-items: start;
	column-gap: 32px;
	row-gap: 20px;
	min-width: 0;
}
#content.lantern .lantern-column { min-width: 0; }
#content.lantern .lantern-column--media { grid-area: media; }
#content.lantern .lantern-column--details { grid-area: details; }
#content.lantern .lantern-column--media,
#content.lantern .lantern-column--details { display: flex; flex-direction: column; gap: 24px; }
#content.lantern .lantern-media,
#content.lantern .lantern-facts,
#content.lantern .lantern-map-panel,
#content.lantern .lantern-story { box-sizing: border-box; width: 100%; max-width: none; min-width: 0; }
#content.lantern .lantern-gallery__stage {
	position: relative;
	width: 100%;
	height: auto;
	aspect-ratio: 5 / 4;
	max-height: 650px;
}
#content.lantern .lantern-gallery__slide,
#content.lantern .lantern-gallery__main { height: 100%; }
#content.lantern .lantern-gallery__main { box-sizing: border-box; }
#content.lantern .lantern-gallery__image {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	margin: 0 auto;
	object-fit: contain;
}
#content.lantern .lantern-gallery__zoom {
	position: absolute;
	z-index: 2;
	right: 8px;
	bottom: 8px;
	margin: 0;
	background: rgba(255, 255, 255, .92);
}
#content.lantern .lantern-gallery__zoom:focus-visible {
	outline: 2px solid #222;
	outline-offset: 2px;
}
#content.lantern .lantern-gallery__controls[hidden] { display: none; }
#content.lantern .lantern-gallery__controls {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	width: 100%;
	min-height: 44px;
	margin-top: 4px;
}
#content.lantern .lantern-gallery__controls [data-gallery-previous] { justify-self: start; }
#content.lantern .lantern-gallery__controls [data-gallery-next] { justify-self: end; }
#content.lantern .lantern-gallery__position { justify-self: center; }
#content.lantern .lantern-gallery__thumbnails {
	display: grid;
	grid-template-columns: repeat(var(--gallery-thumb-count, 1), minmax(0, 1fr));
	grid-auto-flow: row;
	gap: 8px;
	justify-items: center;
	padding: 0;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin-top: 8px;
	padding-bottom: 11px;
	overflow-x: auto;
}
#content.lantern .lantern-gallery__thumbnails[data-gallery-overflow="true"] {
	grid-template-columns: none;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 24px) / 4);
}
#content.lantern .lantern-gallery__thumbnail {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 160px;
	min-width: 0;
	height: 68px;
	min-height: 58px;
	padding: 2px 2px 8px;
	border: 1px solid transparent;
	box-shadow: none;
}
#content.lantern .lantern-gallery__thumbnail img {
	object-fit: contain;
}
#content.lantern .lantern-gallery__thumbnail[aria-current="true"] {
	border-color: transparent;
	box-shadow: none;
}
#content.lantern .lantern-gallery__thumbnail[aria-current="true"]::after {
	position: absolute;
	bottom: -10.4px;
	left: 50%;
	width: 0;
	height: 0;
	border-right: 6px solid transparent;
	border-bottom: 10.4px solid #111;
	border-left: 6px solid transparent;
	content: "";
	transform: translateX(-50%);
}

#content.lantern .lantern-facts {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	text-align: left;
	overflow-wrap: anywhere;
}
#content.lantern #lantern-params > p { margin: 0 0 .55rem; line-height: 1.5; }
#content.lantern #lantern-params span { font-weight: 500; }
#content.lantern #lantern-params [hidden] { display: none; }
#content.lantern .lantern-map-panel { float: none; }
#content.lantern #lantern-map {
	display: block;
	float: none;
	width: 100%;
	max-width: none;
	height: 250px;
	min-height: 0;
}
#content.lantern .lantern-map-panel[hidden],
#content.lantern .lantern-story[hidden] { display: none; }
#content.lantern #lantern-map.lantern-map-unavailable {
	box-sizing: border-box;
	height: auto;
	padding: .75rem 0;
	font-size: 14px;
	line-height: 1.5;
}
#content.lantern #lantern-map.lantern-map-unavailable p { margin: 0 0 .35rem; }

#content.lantern .lantern-story { margin: 0; }
#content.lantern .lantern-story__heading {
	margin: 0 0 .8em;
	font-size: 22px;
	font-weight: 500;
	line-height: 1.3;
	text-align: left;
}
#content.lantern .lantern-story__content {
	font-size: 16px;
	line-height: 1.6;
	text-align: justify;
	hyphens: auto;
	-webkit-hyphens: auto;
	overflow-wrap: anywhere;
}
#content.lantern .lantern-story__content p { margin: 0 0 1em; }
#content.lantern .lantern-story__content img,
#content.lantern .lantern-story__content table { max-width: 100%; }
#content.lantern .lantern-story__content img { height: auto; }
#content.lantern .lantern-story__content h1,
#content.lantern .lantern-story__content h2,
#content.lantern .lantern-story__content h3,
#content.lantern .lantern-story__content h4,
#content.lantern .lantern-story__content h5,
#content.lantern .lantern-story__content h6 { text-align: left; hyphens: none; }

/* Link states preserve the accepted lantern-page treatment. */
#content.lantern a { color: #000; text-decoration: none; }
#content.lantern a:hover { color: #000; text-decoration: underline; text-decoration-color: #ffd800; }
#content.lantern a:focus-visible {
	color: #000;
	outline: 2px solid #222;
	outline-offset: 3px;
	text-decoration: underline;
	text-decoration-color: #ffd800;
}

@media (max-width: 1040px) {
	#content.lantern > .lantern-page-title { margin-bottom: 20px; }
	#content.lantern .lantern-columns {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "media" "passport" "story" "location";
		row-gap: 20px;
	}
	#content.lantern .lantern-column { display: contents; }
	#content.lantern .lantern-media { grid-area: media; }
	#content.lantern .lantern-facts { grid-area: passport; }
	#content.lantern .lantern-story { grid-area: story; }
	#content.lantern .lantern-map-panel { grid-area: location; }
	#content.lantern .lantern-gallery__stage { height: auto; max-height: 650px; }
	#content.lantern .lantern-gallery__slide,
	#content.lantern .lantern-gallery__main { height: 100%; }
	#content.lantern .lantern-gallery__image { width: auto; height: auto; max-width: 100%; max-height: 100%; }
	#content.lantern .lantern-story__content { text-align: left; }
	#content.lantern #lantern-map { height: 250px; }
}

@media (max-width: 480px) {
	#content.lantern .lantern-gallery__thumbnail { height: 58px; }
	#content.lantern #lantern-map { height: 240px; }
}

/* M6.13a: the search history is one row; suppress legacy form-button chrome. */
#content .sisea-search-form .search-history-row { display: flex; align-items: stretch; min-height: 36px; }
#content .sisea-search-form .search-history-row > button {
 border: 0; border-radius: 0; box-shadow: none; outline: none;
 margin: 0; background: transparent; appearance: none; height: auto;
}
#content .sisea-search-form .search-history-remove {
 flex: 0 0 36px; display: flex; align-items: center; justify-content: center;
 padding: 0; color: rgba(0,0,0,.5);
}
#content .sisea-search-form .search-history-remove:hover,
#content .sisea-search-form .search-history-remove:focus-visible { color: #000; }
#content .sisea-search-form .search-history-row:hover,
#content .sisea-search-form .search-history-row:focus-within { background: rgb(255, 253, 196); }
#content .sisea-search-form .search-history-row > button:focus-visible { outline: 1px solid #000; outline-offset: -2px; }
#content.search-page .sisea-search-form { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; }
#content.search-page .sisea-search-form fieldset { display: flex; align-items: stretch; gap: 8px; flex: 1; min-width: 0; margin: 0; }
#content.search-page .sisea-search-form label { width: 100%; }
#content.search-page .search-history-control { flex: 1 1 140px; min-width: 0; }
#content.search-page .search-history-control input { width: 100%; min-height: 36px; margin: 0; box-sizing: border-box; }
#content.search-page .sisea-search-form input[type="submit"] { margin: 0; min-height: 36px; align-self: stretch; }
#content.search-page .sisea-results { margin: 0 0 1rem; }
#content.search-page .sisea-results-list { margin: 1rem 0; padding: 0; }
#content.search-page .sisea-result { margin: 0 0 1.125rem; }
#content.search-page .sisea-result h4 { margin: 0 0 .35rem; font-size: 1.125em; line-height: 1.45; }
#content.search-page .sisea-result .extract { margin: 0; }
#content.search-page + #footer { margin-top: 48px; }
#content.search-page .sisea-result h4 a { color: #000; text-decoration: none; }
#content.search-page .sisea-result h4 a:hover { text-decoration: underline; text-decoration-color: #ffe000; text-decoration-thickness: 1px; text-underline-offset: 3px; }
#content.search-page .sisea-result h4 a:focus-visible { outline: 1px solid #000; outline-offset: 2px; }
#content.search-page .sisea-result .extract p { margin: 0; }
#content .sisea-search-form .search-history-option:hover,
#content .sisea-search-form .search-history-option:focus-visible,
#content .sisea-search-form .search-history-option[aria-selected="true"] { background: rgb(255, 253, 196); }

/* RELEASE-01D: Detective catalogue only. */
#content.detective-catalog-page .detective-catalog-intro { position:relative; display:flex; flex-direction:row-reverse; justify-content:flex-end; align-items:center; gap:24px; min-height:180px; overflow:visible; padding-right:28%; }
#content.detective-catalog-page .detective-catalog-intro:before, #content.detective-catalog-page .detective-catalog-intro:after { content:""; position:absolute; right:-40px; bottom:0; width:40vw; height:100%; pointer-events:none; }
#content.detective-catalog-page .detective-catalog-intro:before { background:#222; clip-path:polygon(10% 100%,58% 0,100% 0,100% 14%); }
#content.detective-catalog-page .detective-catalog-intro:after { background:#fff282; clip-path:polygon(0 100%,100% 12%,100% 100%); }
#content.detective-catalog-page .detective-catalog-intro__logo { width:130px; flex:0 0 130px; }
#content.detective-catalog-page .detective-catalog-intro__copy { padding-left:0; position:relative; z-index:1; }
#content.detective-catalog-page .detective-all h2 { border:0; padding:0; margin:28px 0 16px; }
#content.detective-catalog-page .detective-list-row { display:grid; grid-template-columns:minmax(0,27%) minmax(0,1fr); gap:32px; align-items:stretch; padding:20px; border-bottom:1px solid #ddd; }
#content.detective-catalog-page .detective-list-row:focus-within { background:#fffbea; }
@media (hover:hover) { #content.detective-catalog-page .detective-list-row:hover { background:#fffbea; } }
#content.detective-catalog-page .detective-list-row.no-image { grid-template-columns:1fr; }
#content.detective-catalog-page .detective-list-row__image { display:block; position:relative; align-self:start; }
#content.detective-catalog-page .detective-list-row__image img { display:block; width:100%; height:220px; object-fit:cover; position:relative; z-index:1; clip-path:polygon(12% 0,100% 0,88% 100%,0 100%); }
#content.detective-catalog-page .detective-list-row__number { margin:0 0 .6em; font-weight:500; }
#content.detective-catalog-page .detective-list-row h3 { margin:0 0 .6em; }
#content.detective-catalog-page .detective-list-row h3 a { color:inherit; text-decoration:none; }
#content.detective-catalog-page .detective-list-row h3 a:hover, #content.detective-catalog-page .detective-list-row h3 a:focus { text-decoration-line:underline; text-decoration-color:#ffe000; text-decoration-thickness:2px; text-underline-offset:3px; text-decoration-skip-ink:auto; }
#content.detective-catalog-page .detective-list-row__summary { max-width:75ch; text-align:justify; text-align-last:left; hyphens:auto; line-height:1.5; margin:0 0 1em; }
#content.detective-catalog-page .detective-list-row__button { display:inline-block; align-self:flex-start; margin-top:auto; padding:5px; border:1px solid #000; box-shadow:1px 1px 0 #000; color:#000; background:#fff; font:inherit; font-weight:300; line-height:inherit; text-decoration:none; }
#content.detective-catalog-page .detective-list-row__button:hover, #content.detective-catalog-page .detective-list-row__button:focus { background:rgb(255,253,196); text-decoration:none; }
@media (max-width:700px) {
 #content.detective-catalog-page .detective-catalog-intro { padding-right:0; min-height:0; gap:12px; }
 #content.detective-catalog-page .detective-catalog-intro:before, #content.detective-catalog-page .detective-catalog-intro:after { display:none; }
 #content.detective-catalog-page .detective-catalog-intro__logo { width:75px; flex-basis:75px; }
 #content.detective-catalog-page .detective-catalog-intro__copy { padding-left:0; }
 #content.detective-catalog-page .detective-list-row { grid-template-columns:1fr; gap:14px; padding:16px 8px; }
 #content.detective-catalog-page .detective-list-row__image { max-width:340px; }
 #content.detective-catalog-page .detective-list-row__summary { text-align:left; }
}

#content.detective-catalog-page .detective-list-row__copy { display:flex; flex-direction:column; min-width:0; }
#content.detective-catalog-page .detective-list-row__image:before { content:""; position:absolute; inset:0; background:#fff282; clip-path:polygon(0 100%,12% 0,26% 0,14% 100%); transform:translateX(-12px); opacity:0; pointer-events:none; }
@media (hover:hover) { #content.detective-catalog-page .detective-list-row:hover .detective-list-row__image:before { opacity:1; } }
#content.detective-catalog-page .detective-list-row__button:focus-visible { outline:2px solid #000; outline-offset:2px; text-decoration:none; }
@media (max-width:700px) { #content.detective-catalog-page .detective-list-row__button { margin-top:.5em; } }

/* RELEASE-01D-R2: scale only the decorative planes. */
@media (max-width:1200px) and (min-width:701px) {
 #content.detective-catalog-page .detective-catalog-intro:before, #content.detective-catalog-page .detective-catalog-intro:after { width:28vw; }
}
@media (max-width:920px) {
 #content.detective-catalog-page .detective-catalog-intro { padding-right:0; min-height:0; }
 #content.detective-catalog-page .detective-catalog-intro:before, #content.detective-catalog-page .detective-catalog-intro:after { display:none; }
}

/* RELEASE-01E work in progress: case header, source only. */
#content.detective-case-page .detective-case__header { position:relative; padding-right:200px; min-height:160px; }
#content.detective-case-page .detective-case__number-row { position:static; }
#content.detective-case-page .detective-case__mark { position:absolute; right:0; top:0; width:160px; max-height:160px; height:auto; }
#content.detective-case-page .detective-case__intro { display:none; }
@media (max-width:700px) {
 #content.detective-case-page .detective-case__header { padding-right:100px; min-height:90px; }
 #content.detective-case-page .detective-case__mark { width:80px; max-height:90px; }
}

/* RELEASE-01E.1: case article presentation, source only. */
#content.detective-case-page .detective-case-layout, #content.detective-case-page .detective-case-layout.no-images { display:block; max-width:none; }
#content.detective-case-page .detective-case__story { max-width:none; }
#content.detective-case-page .detective-case__text { line-height:1.6; }
#content.detective-case-page .detective-case__text p { text-align:justify; text-align-last:left; hyphens:auto; }
#content.detective-case-page .detective-case__text figure { display:table; max-width:100%; margin:1em auto; }
#content.detective-case-page .detective-case__text figure img { display:block; width:auto; height:auto; max-width:100%; max-height:380px; margin:auto; object-fit:contain; border-radius:0; }
#content.detective-case-page .detective-case__text figcaption:not(:empty) { display:table-caption; caption-side:bottom; background:#fff282; color:#000; padding:8px; font-size:.9em; }
#content.detective-case-page .detective-case__text figcaption:empty, #content.detective-case-page .detective-case__text figcaption[hidden] { display:none; }
#content.detective-case-page .detective-article-column figure { display:table; max-width:100%; margin:0 auto 24px; }
#content.detective-case-page .detective-article-column figure img { display:block; width:auto; height:auto; max-width:100%; max-height:380px; margin:auto; object-fit:contain; border-radius:0; }
#content.detective-case-page .detective-article-column figcaption:not(:empty) { display:table-caption; caption-side:bottom; background:#fff282; color:#000; padding:8px; font-size:.9em; }
#content.detective-case-page .detective-article-column figcaption:empty, #content.detective-case-page .detective-article-column figcaption[hidden] { display:none; }
#content.detective-case-page .detective-case__navigation a { display:inline-block; margin:0 0 .65rem; color:#000; font-size:14px; text-decoration:none; }
#content.detective-case-page .detective-case__navigation a:hover, #content.detective-case-page .detective-case__navigation a:focus-visible { color:#000; text-decoration:underline; text-decoration-color:#ffd800; text-decoration-thickness:2px; text-underline-offset:3px; }
#content.detective-case-page .detective-case__navigation a:focus-visible { outline:2px solid #000; outline-offset:3px; }
@media (min-width:1100px) {
 #content.detective-case-page .detective-case__story { width:100%; margin:0; }
 #content.detective-case-page .detective-article-columns--active { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,2.1fr) minmax(0,1fr); gap:2%; align-items:start; }
 #content.detective-case-page .detective-article-column { min-width:0; }
 #content.detective-case-page .detective-case__related, #content.detective-case-page .detective-case__navigation { width:50%; margin-left:auto; margin-right:auto; }
}
@media (max-width:700px) { #content.detective-case-page .detective-case__text p { text-align:left; } }

/* RELEASE-01E-R2: case-only return, heading and photo windows. */
#content.detective-case-page .detective-case__back { display:inline-block; margin:0 0 .65rem; color:#000; font-size:14px; text-decoration:none; }
#content.detective-case-page .detective-case__back:hover, #content.detective-case-page .detective-case__back:focus-visible { color:#000; text-decoration:underline; text-decoration-color:#ffd800; text-decoration-thickness:2px; text-underline-offset:3px; }
#content.detective-case-page .detective-case__back:focus-visible { outline:2px solid #000; outline-offset:3px; }
#content.detective-case-page .detective-case__back-arrow { display:inline-block; width:16px; height:16px; margin-right:.45em; vertical-align:-3px; }
#content.detective-case-page .detective-case__header { min-height:140px; }
#content.detective-case-page .detective-case__header h1 { font-size:clamp(25px,2.2vw,32px); font-weight:500; line-height:1.2; }
#content.detective-case-page .detective-case__mark { top:50%; transform:translateY(-50%); width:140px; max-height:140px; }
#content.detective-case-page .detective-case__text > h2:first-child { margin-top:0; }
@media (min-width:1100px) {
 #content.detective-case-page .detective-article-column figure { display:block; width:100%; box-sizing:border-box; margin:0 0 24px; }
 #content.detective-case-page .detective-article-column figure:last-child { margin-bottom:0; }
 #content.detective-case-page .detective-photo-frame { display:flex; width:100%; align-items:center; justify-content:center; background:#f4f4f2; }
 #content.detective-case-page .detective-article-column figure img { max-width:100%; max-height:var(--detective-photo-limit,380px); }
 #content.detective-case-page .detective-article-column figcaption:not(:empty) { display:block; box-sizing:border-box; width:100%; margin:0; }
}
@media (max-width:700px) {
 #content.detective-case-page .detective-case__header { min-height:90px; }
 #content.detective-case-page .detective-case__mark { width:80px; max-height:90px; }
}

/* RELEASE-01E-R3: case heading spacing and desktop logo. */
#content.detective-case-page .detective-case__header { margin-top:16px; }
@media (min-width:1100px) {
 #content.detective-case-page .detective-case__header { min-height:165px; }
 #content.detective-case-page .detective-case__mark { width:165px; max-height:165px; right:28px; }
}

/* RELEASE-01E-R4: align the case header with the article grid. */
@media (min-width:1100px) {
 #content.detective-case-page .detective-case__header { display:grid; grid-template-columns:minmax(0,1fr) calc((100% - 4%) / 4.1); grid-template-rows:max-content max-content; column-gap:2%; row-gap:26.4px; align-content:start; padding-right:0; }
 #content.detective-case-page .detective-case__number-row { display:contents; }
 #content.detective-case-page .detective-case__number-row .detective-case-number { grid-column:1; grid-row:1; }
 #content.detective-case-page .detective-case__header h1 { grid-column:1; grid-row:2; margin:0; }
 #content.detective-case-page .detective-case__mark { grid-column:2 / 3; grid-row:2 / 3; left:50%; right:auto; top:50%; transform:translate(-50%,-50%); }
 #content.detective-case-page .detective-article-columns--active .detective-case__text { transform:translateY(-43px); }
}

/* Static manufacturer filter: preserve hidden-card behavior. */
#content.manufacturer-catalog-page .manufacturer-catalog-item[hidden] { display: none; }
