/* Responsive readability, lower-content flow, footer and search repairs.  * Extracted from main.css; enqueue order is part of the contract.  */ 
/* ===== Product detail readability and responsive repair ===== */
body.single-product {
  --product-shell: 1280px;
  overflow-x: clip;
}
body.single-product .site-header .header-inner,
body.single-product .site-header .shell,
body.single-product .product-blueprint > .single-product > .breadcrumbs,
body.single-product .product-blueprint .product-detail-grid,
body.single-product .product-blueprint .product-anchor-nav .shell,
body.single-product .product-blueprint .product-detail-content,
body.single-product .selector-footer .shell {
  width: min(calc(100% - 48px), var(--product-shell));
  max-width: var(--product-shell);
}

/* Product hero must remain fluid instead of using reference-image pixel widths. */
body.single-product .product-blueprint .product-detail-hero {
  height: auto;
  padding: 38px 0 46px;
}
body.single-product .product-blueprint .product-detail-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}
body.single-product .product-blueprint .product-gallery {
  grid-template-columns: 72px minmax(0, 1fr);
  grid-template-rows: minmax(420px, 500px) 24px;
  gap: 12px 16px;
}
body.single-product .product-blueprint .product-main-media {
  width: 100%;
  min-height: 420px;
  height: 100%;
  max-height: 500px;
}
body.single-product .product-blueprint .product-summary-panel {
  height: auto;
  padding-top: 0;
}
body.single-product .product-blueprint .product-summary-panel h1,
body.single-product .product-blueprint .product-english-title,
body.single-product .product-blueprint .product-summary-panel .lead {
  display: block;
}
body.single-product .product-blueprint .product-summary-panel h1 {
  margin: 8px 0 12px;
  font-size: var(--font-size-h1);
  line-height: var(--line-height-display);
}
body.single-product .product-blueprint .product-english-title {
  margin-bottom: 14px;
  font-size: var(--font-size-small);
}
body.single-product .product-blueprint .product-summary-panel .lead {
  margin-bottom: 24px;
  font-size: var(--font-size-body);
  line-height: var(--line-height-relaxed);
}
body.single-product .product-benefit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}
body.single-product .product-benefit-grid > div {
  min-height: 88px;
  padding: 14px 16px;
}
body.single-product .product-benefit-grid strong { font-size: var(--font-size-small); }
body.single-product .product-benefit-grid span { font-size: var(--font-size-caption); }
body.single-product .product-blueprint .hero-actions {
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 28px;
}
body.single-product .product-blueprint .hero-actions .button {
  min-height: 48px;
  font-size: var(--font-size-caption);
}
body.single-product .product-quick-specs {
  min-height: 72px;
  padding: 14px 0;
  border: 1px solid var(--pd-line);
  border-radius: 8px;
}
body.single-product .product-quick-specs > div { padding: 0 14px; }
body.single-product .product-quick-specs dt { font-size: var(--font-size-caption); }
body.single-product .product-quick-specs dd { font-size: var(--font-size-body); }

/* Keep section navigation readable and usable on narrower desktop windows. */
body.single-product .product-blueprint .product-anchor-nav {
  position: sticky;
  top: 0;
  height: auto;
  border-block: 1px solid var(--pd-line);
  box-shadow: 0 5px 18px rgba(24, 32, 44, .05);
}
body.single-product .product-blueprint .product-anchor-nav .shell {
  justify-content: flex-start;
  gap: 8px;
}
body.single-product .product-blueprint .product-anchor-nav a {
  min-width: 0;
  padding: 17px 20px;
  font-size: var(--font-size-caption);
  text-align: center;
}
body.single-product .product-blueprint .product-anchor-nav a:first-child { padding-left: 20px; }
body.single-product .product-blueprint .product-anchor-nav a::after {
  inset-inline: 20px;
  width: auto;
}

