/*
 * TASK-2026-08-23-017
 * Preservation-first responsive layer for the isolated legacy preview.
 * This file changes presentation only: no content, navigation target, or
 * historical asset is replaced.
 */

html,
body {
	max-width: 100%;
	overflow-x: hidden;
}

#container,
#container *,
#container *::before,
#container *::after {
	box-sizing: border-box;
}

#container {
	width: calc(100% - 32px);
	max-width: 1440px;
}

.container940 {
	width: calc(100% - 80px);
	max-width: none;
}

#container img {
	max-width: 100%;
	height: auto;
}

#container iframe,
#container object,
#container embed,
#container video {
	max-width: 100%;
}

#container a:focus-visible,
#container button:focus-visible,
#container input:focus-visible,
#container select:focus-visible,
#container textarea:focus-visible {
	outline: 2px solid #dc6a4d;
	outline-offset: 3px;
}

/* Preserve the historical header while letting its navigation use the space. */
#top {
	min-height: 109px;
	height: auto;
}

#nav {
	max-width: calc(100% - 276px);
}

.sf-menu ul {
	max-width: min(27em, calc(100vw - 32px));
}

/* The original 1020 x 350 artwork remains the source of truth. */
#header:not(.innerpage) {
	height: auto;
}

.box_skitter_large {
	width: 100%;
	height: auto;
	aspect-ratio: 1020 / 350;
	overflow: hidden;
}

.box_skitter_large .container_skitter,
.box_skitter_large .image,
.box_skitter_large .image > a,
.box_skitter_large .image_main {
	display: block;
	max-width: none;
}

.box_skitter_large .image_main,
.box_skitter_large .box_clone img {
	object-fit: cover;
}

.label_skitter {
	max-width: calc(100% - 20px);
}

#after-header > img {
	display: block;
	width: 100%;
	height: auto;
}

/* Allow the main article column to grow without changing source order. */
#content.withsidebar {
	background: none;
}

#maincontent {
	width: calc(100% - 320px);
	padding-right: 30px;
}

#sidebar {
	width: 320px;
	padding-left: 30px;
	border-left: 1px solid #ececec;
}

/* Existing home-page and portfolio columns become fluid. */
.customlist,
.customlist2,
#recentpost,
#ts-display-pf-col-2,
#ts-display-pf-col-3,
#ts-display-pf-col-4,
#ts-display-product {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 24px;
}

#ts-display-pf-col-2,
#ts-display-pf-col-3,
#ts-display-pf-col-4,
#ts-display-product {
	clear: both;
	width: 100%;
}

.customlist > li {
	float: none;
	width: calc((100% - 48px) / 3);
	margin: 0;
	padding: 10px 24px 10px 0;
}

.customlist > li.last {
	padding: 10px 0;
}

.customlist2 > li,
#recentpost > li {
	float: none;
	width: calc((100% - 72px) / 4);
	margin: 0;
}

#recentpost > p,
#recentpost > .title_pattern {
	flex: 0 0 100%;
}

#ts-display-pf-col-2 > li,
#ts-display-pf-col-3 > li,
#ts-display-pf-col-4 > li,
#ts-display-product > li {
	float: none;
	margin: 0 0 25px;
}

#ts-display-pf-col-2 > li {
	width: calc((100% - 24px) / 2);
}

#ts-display-pf-col-3 > li {
	width: calc((100% - 48px) / 3);
}

#ts-display-pf-col-4 > li,
#ts-display-product > li {
	width: calc((100% - 72px) / 4);
}

#ts-display-pf-col-1 .ts-display-pf-img,
#ts-display-pf-col-1 .ts-display-pf-text,
#ts-display-pf-col-2 .ts-display-pf-img,
#ts-display-pf-col-3 .ts-display-pf-img,
#ts-display-pf-col-4 .ts-display-pf-img,
#ts-display-product .ts-display-product-img {
	max-width: 100%;
}

#ts-display-pf-col-2 .ts-display-pf-img,
#ts-display-pf-col-3 .ts-display-pf-img,
#ts-display-pf-col-4 .ts-display-pf-img,
#ts-display-product .ts-display-product-img {
	width: 100%;
}

