/* Industry pages share the SYRIVA palette, typography and document actions. */

.industry-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 10px;
  margin-block: 4px 8px;
  color: var(--muted);
  font-size: var(--text-ui);
}

.industry-breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--rose);
}

.industry-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 3.5vw, 48px);
  padding: clamp(24px, 3.6vw, 52px);
  border-radius: var(--panel-radius);
  background: var(--rose-petal);
}

.industry-hero-with-photo {
  grid-template-columns: minmax(0, 1fr) clamp(235px, 28vw, 360px);
  padding: clamp(16px, 2.1vw, 30px);
}

.industry-hero-with-photo .industry-hero-copy {
  padding-inline-start: clamp(0px, 1.65vw, 24px);
}

.industry-hero h1 {
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  line-height: 1.22;
  text-wrap: pretty;
}

.industry-hero-description {
  max-width: 46ch;
  margin-top: 13px;
  color: var(--muted);
  font-size: var(--text-body);
}
.industry-hero .button { margin-top: 18px; }

.industry-hero .industry-photo {
  grid-column: auto;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--card-radius);
  background-size: 300% 200%;
  background-position: var(--photo-x) 0%;
}

.industry-hero :is(.industry-photo-plant, .industry-photo-dairy, .industry-photo-sauces) {
  background-position-y: 100%;
}

.industry-switcher {
  margin-block: 20px 0;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.industry-switcher ul, .industry-product-list, .industry-product-examples ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.industry-switcher ul { display: flex; flex-wrap: wrap; gap: 8px; }
.industry-switcher a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--rose-deep);
  font-size: var(--text-meta);
  font-weight: 650;
  text-decoration: none;
}
.industry-switcher a:hover { border-color: var(--rose); text-decoration: underline; }
.industry-switcher a[aria-current="page"] {
  border-color: var(--rose);
  background: var(--rose);
  color: var(--white);
}

.industry-products { padding-block: clamp(26px, 3.5vw, 52px) clamp(42px, 5vw, 72px); }
.industry-products h2 { margin-bottom: 14px; }
.industry-example-help { margin: -6px 0 14px; color: var(--muted); font-size: var(--text-ui); }
.industry-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.industry-tools .search-field { flex: 0 1 540px; }
.industry-tools .spec-filter { padding-inline: 0; }
.industry-products .result-bar { margin-top: 12px; }
#industry-clear {
  min-height: 44px;
  padding: 6px 8px;
  border: 0;
  background: transparent;
  color: var(--rose);
  font-size: var(--text-ui);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.industry-product-list { border-top: 1px solid var(--line); }

.industry-product {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.45fr) minmax(154px, 17%);
  align-items: start;
  gap: clamp(14px, 3vw, 42px);
  padding: clamp(16px, 2vw, 28px) max(4px, 1vw);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 20px;
}
.industry-product:target { border-radius: var(--control-radius); background: var(--rose-silk); }
.industry-product-main h3 { font-size: var(--text-item); line-height: 1.4; text-wrap: pretty; }
.industry-product-category {
  margin-top: 4px;
  color: var(--rose);
  font-size: var(--text-meta);
  font-weight: 650;
}
.industry-product-example-label { color: var(--muted); font-size: var(--text-meta); font-weight: 650; }
.industry-product-examples ul { display: flex; flex-wrap: wrap; gap: 5px 7px; margin-top: 5px; }
.industry-product-examples li {
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--rose-silk);
  color: var(--ink);
  font-size: var(--text-ui);
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.industry-product:target .industry-product-examples li { background: var(--paper); }
.industry-product-examples .application-example.is-interactive {
  max-width: 100%;
  padding: 0;
  background: transparent;
}

.application-example-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 32px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  color: var(--rose-deep);
  line-height: 1.45;
  text-align: left;
  transition: background-color var(--speed), border-color var(--speed);
}

.application-example-button:hover {
  border-color: var(--rose);
  background: var(--rose-silk);
}

.application-example-button > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.application-example-symbol {
  position: relative;
  display: grid;
  flex: 0 0 16px;
  place-items: center;
  height: 16px;
  border-radius: 50%;
  background: var(--rose-petal);
  color: var(--rose);
}

.application-example-symbol::before,
.application-example-symbol::after {
  position: absolute;
  width: 7px;
  height: 1px;
  background: currentColor;
  content: '';
}

.application-example-symbol::after { transform: rotate(90deg); }

#application-dialog { width: min(820px, calc(100% - 28px)); }
.application-panel {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 244px), 1fr));
  align-items: center;
  gap: clamp(16px, 3vw, 30px);
  padding: clamp(17px, 3vw, 28px);
}

.application-panel .detail-close { z-index: 1; }
.application-figure { margin: 0; }
.application-photo-frame {
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: var(--card-radius);
  background: var(--rose-silk);
}

.application-photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.application-figure figcaption { margin-top: 7px; color: var(--muted); font-size: var(--text-meta); }
.application-copy { padding: 32px 0 16px; }
.application-copy h2 { overflow-wrap: anywhere; }
.application-ingredient {
  margin: 10px 0 17px;
  color: var(--rose);
  font-size: var(--text-ui);
  font-weight: 700;
}

#application-description { color: var(--ink); font-size: var(--text-body); }
.application-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 6px;
  margin-top: 22px;
}
.application-actions .button { gap: 8px; padding-inline: 11px; }

.industry-product-action { align-self: center; justify-self: end; }
.industry-product-action .spec-link { min-width: 0; border-color: var(--line); }
.industry-product-action .spec-link:hover { border-color: var(--rose); }
.industry-spec-request { padding-inline: 10px; }
#industry-empty { margin-top: 12px; }

@media (max-width: 820px) {
  .industry-tools .search-field { flex: 1 1 300px; }
  .industry-product { grid-template-columns: minmax(0, .8fr) minmax(0, 1.25fr) minmax(146px, 17%); column-gap: 12px; }
}

@media (max-width: 620px) {
  .industry-breadcrumb { margin-top: 0; font-size: var(--text-meta); }
  .industry-hero-with-photo { grid-template-columns: minmax(0, 1fr); }
  .industry-hero-with-photo .industry-hero-copy { padding: 5px 4px 0; }
  .industry-hero .industry-photo {
    justify-self: center;
    max-width: 360px;
  }
  .industry-switcher { margin-top: 14px; padding-bottom: 14px; }
  .industry-switcher ul { gap: 5px; }
  .industry-switcher a { padding-inline: 10px; }
  .industry-tools .search-field { flex-basis: 100%; }
  .industry-product { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .industry-product-action { justify-self: start; }
  .industry-spec-request { padding-inline: 0; }
}

@media (max-width: 560px) {
  .application-panel { padding-top: 60px; }
  .application-photo-frame { aspect-ratio: 4 / 3; max-height: min(42dvh, 300px); }
  .application-copy { padding: 0 0 4px; }
  .application-ingredient { margin-bottom: 12px; }
  .application-actions { margin-top: 18px; }
}

@media (max-width: 620px), (pointer: coarse) {
  .application-example-button { min-height: 44px; }
}

@media (forced-colors: active) {
  .industry-switcher a[aria-current="page"] { outline: 1px solid Highlight; }
  .industry-product:target { outline: 2px solid Highlight; }
  .application-example-button { color: ButtonText; border-color: ButtonText; }
}
