/* UTTPRO 型錄共用設計：同一套字級、間距、色彩與原生容器。 */
.ut-catalogue {
  --utc-ink: #142d38;
  --utc-muted: #405d68;
  --utc-accent: #00646b;
  --utc-accent-hover: #004b54;
  --utc-paper: #edf2f2;
  --utc-line: #d3dfe1;
  --utc-focus: #b57700;
  --utc-radius: 6px;
  --utc-gap: clamp(16px, 2.4vw, 32px);
  color: var(--utc-ink);
  background: #fff;
}

.ut-catalogue [hidden] { display: none !important; }
.ut-catalogue :is(a, input, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--utc-focus);
  outline-offset: 3px;
}

.utc-hero {
  padding: clamp(28px, 4vw, 58px) 0;
  background: var(--utc-paper);
  border-bottom: 1px solid var(--utc-line);
}

.utc-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: var(--utc-gap);
}

.utc-intro h1 {
  max-width: 17ch;
  margin: 0 0 16px !important;
  color: var(--utc-ink) !important;
  font-size: clamp(32px, 4.15vw, 62px) !important;
  font-weight: 780 !important;
  line-height: 1.12 !important;
  letter-spacing: -.035em !important;
  text-wrap: balance;
}

.utc-intro > p {
  max-width: 43ch;
  margin: 0 0 22px !important;
  color: var(--utc-muted);
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.65;
  text-wrap: pretty;
}

.utc-brand-pane .sk-logo { display: block; width: 208px; margin: 0 0 18px; }
.utc-brand-pane .sk-module-intro > :is(.sk-lead, .ut-btn) { display: none; }
#skin_wrapper .ut-catalogue .utc-button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  box-sizing: border-box;
  padding: 10px 18px;
  background: var(--utc-accent);
  border: 1px solid transparent;
  border-radius: var(--utc-radius);
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
  transition: background-color .18s, transform .18s;
}

#skin_wrapper .ut-catalogue .utc-button:hover { background: var(--utc-accent-hover); transform: translateY(-2px); }
#skin_wrapper .ut-catalogue .utc-button:active { transform: translateY(1px); }
.utc-photo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  padding: clamp(6px, 1.35vw, 19px);
  background: #fff;
  border: 1px solid var(--utc-line);
  border-radius: var(--utc-radius);
}

.utc-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.utc-photo--single {
  grid-template-columns: minmax(0, 250px);
  justify-content: center;
}
.utc-layout {
  display: grid;
  grid-template-columns: clamp(190px, 16.5%, 210px) minmax(0, 1fr);
  gap: var(--utc-gap);
  align-items: start;
  padding-top: var(--utc-gap);
  padding-bottom: 64px;
}

.utc-main { min-width: 0; }
.ut-catalogue .bn-tree { border-color: var(--utc-line); border-radius: var(--utc-radius); }
.utc-section-title {
  scroll-margin-top: 24px;
  margin: 0 0 14px !important;
  color: var(--utc-ink) !important;
  font-size: clamp(21px, 2.1vw, 27px) !important;
  font-weight: 760 !important;
  line-height: 1.3 !important;
}

.utc-range-pane { margin-bottom: 24px; }
.utc-range-pane.DNNEmptyPane { display: none; }
.utc-panel { min-width: 0; }
.utc-range-pane .sk-range-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.utc-range-pane .sk-range { grid-column: span 2; }
.utc-range-pane .sk-range:first-child:nth-last-child(2),
.utc-range-pane .sk-range:first-child:nth-last-child(2) + .sk-range { grid-column: span 3; }
.utc-range-pane .sk-range-visual { display: none; }
#skin_wrapper .ut-catalogue .sk-range {
  --utc-range-line: #829da5;
  display: flex;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--utc-line);
  border-left: 4px solid var(--utc-range-line);
  border-radius: var(--utc-radius);
  background: #fff;
  text-decoration: none;
  transition: border-color .18s, transform .18s;
}

#skin_wrapper .ut-catalogue .sk-range[href$="/VAULT-FLAM"],
#skin_wrapper .ut-catalogue .sk-range[href$="/Chemical"] { --utc-range-line: #be9013; }
#skin_wrapper .ut-catalogue .sk-range[href$="/VAULT-COMB"] { --utc-range-line: #b73736; }
#skin_wrapper .ut-catalogue .sk-range[href$="/VAULT-CORR"] { --utc-range-line: #285cad; }
#skin_wrapper .ut-catalogue .sk-range:hover {
  border-color: var(--utc-accent);
  border-left-color: var(--utc-range-line);
  transform: translateY(-2px);
}

.utc-range-pane .sk-range > div:last-child { display: flex; flex: 1; flex-direction: column; padding: 13px 15px; }
.utc-range-pane .sk-range h2 { margin: 0 0 5px !important; color: var(--utc-ink) !important; font-size: 17px !important; line-height: 1.45 !important; }
.utc-range-pane .sk-range p { margin: 0 0 5px !important; color: var(--utc-muted); font-size: 14px; }
.utc-range-pane .sk-range span { margin-top: auto; color: var(--utc-accent); font-size: 14px; font-weight: 650; }
.utc-range-pane .sk-range span::after { content: " →" / ""; }