#ts-display-pf-col-1 .ts-display-pf-img a.image,
#ts-display-pf-col-2 .ts-display-pf-img a.image,
#ts-display-pf-col-3 .ts-display-pf-img a.image,
#ts-display-pf-col-4 .ts-display-pf-img a.image {
	width: 100%;
	height: auto;
}

#ts-display-pf-col-1 .ts-display-pf-img a.image {
	aspect-ratio: 530 / 302;
}

#ts-display-pf-col-2 .ts-display-pf-img a.image {
	aspect-ratio: 450 / 256;
}

#ts-display-pf-col-3 .ts-display-pf-img a.image {
	aspect-ratio: 290 / 184;
}

#ts-display-pf-col-4 .ts-display-pf-img a.image {
	aspect-ratio: 210 / 158;
}

#ts-display-pf-col-1 .ts-display-pf-img a.image > img,
#ts-display-pf-col-2 .ts-display-pf-img a.image > img,
#ts-display-pf-col-3 .ts-display-pf-img a.image > img,
#ts-display-pf-col-4 .ts-display-pf-img a.image > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

#ts-display-pf-col-1 .ts-display-pf-img a .rollover,
#ts-display-pf-col-2 .ts-display-pf-img a .rollover,
#ts-display-pf-col-3 .ts-display-pf-img a .rollover,
#ts-display-pf-col-4 .ts-display-pf-img a .rollover {
	top: 4px;
	left: 4px;
	width: calc(100% - 8px);
	height: calc(100% - 8px);
}

.shadowimg220,
.shadowimg220A,
.shadowimg270,
.shadowimg300,
.shadowimg460,
.shadowimg540,
.shadowimg610 {
	max-width: 100%;
	background-size: 100% 100%;
}

/* Footer keeps its original order and visual treatment. */
#footer .container940 {
	display: grid;
	grid-template-columns: 2fr repeat(3, minmax(0, 1fr));
	gap: 24px;
}

#footcol1,
#footcol2,
#footcol3,
#footcol4 {
	float: none;
	width: auto;
	min-width: 0;
	margin-right: 0;
}

#after-footer .container940 {
	display: block;
}

@media (max-width: 1100px) {
	#container {
		width: calc(100% - 24px);
		margin: 12px auto;
	}

	.container940 {
		width: calc(100% - 48px);
	}

	#nav {
		margin-right: 20px;
	}

	.sf-menu a {
		padding-right: 8px !important;
		padding-left: 8px !important;
	}

	#main {
		padding-right: 24px;
		padding-left: 24px;
	}

	#maincontent {
		width: calc(100% - 280px);
		padding-right: 24px;
	}

	#sidebar {
		width: 280px;
		padding-left: 24px;
	}
}

@media (max-width: 900px) {
	#top {
		display: flex;
		flex-direction: column;
		align-items: center;
		padding: 0 20px 18px;
	}

	#logo,
	#nav,
	#topnav {
		float: none;
	}

	#nav {
		position: static;
		width: 100%;
		max-width: none;
		margin: 0;
	}

	#topnav,
	.sf-menu {
		position: relative;
		right: auto;
		bottom: auto;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		width: 100%;
		line-height: 1.5;
	}

	.sf-menu > li {
		float: none;
	}

	.sf-menu > li > a {
		padding: 7px 9px !important;
	}

	.sf-menu li:hover ul,
	.sf-menu li.sfHover ul,
	.sf-menu li:focus-within ul {
		left: -2px;
		top: 2.8em;
	}

	#maincontent,
	#sidebar {
		float: none;
		width: 100%;
	}

	#maincontent {
		padding-right: 0;
	}

	#sidebar {
		clear: both;
		margin-top: 28px;
		padding: 24px 0 0;
		border-top: 1px solid #ececec;
		border-left: 0;
	}

	.customlist2 > li,
	#recentpost > li,
	#ts-display-pf-col-3 > li,
	#ts-display-pf-col-4 > li,
	#ts-display-product > li {
		width: calc((100% - 24px) / 2);
	}

	#footer .container940 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	#after-footer {
		height: auto;
		min-height: 80px;
		padding-bottom: 24px;
	}
}