/* Overview: natural reading column + a balanced 2 x 2 value-card grid. */
body.single-product .product-blueprint .product-detail-content { padding: 0 0 64px; }
body.single-product .product-blueprint .product-module h2 {
  margin-bottom: 18px;
  font-size: var(--font-size-h3);
  line-height: var(--line-height-heading);
}
body.single-product .product-overview-row {
  grid-template-columns: minmax(320px, .82fr) minmax(0, 1.18fr);
  gap: clamp(36px, 5vw, 72px);
  min-height: 0;
  padding: 64px 0;
  border-bottom: 1px solid var(--pd-line);
}
body.single-product .overview-copy { padding-right: 0; }
body.single-product .overview-copy p,
body.single-product .overview-copy li {
  font-size: var(--font-size-body);
  line-height: var(--line-height-relaxed);
}
body.single-product .overview-benefits {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
body.single-product .overview-benefits article {
  min-height: 148px;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  padding: 24px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(28, 39, 54, .04);
}
body.single-product .overview-benefits article > svg {
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid rgba(230, 0, 18, .22);
  border-radius: 50%;
}
body.single-product .overview-benefits h3 {
  margin: 2px 0 9px;
  font-size: var(--font-size-body);
}
body.single-product .overview-benefits p {
  font-size: var(--font-size-caption);
  line-height: var(--line-height-base);
}

/* Features and workflow are independent full-width sections, never squeezed side by side. */
body.single-product .product-middle-grid {
  height: auto;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
  padding: 64px 0;
}
body.single-product .product-middle-grid > .product-module {
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 0;
  overflow: visible;
  border: 0;
}
body.single-product .compact-rich-content {
  margin-bottom: 24px;
  font-size: var(--font-size-body);
  line-height: var(--line-height-relaxed);
}
body.single-product .product-feature-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
body.single-product .product-feature-list > div {
  min-height: 220px;
  display: block;
  padding: 22px;
  text-align: left;
  background: #f7f8fa;
  border: 1px solid #edf0f3;
  border-radius: 10px;
}
body.single-product .product-feature-list img {
  width: 100%;
  height: 112px;
  margin: 0 0 18px;
  object-fit: cover;
  border-radius: 7px;
}
body.single-product .product-feature-list h3 {
  margin: 0 0 8px;
  font-size: var(--font-size-body);
  line-height: var(--line-height-tight);
}
body.single-product .product-feature-list p {
  font-size: var(--font-size-caption);
  line-height: var(--line-height-base);
}
body.single-product .workflow-module {
  padding-top: 48px;
  border-top: 1px solid var(--pd-line);
}
body.single-product .workflow-list {
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
body.single-product .workflow-list > svg {
  width: 22px;
  margin-top: -48px;
}
body.single-product .workflow-list > div {
  min-height: 230px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--pd-line);
  border-radius: 10px;
}
body.single-product .workflow-list > div > img {
  width: 100%;
  height: 120px;
  margin: 0 0 16px;
  object-fit: cover;
  border-radius: 7px;
}
body.single-product .workflow-list strong {
  font-size: var(--font-size-body);
  text-align: left;
}
body.single-product .workflow-list strong b {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  margin-right: 7px;
  color: #fff;
  background: var(--pd-red);
  border-radius: 50%;
  font-size: var(--font-size-caption);
}
body.single-product .workflow-list p {
  margin-top: 10px;
  font-size: var(--font-size-caption);
  line-height: var(--line-height-copy);
  text-align: left;
}

/* Lower modules stay fluid; fixed reference widths caused horizontal overflow. */
body.single-product .product-lower-grid {
  grid-template-columns: minmax(0, 1.65fr) minmax(330px, .75fr);
  gap: 36px;
  min-height: 0;
  padding: 0 0 56px;
}
body.single-product .product-lower-grid .product-module { padding: 24px; }
body.single-product .product-blueprint .parameter-table table { min-width: 600px; }
body.single-product .product-blueprint .parameter-table th,
body.single-product .product-blueprint .parameter-table td {
  height: auto;
  padding: 12px 14px;
  font-size: var(--font-size-caption);
}
body.single-product .spec-note { margin-top: 10px; font-size: var(--font-size-caption); }

@media (max-width: 1360px) {
  body.single-product .product-blueprint .product-detail-grid {
    grid-template-columns: minmax(0, 1fr) minmax(400px, .9fr);
    gap: 36px;
  }
  body.single-product .product-blueprint .product-gallery {
    grid-template-rows: minmax(360px, 430px) 24px;
  }
  body.single-product .product-blueprint .product-main-media { min-height: 360px; }
}

@media (max-width: 1080px) {
  body.single-product .product-blueprint .product-detail-grid,
  body.single-product .product-lower-grid { grid-template-columns: minmax(0, 1fr); }
  body.single-product .product-overview-row { grid-template-columns: minmax(0, 1fr); }
  body.single-product .product-feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.single-product .product-detail-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  body.single-product .sidebar-split { margin-top: 0; }
}

@media (max-width: 760px) {
  body.single-product .site-header .header-inner,
  body.single-product .site-header .shell,
  body.single-product .product-blueprint > .single-product > .breadcrumbs,
  body.single-product .product-blueprint .product-detail-grid,
  body.single-product .product-blueprint .product-anchor-nav .shell,
  body.single-product .product-blueprint .product-detail-content,
  body.single-product .selector-footer .shell { width: min(calc(100% - 28px), var(--product-shell)); }
  body.single-product .product-blueprint .product-detail-hero { padding: 24px 0 34px; }
  body.single-product .product-blueprint .product-gallery { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  body.single-product .product-blueprint .product-main-media { min-height: 280px; height: 280px; }
  body.single-product .product-blueprint .product-thumbnails { grid-row: 2; }
  body.single-product .gallery-dots { grid-column: 1; }
  body.single-product .product-blueprint .product-anchor-nav a { padding: 14px 16px; font-size: var(--font-size-caption); }
  body.single-product .product-overview-row,
  body.single-product .product-middle-grid { padding: 42px 0; }
  body.single-product .overview-benefits,
  body.single-product .product-feature-list { grid-template-columns: minmax(0, 1fr); }
  body.single-product .workflow-list { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  body.single-product .workflow-list > svg { display: none; }
  body.single-product .workflow-list > div { min-height: 0; }
  body.single-product .product-detail-sidebar { grid-template-columns: minmax(0, 1fr); }
}

/* ===== Product lower-content flow repair ===== */
body.single-product .product-detail-sidebar,
body.single-product .applications-module,
body.single-product .sidebar-split,
body.single-product .sidebar-split > .product-module {
  height: auto;
  min-height: 0;
  overflow: visible;
}
body.single-product .product-detail-sidebar {
  align-self: start;
}
body.single-product .applications-module {
  padding: 24px;
  border: 1px solid #e4e7eb;
  border-radius: 10px;
}
body.single-product .product-detail-sidebar .application-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
body.single-product .product-detail-sidebar .application-grid img {
  height: 96px;
  aspect-ratio: auto;
}
body.single-product .product-detail-sidebar .application-grid strong {
  padding: 9px 6px;
  font-size: var(--font-size-caption);
}
body.single-product .sidebar-split {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}
body.single-product .product-lower-grid .downloads-module,
body.single-product .product-lower-grid .faq-module {
  height: auto;
  padding: 24px;
  overflow: visible;
  border: 1px solid #e4e7eb;
  border-radius: 10px;
}
body.single-product .downloads-module > a {
  min-height: 58px;
  padding: 10px 0;
}
body.single-product .downloads-module strong,
body.single-product .product-blueprint .faq-list summary {
  font-size: var(--font-size-caption);
}
body.single-product .downloads-module small,
body.single-product .product-blueprint .faq-list details p {
  font-size: var(--font-size-caption);
}
body.single-product .product-blueprint .faq-list summary {
  min-height: 48px;
}
body.single-product .related-models-module {
  position: relative;
  clear: both;
  min-height: 0;
  height: auto;
  margin-top: 0;
  padding-top: 8px;
  overflow: visible;
}
@media (max-width: 1080px) {
  body.single-product .product-detail-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  body.single-product .sidebar-split { margin-top: 0; }
}
@media (max-width: 520px) {
  body.single-product .product-detail-sidebar .application-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Public footer width contract: align footer content with the wide page rail. */
html body[class] .site-footer.site-footer .shell {
  width: min(1840px, calc(100% - 140px)) !important;
  max-width: 1840px !important;
  margin-inline: auto !important;
}

@media (max-width: 1024px) {
  html body[class] .site-footer.site-footer .shell {
    width: calc(100% - 48px) !important;
  }
}

@media (max-width: 599px) {
  html body[class] .site-footer.site-footer .shell {
    width: calc(100% - 32px) !important;
  }
}

/* Search recovery page. */
.search-form {
  width: min(680px, 100%);
  display: flex;
  margin: 0 0 28px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.search-form label { min-width: 0; flex: 1; }
.search-field {
  width: 100%;
  min-height: 54px;
  padding: 0 17px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}
.search-field:focus-visible { box-shadow: inset 0 0 0 2px var(--red); }
.search-submit {
  min-width: 108px;
  padding: 0 20px;
  color: #fff;
  background: var(--red);
  border: 1px solid var(--red);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
}
.no-results__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.no-results__links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  color: var(--red);
  background: #fff;
  border: 1px solid #f4b4bc;
  border-radius: 6px;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-bold);
}
@media (max-width: 560px) {
  .search-form { display: grid; }
  .search-submit { min-height: 50px; }
  .no-results__links { display: grid; }
}
/* Reusable previous/next post navigation (singular templates). */
.tongyi-post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin: 48px auto 0;
	max-width: 1080px;
	padding: 0 24px;
}

.tongyi-post-nav .post-nav-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 20px 22px;
	border: 1px solid #e2e6ec;
	border-radius: 10px;
	background: #fff;
	text-decoration: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tongyi-post-nav .post-nav-card:hover {
	border-color: #1a5f9e;
	box-shadow: 0 6px 18px rgba(15, 45, 75, 0.08);
}

.tongyi-post-nav .post-nav-card--next {
	justify-content: flex-end;
	text-align: right;
	grid-column: 2;
}

.tongyi-post-nav .post-nav-card--previous:first-child:last-child,
.tongyi-post-nav .post-nav-card--previous {
	grid-column: 1;
}

.tongyi-post-nav .post-nav-icon {
	font-size: 20px;
	line-height: 1;
	color: #1a5f9e;
	flex: none;
}

.tongyi-post-nav .post-nav-copy small {
	display: block;
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #7c8896;
	margin-bottom: 4px;
}

.tongyi-post-nav .post-nav-copy strong {
	display: block;
	font-size: 15px;
	font-weight: 600;
	color: #14212e;
	line-height: 1.35;
}

@media (max-width: 640px) {
	.tongyi-post-nav {
		grid-template-columns: 1fr;
	}

	.tongyi-post-nav .post-nav-card--next,
	.tongyi-post-nav .post-nav-card--previous {
		grid-column: 1;
	}
}
