/* Shared two-line navigation and range entrances, using the design.md tokens. */
.hered-product-menu { width: 660px; max-width: calc(100vw - 64px); padding: 24px; left: -160px; }
.hered-nav-group:not(.hered-menu-enhanced):is(:hover, :focus-within) > .hered-product-menu,
.hered-nav-group.is-open > .hered-product-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.hered-nav-group.hered-menu-enhanced:not(.is-open):is(:hover, :focus-within) > .hered-product-menu { display: none; }
.hered-product-menu__line { min-width: 0; }
.hered-product-menu__line + .hered-product-menu__line { border-left: 1px solid var(--hered-line); padding-left: 24px; }
.hered-product-menu ul { list-style: none; padding: 8px 0 0; margin: 0; }
.hered-product-menu li { margin: 0; }
.hered-product-menu .hered-product-menu__title { display: flex; justify-content: space-between; gap: 12px; padding: 10px 8px 16px; border-bottom: 2px solid var(--hered-blue); font-size: 16px; color: var(--hered-blue) !important; }
.hered-product-menu__line ul a { font-size: 14px; font-weight: 400; padding: 11px 8px; min-height: 44px; }
.hered-sensor-symbol { display: block; width: 100%; height: 100%; max-width: 220px; max-height: 220px; color: var(--hered-blue); }
.hered-line-entries { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.hered-line-entry { display: flex; align-items: stretch; min-width: 0; text-decoration: none; color: var(--hered-ink); border: 1px solid var(--hered-line); border-radius: 6px; overflow: hidden; background: #fff; transition: border-color .18s, box-shadow .18s; }
.hered-line-entry:hover { border-color: var(--hered-blue); box-shadow: 0 10px 28px #0926500a; color: var(--hered-ink); }
.hered-line-entry__media { width: 38%; min-width: 0; flex-shrink: 0; display: grid; place-items: center; padding: 18px; background: var(--hered-soft); }
.hered-line-entry__media img { width: 100%; height: 100%; max-height: 230px; object-fit: contain; }
.hered-line-entry__copy { padding: 28px 24px; display: flex; flex-direction: column; flex: 1; }
.hered-line-entry h3 { font-size: 24px; line-height: 1.25; margin: 0 0 16px; }
.hered-line-entry p { color: var(--hered-muted); font-size: 14px; margin-bottom: 24px; line-height: 1.7; }
.hered-line-entry__copy > span { margin-top: auto; display: flex; justify-content: space-between; gap: 12px; color: var(--hered-blue); font-size: 14px; font-weight: 500; }
.hered-directory-entries { padding-top: 48px; }
.hered-sidebar-lines { border-bottom: 1px solid var(--hered-line); padding: 8px; }
.hered-sidebar-lines a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; color: var(--hered-blue); padding: 10px 8px; text-decoration: none; }
.hered-sidebar-lines a:hover { background: var(--hered-soft); }
.hered-directory-line + .hered-directory-line { margin-top: 32px; }
.hered-directory-line > h3 { margin: 0 0 18px; font-size: 20px; }
.hered-directory-line > h3 a { color: var(--hered-ink); text-decoration: none; }
.hered-directory-line > h3 a:hover { color: var(--hered-blue); }
.hered-range-label { font-size: 11px; font-weight: 500; color: var(--hered-muted); margin: 0 0 10px; line-height: 1.4; }
.hered-home-family__media { display: grid; place-items: center; }
.hered-home-family__media .hered-sensor-symbol { padding: 12px; }
.hered-home .hered-home-category-heading { margin-top: 56px; }
.hered-home .hered-range-browse-title { margin: 0; font-size: 22px; font-weight: 500; color: var(--hered-ink); }

/* Hero: existing pneumatic photograph with a distinct sensing diagram panel. */
.hered-home .hered-home-hero--automation { background: var(--hered-soft); }
.hered-home-hero--automation .hered-home-hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; min-height: 610px; padding-block: 64px 100px; }
.hered-home-hero--automation .hered-home-hero__copy { max-width: none; min-width: 0; }
.hered-home-hero--automation h1 span { display: block; }
.hered-home .hered-home-hero--automation h1 { font-size: clamp(36px,4.1vw,54px); line-height: 1.12; }
.hered-home-hero--automation .hered-home-hero__lead { font-size: 20px; max-width: none; }
.hered-home-hero__description { color: var(--hered-muted); margin: 18px 0 0; font-size: 16px; max-width: 480px; line-height: 1.8; }
.hered-home-hero--automation .hered-actions { gap: 12px; }
.hered-home-hero--automation .hered-button { padding-inline: 18px; gap: 14px; }
.hered-home-automation-stage { display: grid; gap: 16px; min-width: 0; }
.hered-home-automation-stage > a { display: flex; flex-direction: column; border: 1px solid var(--hered-line); border-radius: 6px; background: #fff; padding: 20px 24px; text-decoration: none; color: var(--hered-ink); }
.hered-home-automation-stage > a:hover { border-color: var(--hered-blue); }
.hered-home-stage-label { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 14px; font-weight: 500; }
.hered-home-stage-label > span { color: var(--hered-blue); font-size: 18px; }
.hered-home-stage-pneumatics > img { width: 100%; height: 220px; object-fit: contain; }
.hered-home-automation-stage .hered-home-stage-sensors { background: #e9f0fa; }
.hered-home-stage-symbols { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.hered-home-stage-symbols .hered-sensor-symbol { max-height: 98px; }
.hered-home-stage-caption { color: var(--hered-muted); font-size: 12px; }

/* Selection hubs keep real category URLs and show only genuine published models. */
.hered-line-hero .hered-actions { margin-top: 28px; gap: 24px; }
.hered-line-hero .hered-text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.hered-line-content { padding-block: 48px 80px; }
.hered-line-jumps { display: flex; gap: 10px; flex-wrap: wrap; padding-bottom: 40px; }
.hered-line-jumps a { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 16px; border: 1px solid var(--hered-line); border-radius: 3px; text-decoration: none; font-size: 14px; background: #fff; }
.hered-line-jumps a:hover { background: var(--hered-soft); border-color: var(--hered-blue); }
.hered-line-range { padding-block: 48px; border-top: 1px solid var(--hered-line); scroll-margin-top: 130px; }
.hered-line-range:last-child { padding-bottom: 0; }
.hered-line-range__intro { display: grid; grid-template-columns: minmax(0,.65fr) minmax(0,1.35fr); gap: 48px; align-items: start; }
.hered-line-range__media { display: grid; place-items: center; min-height: 260px; aspect-ratio: 4/3; background: var(--hered-soft); border: 1px solid var(--hered-line); border-radius: 6px; padding: 24px; }
.hered-line-range__media > img { width: 100%; height: 100%; object-fit: contain; }
.hered-line-range__intro h2 { font-size: clamp(26.4px,2.8vw,38.4px); margin-bottom: 20px; }
.hered-line-range__intro p { color: var(--hered-muted); line-height: 1.8; }
.hered-line-range__intro .hered-line-selection-label { margin: 24px 0 12px; font-size: 14px; color: var(--hered-ink); font-weight: 500; }
.hered-line-selection { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 28px; margin: 0 0 24px; padding-left: 20px; font-size: 14px; color: var(--hered-muted); }
.hered-line-selection li { padding-left: 2px; line-height: 1.65; }
.hered-line-range__intro .hered-actions { gap: 20px; }
.hered-line-range__intro .hered-text-link { font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }
.hered-line-category-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hered-line-category-links a { display: inline-flex; align-items: center; gap: 18px; min-height: 46px; padding: 10px 14px; background: var(--hered-soft); border: 1px solid var(--hered-line); border-radius: 3px; text-decoration: none; font-size: 14px; }
.hered-line-category-links a:hover { border-color: var(--hered-blue); background: #fff; }
.hered-line-range > .hered-product-grid { margin-top: 28px; }

@media (max-width:1100px) {
  .hered-home-hero--automation .hered-home-hero__inner { gap: 36px; }
  .hered-line-entry__copy { padding: 24px 20px; }
  .hered-line-entry__media { width: 33%; padding: 12px; }
}
@media (max-width:900px) {
  .hered-product-menu { width: 100%; max-width: none; padding: 18px; }
  .hered-nav-group:not(.is-open):is(:hover,:focus-within) > .hered-product-menu { display: none; }
  .hered-nav-group.is-open > .hered-product-menu { display: grid; }
  .hered-product-menu__line ul a { min-height: 44px; padding: 10px 8px; }
  .hered-line-entry { flex-direction: column; }
  .hered-line-entry__media { width: 100%; height: 180px; }
  .hered-line-entry__copy { flex: 1; }
  .hered-line-entry h3 { font-size: 22px; }
  .hered-home-hero--automation .hered-home-hero__inner { gap: 28px; }
  .hered-home-stage-pneumatics > img { height: 190px; }
  .hered-home-automation-stage > a { padding: 18px; }
  .hered-home-stage-symbols { gap: 8px; }
  .hered-line-range__intro { gap: 30px; }
}
@media (max-width:767px) {
  .hered-home-hero--automation .hered-home-hero__inner { grid-template-columns: minmax(0,1fr); padding-block: 40px 36px; gap: 32px; min-height: 0; }
  .hered-home .hered-home-hero--automation h1 { font-size: clamp(32px,6.5vw,46px); }
  .hered-home-hero--automation .hered-home-hero__lead { font-size: 18px; }
  .hered-home-hero__description { font-size: 15px; margin-top: 14px; }
  .hered-home-automation-stage { grid-template-columns: 1fr 1fr; align-items: stretch; gap: 12px; }
  .hered-home-automation-stage > a { padding: 16px; }
  .hered-home-stage-pneumatics > img { height: 150px; }
  .hered-home-stage-symbols { grid-template-columns: minmax(0,1fr); margin-top: 8px; }
  .hered-home-stage-symbols .hered-sensor-symbol { max-height: 120px; }
  .hered-home-stage-symbols .hered-sensor-symbol:not(:nth-child(2)) { display: none; }
  .hered-home-stage-caption { margin-top: auto; font-size: 11px; }
  .hered-home-stage-label { font-size: 12px; align-items: flex-start; }
  .hered-line-entry__copy { padding: 24px 20px; }
  .hered-home .hered-home-category-heading { margin-top: 36px; }
  .hered-directory-entries { padding-top: 32px; }
  .hered-line-content { padding-block: 32px 48px; }
  .hered-line-range { padding-block: 36px; scroll-margin-top: 110px; }
  .hered-line-range__intro { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .hered-line-range__media { min-height: 0; max-height: 280px; }
  .hered-line-jumps { padding-bottom: 28px; }
}
@media (max-width:540px) {
  .hered-nav-group.is-open > .hered-product-menu { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .hered-product-menu__line + .hered-product-menu__line { border-left: 0; padding-left: 0; }
  .hered-line-entries { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .hered-line-entry { display: grid; grid-template-columns: minmax(0,.7fr) minmax(0,1.3fr); }
  .hered-line-entry__media { height: auto; min-height: 180px; padding: 10px; }
  .hered-line-entry__copy { padding: 22px 16px; }
  .hered-line-entry h3 { font-size: 21px; }
  .hered-line-entry p { font-size: 13px; }
  .hered-line-entry__copy > span { font-size: 13px; }
  .hered-home-hero--automation .hered-home-hero__inner { gap: 28px; }
  .hered-home-hero--automation .hered-button { padding-inline: 14px; gap: 9px; font-size: 13px; }
  .hered-home-stage-pneumatics > img { height: 125px; }
  .hered-home-automation-stage > a { padding: 12px; }
  .hered-home-stage-symbols .hered-sensor-symbol { max-height: 96px; }
  .hered-home .hered-home-family h3 { overflow-wrap: anywhere; }
  .hered-line-selection { grid-template-columns: minmax(0,1fr); gap: 9px; }
  .hered-line-jumps a { padding-inline: 12px; font-size: 13px; }
}
@media (prefers-reduced-motion:reduce) { .hered-line-entry { transition: none; } }
