/* Shared scaffolding; obsolete merged-page and old product navigation rules removed. */
:root {
  --max: 90rem;
  --page-gutter: clamp(1.25rem,3.4vw,4rem);
}

body {
  min-width: 0;
}

.shell, #products .product-shell, .about-shell {
  width: min(var(--max),calc(100% - 2 * var(--page-gutter)));
  margin-inline: auto;
}

.hero {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: calc(100svh - var(--site-header-height));
  color: var(--carbon);
  background: var(--paper);
}

.hero-photo {
  inset: 0 0 6rem;
}

.hero-photo img {
  object-fit: cover;
  object-position: 70% center;
  filter: none;
}

.hero-photo::before {
  background: linear-gradient(90deg,#F5F6F6B3 0%,#F5F6F680 28%,#F5F6F64D 40%,#F5F6F600 60%);
}

.hero-photo::after {
  display: none;
}

.hero .shell {
  position: relative;
  z-index: 2;
  height: auto;
  flex: 1 0 auto;
  min-height: clamp(35rem,calc(100svh - var(--site-header-height) - 6.125rem),52.5rem);
  padding: 4rem 0;
  justify-content: center;
}

.hero-brand {
  display: none;
}

.hero h1.hero-tagline, html[lang="zh"] .hero h1.hero-tagline {
  max-width: min(47%,38.75rem);
  margin: 1.5rem 0;
  font-size: clamp(2.25rem,3vw,3rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.025em;
  white-space: normal;
  text-wrap: balance;
}

.hero h1.hero-tagline::after {
  display: none;
}

.hero-headline-line {
  display: block;
  text-wrap: balance;
}

.hero-term {
  white-space: nowrap;
}

.hero p, html[lang="zh"] .hero p {
  max-width: min(43%,33.75rem);
  color: var(--steel);
  font-size: 1rem;
  line-height: 1.9;
  white-space: normal;
}

.hero .section-code {
  max-width: 48%;
  color: var(--orange-dark);
  font-size: 0.6875rem;
  line-height: 1.6;
  letter-spacing: .045em;
}

.hero .section-code::before {
  flex: 0 0 1.5rem;
}

.hero-actions {
  max-width: 53%;
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.875rem;
}

.hero .button {
  min-width: 0;
  height: auto;
  min-height: 3rem;
  padding: 0.75rem 1.125rem;
  gap: 0.75rem;
  border: 1px solid var(--orange);
  border-radius: 0.125rem;
  color: var(--carbon);
  background: var(--orange);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  transform: none;
}

.hero .button svg {
  width: 1.0625rem;
  height: 1.0625rem;
  flex: 0 0 1.0625rem;
}

.hero .button[data-hero-route] {
  border-color: #1D242733;
  color: var(--carbon);
  background: #FFFFFFCC;
}

.hero .button[data-hero-route] svg {
  color: var(--orange-dark);
}

.hero .button[data-hero-route="home"] {
  border: 0;
  background: transparent;
  padding-inline: 0.625rem;
}

.hero .button[data-hero-route="home"] svg {
  order: -1;
}

.hero-index, .hero-side {
  display: none;
}

.hero-rail {
  position: relative;
  inset: auto;
  z-index: 3;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  padding: 0 max(var(--page-gutter),calc((100% - var(--max))/2));
  background: var(--carbon);
  border-top: 1px solid #FFFFFF24;
}

.hero-rail a, .hero-rail a:first-child {
  min-width: 0;
  min-height: 6rem;
  padding: 1.25rem 1.75rem;
  gap: 1rem;
  border-right: 1px solid #FFFFFF24;
  border-bottom: 0;
  background: transparent;
}

.hero-rail a:first-child {
  padding-left: 0;
}

.hero-rail a:last-child {
  border-right: 0;
}

.hero-rail svg {
  width: 1.5rem;
  height: 1.5rem;
}

.hero-rail strong {
  font-size: 0.875rem;
  line-height: 1.5;
}

.hero-rail small {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted-on-dark);
}

.about-stage {
  min-height: 0;
}

.about-shell {
  min-height: max(38.75rem,calc(100svh - var(--site-header-height)));
  padding: 3.5rem 0 0;
  justify-content: center;
}

.about-content {
  max-width: 57.5rem;
  margin: auto;
  padding-bottom: 2.25rem;
  text-shadow: none;
}

.about-kicker {
  line-height: 1.6;
  letter-spacing: .05em;
}

.about-title {
  max-width: 57.5rem;
  margin: 1.125rem auto 0;
  font-size: clamp(2.125rem,3.3vw,3rem);
  line-height: 1.35;
  text-wrap: balance;
}

.about-copy {
  max-width: 55rem;
  margin: 1.625rem auto 0;
  padding: 1.5rem 0;
  background: none;
}

.about-copy p, html[lang="en"] .about-copy p {
  font-size: 1rem;
  line-height: 1.95;
}

.about-summary {
  flex-wrap: wrap;
  gap: 0.75rem 0;
  margin-top: 1.5rem;
}

.about-meta-item {
  gap: 0.75rem;
  padding: 0.3125rem 1.5rem;
  align-items: center;
}

.about-meta-item strong {
  font: 700 1.4375rem/1.4 var(--desktop-font);
}

.about-meta-item small {
  font-size: 0.75rem;
  line-height: 1.6;
}

.about-index {
  position: static;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 2rem;
  width: 100%;
  margin-top: 1.5rem;
}

.about-index button {
  min-width: 0;
  min-height: 6rem;
  padding: 1.25rem 0;
}

.about-index strong {
  font-size: 0.875rem;
  line-height: 1.5;
}

.about-index small {
  font-size: 0.75rem;
  line-height: 1.6;
}

.about-caption {
  display: none;
}

#products.product-center {
  height: auto;
  min-height: calc(100svh - var(--site-header-height));
  padding: 2rem 0 2.5rem;
}