.utc-guide {
  margin: 0 0 24px;
  padding: clamp(16px, 2.6vw, 24px);
  border: 1px solid var(--utc-line);
  border-radius: var(--utc-radius);
  background: var(--utc-paper);
}

.utc-guide dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  margin: 0;
}

.utc-guide dt { font-weight: 700; }
.utc-guide dd { margin: 3px 0 0; color: var(--utc-muted); }

@media (max-width: 700px) {
  .utc-guide dl { grid-template-columns: 1fr; }
}

.utc-search { padding: clamp(14px, 2vw, 20px); margin-bottom: 16px; background: var(--utc-paper); border-radius: var(--utc-radius); }
.utc-search label { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 650; }
#skin_wrapper .ut-catalogue #sk-filter {
  width: 100%;
  height: 50px;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid #a9bfc4;
  border-radius: 5px;
  background: #fff;
  color: var(--utc-ink);
  font: inherit;
}

.utc-search #sk-search-status { color: var(--utc-muted); margin: 8px 0 0 !important; }
.utc-search #sk-search-status:empty { margin: 0 !important; }
.utc-list > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 0;
  margin: 0 0 12px;
  border-bottom: 1px solid var(--utc-line);
  color: var(--utc-ink);
  font-size: 21px;
  font-weight: 740;
  list-style: none;
  cursor: pointer;
}

.utc-list > summary::-webkit-details-marker { display: none; }
.utc-list > summary::after { content: "+" / ""; color: var(--utc-accent); }
.utc-list[open] > summary::after { content: "−" / ""; }
.utc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.utc-grid > .DnnModule { min-width: 0; margin: 0 !important; }
.utc-card, .utc-card-content, .utc-card .DNNModuleContent, .utc-card .ModDNNHTMLC > .Normal { height: 100%; }
.utc-card {
  box-sizing: border-box;
  padding: clamp(13px, 1.4vw, 20px);
  border: 1px solid var(--utc-line);
  border-radius: var(--utc-radius);
  background: #fff;
}

.utc-card .sk-product { display: flex; flex-direction: column; height: 100%; min-width: 0; overflow-wrap: anywhere; }
.utc-card .sk-product-visual {
  display: grid;
  height: clamp(150px, 14.5vw, 210px);
  align-items: center;
  justify-items: center;
  margin-bottom: 12px;
}

.utc-card .sk-product-visual img { display: block; width: 100%; height: 100%; max-height: 100%; min-height: 0; object-fit: contain; }
.utc-card .sk-product-wordmark { font-size: 25px; font-weight: 800; letter-spacing: .08em; color: #627983; }
.utc-card .sk-product-copy { display: flex; flex: 1; flex-direction: column; }
.utc-card .sk-product-copy h2 { margin: 0 0 8px !important; color: var(--utc-ink) !important; font-size: 17px !important; line-height: 1.45 !important; }
.utc-card .sk-variant { margin: 0 0 8px !important; color: var(--utc-muted); font-size: 14px; }
.utc-card .sk-variant:empty { display: none; }
.utc-card .sk-spec { margin-bottom: 8px; font-size: 14px; line-height: 1.7; }
.utc-card .sk-spec summary { min-height: 44px; align-content: center; color: var(--utc-accent); font-weight: 650; cursor: pointer; }
.utc-card .sk-spec > div { margin-bottom: 12px; max-height: 360px; overflow: auto; white-space: pre-wrap; color: var(--utc-muted); }
#skin_wrapper .ut-catalogue .sk-enquiry { display: flex; align-items: center; min-height: 44px; margin-top: auto; border-top: 1px solid var(--utc-line); color: var(--utc-accent); font-size: 14px; font-weight: 650; }
#skin_wrapper .ut-catalogue .sk-enquiry:hover { text-decoration: underline; }

@media (max-width: 1120px) {
  .utc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .utc-range-pane .sk-range { grid-column: span 3; }
}

@media (max-width: 700px) {
  .utc-hero-layout, .utc-layout { grid-template-columns: minmax(0, 1fr); }
  .utc-intro h1 { max-width: none; }
  .utc-brand-pane .sk-logo { width: 165px; margin-bottom: 12px; }
  .utc-intro > p { margin-bottom: 16px !important; }
  .ut-catalogue .bn-tree { max-height: 380px; overflow: auto; }
}

@media (max-width: 460px) {
  .utc-grid { grid-template-columns: minmax(0, 1fr); }
  .utc-range-pane .sk-range,
  .utc-range-pane .sk-range:first-child:nth-last-child(2),
  .utc-range-pane .sk-range:first-child:nth-last-child(2) + .sk-range { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: no-preference) {
  .utc-intro { animation: utc-enter .36s ease-out; }
  @keyframes utc-enter {
    from { opacity: .66; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  #skin_wrapper .ut-catalogue :is(.utc-button, .sk-range) { transition: none; transform: none; }
}