@media (max-width: 640px) {
	body {
		background-attachment: scroll;
	}

	#container {
		width: 100%;
		margin: 0;
		border-radius: 0;
		box-shadow: none;
	}

	.container940 {
		width: calc(100% - 32px);
	}

	#top {
		padding-right: 12px;
		padding-left: 12px;
	}

	#logo img {
		width: min(248px, 72vw);
	}

	.sf-menu > li > a {
		padding: 7px 8px !important;
		font-size: 12px;
		min-height: 44px;
		display: flex;
		align-items: center;
	}

	.sf-menu ul {
		width: min(22em, calc(100vw - 24px));
	}

	#header.innerpage {
		padding: 20px 0;
	}

	#header.innerpage .pagetitle,
	#header.innerpage .pagedesc {
		float: none;
		margin-right: 0;
		text-align: center;
	}

	#header.innerpage .pagedesc {
		margin-top: 10px;
	}

	.label_skitter {
		left: 6px !important;
		bottom: 4px !important;
		max-width: calc(100% - 12px);
		padding: 6px;
	}

	.label_skitter h3 {
		margin: 0;
		font-size: 13px;
		line-height: 16px;
	}

	#main {
		padding: 0 16px 20px;
	}

	.customlist,
	.customlist2,
	#recentpost,
	#ts-display-pf-col-2,
	#ts-display-pf-col-3,
	#ts-display-pf-col-4,
	#ts-display-product {
		gap: 20px;
	}

	.customlist > li,
	.customlist2 > li,
	#recentpost > li,
	#ts-display-pf-col-2 > li,
	#ts-display-pf-col-3 > li,
	#ts-display-pf-col-4 > li,
	#ts-display-product > li {
		width: 100%;
		margin: 0 0 20px;
	}

	.customlist > li {
		padding: 10px 0 20px;
		border-right: 0;
		border-bottom: 1px solid #dcdcdc;
	}

	.customlist > li.last {
		border-bottom: 0;
	}

	#ts-display-pf-col-1 .ts-display-pf-img,
	#ts-display-pf-col-1 .ts-display-pf-text {
		float: none;
		width: 100%;
		margin-right: 0;
	}

	#ts-display-pf-col-1 .ts-display-pf-text {
		margin-top: 20px;
	}

	.entry-utility,
	.entry-content,
	#single-product-img,
	#single-product-description,
	.relatedproduct-img,
	.relatedproduct-text,
	.czlc-img,
	.czlc-text {
		float: none;
		width: 100%;
		padding-left: 0;
		border-right: 0;
	}

	#czlc li,
	#relatedproduct li {
		width: 100%;
	}

	.date-right {
		float: none;
		display: block;
		margin-top: 4px;
		text-align: right;
	}

	.information-text .images-right,
	.information-text .images-left,
	.information-text .images-center {
		float: none;
		display: block;
		margin: 16px auto;
	}

	table {
		display: block;
		max-width: 100%;
		overflow-x: auto;
	}

	#container iframe,
	#container object,
	#container embed,
	#container video {
		width: 100%;
	}

	#footer .container940 {
		display: block;
	}

	#footcol1,
	#footcol2,
	#footcol3,
	#footcol4 {
		padding-top: 28px;
		padding-bottom: 0;
	}

	#footertext,
	#sn {
		float: none;
		padding-top: 20px;
		text-align: center;
	}

	#sn ul {
		display: flex;
		justify-content: center;
		flex-wrap: wrap;
	}

	#sn ul li {
		float: none;
		margin: 0 9px;
	}

	.one_half,
	.one_third,
	.two_third,
	.three_fourth,
	.one_fourth,
	.one_fifth,
	.two_fifth,
	.three_fifth,
	.four_fifth,
	.one_sixth,
	.five_sixth {
		float: none;
		width: 100%;
		margin-right: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