#products .product-shell {
  height: auto;
}

.product-layout {
  grid-template-columns: 12.5rem minmax(0,1fr);
  gap: 2rem;
  flex: none;
}

.product-result-heading {
  margin-bottom: 1.25rem;
  min-height: 3rem;
  gap: 1.5rem;
}

.product-search {
  height: 2.875rem;
  flex-basis: 22.5rem;
}

.product-grid {
  flex: none;
  grid-template-columns: repeat(4,minmax(0,1fr));
  grid-template-rows: none;
  grid-auto-rows: auto;
  gap: 1.25rem;
  align-items: stretch;
}

.product-tile {
  min-height: 0;
}

.product-tile-image {
  flex: none;
  aspect-ratio: 4/3;
  padding: 1.125rem;
}

.product-tile-image img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.product-tile-copy {
  min-height: 5.875rem;
  padding: 0.875rem;
}

.product-tile h4 {
  min-height: 2.625rem;
  max-height: none;
  line-height: 1.5;
}

.product-tile p {
  white-space: normal;
  overflow-wrap: anywhere;
  text-overflow: clip;
  margin-top: 0.5rem;
}

.product-pagination {
  margin-top: 1.75rem;
}

.product-page {
  width: 2.5rem;
  height: 2.5rem;
}

.product-empty {
  min-height: 20.625rem;
}

@media (min-width:901px) and (max-width:1199px) {
  .product-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }

  .product-layout {
    grid-template-columns: 10.75rem minmax(0,1fr);
    gap: 1.5rem;
  }

  .product-result-heading {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .product-search {
    flex: 1 1 100%;
  }
}

@media (max-width:900px) {
  .about-shell {
    padding-top: 2.75rem;
  }

  .about-content {
    max-width: 47.5rem;
  }

  .about-copy {
    padding: 1.375rem 0;
  }

  .about-index {
    gap: 1.5rem;
  }

  .about-index svg {
    display: none;
  }

  .product-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .product-categories {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
  }

  .product-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 1.125rem;
  }

  .product-result-heading {
    flex-wrap: wrap;
    gap: 0.875rem;
  }

  .product-search {
    flex: 1 1 22.5rem;
  }
}

@media (max-width:600px) {
  .about-shell {
    min-height: calc(100svh - var(--site-header-height));
    padding: 2rem 0 0;
  }

  .about-content {
    margin: 0;
    text-align: left;
    padding-bottom: 1.5rem;
  }

  .about-kicker {
    justify-content: flex-start;
    font-size: 0.6875rem;
  }

  .about-title {
    font-size: 1.875rem;
    line-height: 1.45;
    margin-top: 1.125rem;
  }

  .about-copy {
    margin-top: 1.375rem;
    padding: 1.25rem 0;
  }

  .about-copy p, html[lang="en"] .about-copy p {
    font-size: 0.9375rem;
    line-height: 1.95;
  }

  .about-summary {
    justify-content: flex-start;
    gap: 0.75rem 0;
    margin-top: 1.375rem;
  }

  .about-meta-item {
    padding: 0 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .about-meta-item:first-child {
    padding-left: 0;
  }

  .about-meta-item strong {
    font-size: 1.25rem;
  }

  .about-meta-item small {
    font-size: 0.6875rem;
    max-width: 11.25rem;
  }

  .about-index {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 0.625rem;
  }

  .about-index button {
    padding: 1rem 0;
    min-height: 4.75rem;
    border-bottom: 1px solid #FFFFFF24;
  }

  .about-index button:last-child {
    border-bottom: 0;
  }

  .about-index svg {
    display: block;
  }

  #products.product-center {
    padding: 1.625rem 0 2rem;
  }

  .product-layout {
    gap: 1.375rem;
  }

  .product-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 0.75rem;
  }

  .product-tile-image {
    aspect-ratio: 1/1;
    padding: 0.875rem;
  }

  .product-tile-copy {
    min-height: 6.125rem;
    padding: 0.75rem 0.625rem;
  }

  .product-tile h4 {
    font-size: 0.875rem;
  }

  .product-result-summary {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.375rem 0.75rem;
  }

  .product-search {
    flex: 1 1 100%;
  }

  .product-search-submit {
    padding-inline: 0.75rem;
  }

  .product-pagination {
    gap: 0.375rem;
    margin-top: 1.5rem;
  }

  .product-page {
    width: 2.375rem;
    height: 2.375rem;
  }
}

@media (hover:hover) and (pointer:fine) {
  .hero .button[data-site-route]:hover:where(:not(.rh-hover-reset)) {
    background: var(--brand-accent-hover);
    border-color: var(--brand-accent-hover);
  }

  .hero .button[data-hero-route]:hover:where(:not(.rh-hover-reset)) {
    border-color: var(--orange);
    color: var(--carbon);
    background: #FFFFFF;
  }

  .hero .button[data-hero-route="home"]:hover:where(:not(.rh-hover-reset)) {
    color: var(--orange);
    background: none;
  }

  .hero-rail a:hover:where(:not(.rh-hover-reset)) {
    background: transparent;
  }

  .hero-rail a:hover:where(:not(.rh-hover-reset)) strong {
    color: var(--orange);
  }
}

@media (hover:none) {
  .hero .button:hover:where(:not(.rh-hover-reset)) {
    transform: none;
  }

  .hero-rail a:hover:where(:not(.rh-hover-reset)) {
    background: transparent;
  }
}
