/*
Theme Name: Yession Child
Theme URI: https://yession.com/
Description: Yession Child Theme for the YESSION official site, benchmarked against Freudenberg. Primary #004388 / eyebrow #00A6E2 / light #f2f5f9 / red #df342e / footer navy #002f57 / body gray #5a6472. Responsive breakpoints 768/1024/1280. Author: Yession
Author URI: https://yession.com/
Template: generatepress
Version: 2.0.100
Text Domain: yession
*/

/* ===== Base ===== */
:root {
  --yp-blue: #004388;
  --yp-sky: #00a6e2;
  --yp-eyebrow: #00A6E2;
  --yp-light: #f2f5f9;
  --yp-red: #df342e;
  --yp-navy: #002f57;
  --yp-text: #101820;
  --yp-body: #5a6472;
  --yp-muted: #6b7a8c;
  --yp-white: #ffffff;
  --yp-border: #e3e9ef;
  --yp-font: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

body {
  font-family: var(--yp-font);
  color: var(--yp-body);
  background: var(--yp-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html { overflow-x: hidden; }

h1, h2, h3, h4, h5, h6 { font-family: var(--yp-font); color: var(--yp-text); }

/* Override GeneratePress fixed-width containers (1150/970/1170px): full-width responsive, shrink on narrow screens, 1440 centered */
.container {
  width: 100% !important;
  max-width: 1440px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 24px;
}

a { color: var(--yp-blue); }

img { max-width: 100%; height: auto; }

/* ===== Top nav (Tesla-style) ===== */
.yp-header {
  background: var(--yp-white);
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 1px 8px rgba(0,0,0,.05);
  padding-top: env(safe-area-inset-top, 0px);
}
.yp-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: none;
  padding: 0 48px;
  height: 84px;
}
.yp-header-inner > .yp-logo { flex: none; }
.yp-logo { display: flex; align-items: center; }
.yp-logo img { height: 44px; width: auto; display: block; }
.yp-logo .yp-logo-light { display: none; }
.yp-logo-text { margin-left: 12px; line-height: 1.1; }
.yp-logo-text strong { display: block; font-size: 17px; color: var(--yp-blue); font-weight: 800; letter-spacing: .5px; }
.yp-logo-text span { display: block; font-size: 10px; color: var(--yp-muted); letter-spacing: 2.2px; text-transform: uppercase; }

.yp-nav {
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  display: flex; align-items: center;
  justify-content: center;
  pointer-events: none;
}
.yp-menu { pointer-events: auto; }
/* Menu bottom search + language row: hidden globally by default (shown when mobile menu opens) */
.yp-menu-extra { display: none; }
.yp-nav-actions { pointer-events: auto; }
.yp-menu { display: flex; list-style: none; margin: 0; padding: 0; }
.yp-menu li { position: relative; }
.yp-menu li a {
  display: block;
  padding: 25px 24px;
  font-size: 16px;
  color: var(--yp-text);
  text-decoration: none;
  font-weight: 600;
  transition: color .15s;
}
.yp-menu li a:hover,
.yp-menu li.current-menu-item > a { color: var(--yp-blue); }
.yp-menu li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  border-right: 2px solid var(--yp-muted);
  border-bottom: 2px solid var(--yp-muted);
  transform: rotate(45deg) translateY(-2px);
  margin-left: 8px;
}
.yp-submenu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: var(--yp-white);
  min-width: 250px;
  box-shadow: 0 8px 24px rgba(0,30,60,.12);
  padding: 10px 0;
  list-style: none;
  margin-left: 0;
}
.yp-menu li:hover > .yp-submenu { display: block; }
/* Desktop hover: Industries old dropdown taken over by mega panel */
@media (min-width: 1025px) { .yp-menu li.menu-item-has-children > .yp-submenu { display: none !important; } }
@media (hover: hover) {
  .yp-menu li.menu-item-has-children:hover > .yp-submenu { display: block !important; }
  /* Mega 面板打开时（li.mega-open）：隐藏文字子菜单避免双框；JS 未加载时文字下拉兜底显示 */
  .yp-menu li.mega-open:hover > .yp-submenu {
    display: none !important;
  }
}
.yp-submenu a { padding: 10px 18px; font-size: 13.5px; border-bottom: none; }
.yp-submenu a:hover { background: var(--yp-light); color: var(--yp-blue); }

/* ===== Mega menu (Industries) - Tesla-style ===== */
.yp-mega {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--yp-white);
  box-shadow: 0 16px 32px rgba(0,30,60,.10);
  z-index: 998;
}
.yp-mega.open {
  display: block;
  animation: yp-mega-in .18s ease-out;
}
@keyframes yp-mega-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.yp-mega-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 48px 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
}
.yp-mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
}
.yp-mega-item {
  display: block;
  text-decoration: none;
  color: var(--yp-text);
  transition: transform .15s ease;
}
.yp-mega-item:hover { transform: translateY(-3px); }
.yp-mega-thumb {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: var(--yp-light);
  aspect-ratio: 16 / 9;
  min-height: 90px;
  box-shadow: 0 2px 10px rgba(0,30,60,.08);
}
.yp-mega-thumb img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.yp-mega-item:hover .yp-mega-thumb img { transform: scale(1.05); }
.yp-mega-name {
  display: block;
  margin-top: 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--yp-blue);
  letter-spacing: .2px;
}
.yp-mega-aside {
  padding-top: 6px;
  border-left: 1px solid var(--yp-border);
  padding-left: 40px;
}
.yp-mega-aside h3 {
  font-size: 22px;
  line-height: 1.25;
  color: var(--yp-navy);
  margin: 10px 0 14px;
  font-weight: 700;
}
.yp-mega-aside p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--yp-body);
  margin: 0 0 22px;
}
.yp-header .yp-mega .yp-mega-cta { display: inline-block; background: #0057B8; color: #ffffff; padding: 12px 28px; border-radius: 999px; font-size: 15px; font-weight: 500; text-decoration: none; margin-top: 18px; line-height: 1.4; transition: background .25s ease; } .yp-header .yp-mega .yp-mega-cta:hover { background: #00A6E2; color: #111; }

/* Background blur while mega menu is open */
body.yp-blur #content.yp-main { filter: blur(4px); transition: filter .25s ease; }
body.yp-blur #content.yp-main * { pointer-events: none; }

.yp-nav-actions {
  display: flex; align-items: center;
  margin-left: 18px;
  position: absolute; right: 48px;
}
.yp-search-btn {
  width: 38px; height: 38px;
  border: none !important; outline: none;
  background: transparent !important;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--yp-blue);
  transition: color .15s;
}
.yp-search-btn:hover {
  color: var(--yp-sky);
  background: transparent !important;
  border: none !important;
}
.yp-search-btn:focus,
.yp-search-btn:focus-visible {
  outline: none; color: var(--yp-sky);
  background: transparent !important;
  border: none !important;
}
.yp-search-btn svg {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px;
}
.yp-lang-switch {
  position: relative;
  margin-left: 12px;
  white-space: nowrap;
}
.yp-lang-toggle {
  display: flex; align-items: center; gap: 8px;
  background: var(--yp-light);
  border: none; outline: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 3px 16px 3px 3px;
  font-size: 14px; font-weight: 700; color: var(--yp-text);
  letter-spacing: .5px;
  transition: background .15s, box-shadow .15s;
}
.yp-lang-toggle:hover { background: #e8eef5; }
.yp-lang-toggle:focus,
.yp-lang-toggle:focus-visible { outline: none; box-shadow: none; }
.yp-lang-globe {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--yp-blue);
  color: #fff;
  padding: 5px;
  box-sizing: border-box;
  display: block;
}
.yp-lang-caret { color: var(--yp-muted); transition: transform .15s; }
.yp-lang-switch.open .yp-lang-caret { transform: rotate(180deg); }
.yp-lang-dropdown {
  display: none;
  position: absolute; top: 100%; right: 0;
  background: var(--yp-white);
  min-width: 60px;
  box-shadow: 0 8px 24px rgba(0,30,60,.12);
  padding: 6px 0;
  margin: 0; list-style: none;
  z-index: 999;
  text-align: center;
}
.yp-lang-switch.open .yp-lang-dropdown { display: block; }
.yp-lang-dropdown a {
  display: block; padding: 7px 14px;
  font-size: 12.5px; letter-spacing: .4px;
  font-weight: 600;
  color: var(--yp-text); text-decoration: none;
}
.yp-lang-dropdown a:hover { background: #e8eef5; color: var(--yp-text); }
.yp-lang-dropdown a.active { background: transparent; color: var(--yp-blue); font-weight: 700; }

/* Search overlay (Tesla-style: full-screen dim + top 15vh centered light rounded input) */
.yp-search-panel {
  display: none;
  position: fixed; top:0;left:0;right:0;bottom:0;
  z-index: 2000;
  background: rgba(10, 15, 25, 0.55);
  justify-content: center;
  padding: 0 20px;
}
.yp-search-panel.open { display: flex; }
.yp-search-form {
  width: min(700px, 100%);
  margin-top: 15vh;
}
.yp-search-form input[type="search"] {
  width: 100%;
  border: 1px solid #bfd2e0;
  border-radius: 8px;
  background: var(--yp-white);
  padding: 16px 20px;
  font-size: 16px;
  color: var(--yp-text);
  outline: none;
  box-shadow: 0 24px 70px rgba(0,0,0,.25);
}
.yp-search-form input[type="search"]:focus { border-color: #bfd2e0; }
.yp-search-form input[type="search"]::placeholder { color: #8aa0b0; }

/* Hamburger button (hidden by default, shown on mobile) */
.yp-burger {
  display: none;
  width: 40px; height: 40px;
  margin-left: 10px;
  border: none; outline: none;
  background: none;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; cursor: pointer;
}
.yp-burger:focus,
.yp-burger:focus-visible { outline: none; }
.yp-burger span { display: block; width: 20px; height: 2px; background: var(--yp-blue); }

/* ===== Hero (video) ===== */
.yp-hero { position: relative; background: #0b1622; overflow: hidden; }
.yp-hero video, .yp-hero .yp-hero-poster {
  position: absolute; top:0;left:0;right:0;bottom:0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .7s ease;
}
.yp-hero.yp-video-live video, .yp-hero.yp-video-live .yp-hero-poster { opacity: 1; }
.yp-hero-overlay {
  position: relative;
  z-index: 2;
  min-height: clamp(540px, calc(100vh - 240px), 860px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  width: 100% !important;
  max-width: 1440px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: clamp(64px, 9vh, 120px) 20px clamp(48px, 6vh, 80px);
  box-sizing: border-box;
}
.yp-hero-title {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 700;
  color: var(--yp-blue);
  line-height: 1.15;
  letter-spacing: .4px;
  transition: color .5s ease;
}
.yp-hero.yp-video-live .yp-hero-title {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,20,50,.35);
}
.yp-hero-sub {
  margin: clamp(10px, 1.4vh, 16px) 0 0;
  color: var(--yp-blue);
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 400;
  transition: color .5s ease;
}
.yp-hero.yp-video-live .yp-hero-sub {
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 6px rgba(0,20,50,.3);
}
.yp-hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.4vw, 16px);
  margin-top: clamp(18px, 2.6vh, 30px);
  flex-wrap: wrap;
}
.yp-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: clamp(10px, 1.2vw, 14px) clamp(26px, 3.6vw, 42px);
  background: #fff;
  color: #0a1420;
  font-size: clamp(13px, 0.95vw, 15px);
  font-weight: 500;
  letter-spacing: .3px;
  border-radius: 999px;
  border: 1px solid rgba(10,20,32,.08);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,20,40,.14);
  transition: background .3s ease, transform .3s ease, box-shadow .3s ease;
  white-space: nowrap;
}
.yp-hero-cta:hover {
  background: #f2f6fb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,20,40,.18);
}
.yp-hero-cta-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.85);
  box-shadow: none;
}
.yp-hero-cta-ghost:hover {
  background: rgba(255,255,255,.14);
  color: #fff;
  box-shadow: none;
}
/* Mobile Hero title block (Freudenberg-style: hidden by default, shown at <=1024px in white area under arc) */
.yp-hero-mobile { display: none; }
.yp-hero-mobile-ctas { display: none; }
.yp-hero:not(.yp-video-live) .yp-hero-cta {
  background: #fff;
  color: #0a1420;
  border-color: rgba(10,20,32,.12);
}
.yp-hero:not(.yp-video-live) .yp-hero-cta:hover {
  background: #eef3f9;
}
.yp-hero:not(.yp-video-live) .yp-hero-cta-ghost {
  background: transparent;
  color: var(--yp-blue);
  border-color: rgba(0,67,136,.55);
}
.yp-hero:not(.yp-video-live) .yp-hero-cta-ghost:hover {
  background: rgba(0,67,136,.07);
}
.yp-hero.yp-video-live .yp-hero-cta {
  background: #fff;
  color: #0a1420;
  border-color: rgba(255,255,255,.25);
}
.yp-hero.yp-video-live .yp-hero-cta-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.85);
}
.yp-hero.yp-video-live .yp-hero-cta-ghost:hover {
  background: rgba(255,255,255,.14);
}
.yp-hero-explore {
  position: absolute;
  right: 28px; bottom: 150px;
  z-index: 3;
  writing-mode: vertical-rl;
  color: var(--yp-blue);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  display: flex; align-items: center; gap: 10px;
  transition: color .5s ease;
}
.yp-hero.yp-video-live .yp-hero-explore { color: rgba(255,255,255,.85); }
.yp-hero-explore::after {
  content: '';
  width: 32px; height: 1px;
  background: rgba(0, 67, 136, .45);
  transition: background .5s ease;
}
.yp-hero.yp-video-live .yp-hero-explore::after { background: rgba(255,255,255,.6); }

/* ===== Big number arc (top convex into Hero, matching Freudenberg concave arc) ===== */
.yp-arc-wrap { position: relative; margin-top: -100px; z-index: 4; }
.yp-arc-svg { display: block; width: 100%; height: 100px; }.yp-arc {
  background: var(--yp-white);
  padding: 20px 24px 8px;
}.yp-stats {
  max-width: 1100px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  min-width: 0;
}
.yp-stat {
  text-align: center;
  padding: 20px 18px 26px;
  border-right: 2px solid rgba(0, 67, 136, 0.45);
  min-width: 0;
}
.yp-stat:last-child { border-right: none; }
.yp-stat-main { display: flex; align-items: center; justify-content: center; gap: 12px; min-width: 0; }
.yp-stat-icon { display: flex; align-items: center; flex-shrink: 0; }
.yp-stat-icon svg { width: 30px; height: 30px; }
.yp-stat-num {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 900;
  color: var(--yp-blue);
  line-height: 1;
  white-space: nowrap;
  min-width: 0;
}
.yp-stat-label {
  font-size: 18px;
  color: var(--yp-blue);
  margin-top: 10px;
  letter-spacing: 0;
  text-transform: uppercase;
  font-weight: 600;
}

/* ===== Generic blocks ===== */
.yp-section { padding: 48px 0; }
.yp-section-light { background: var(--yp-light); }
.yp-eyebrow {
  display: inline-block;
  font-size: clamp(15px, 1.4vw, 20px);
  font-weight: 700;
  color: var(--yp-eyebrow);
  text-transform: uppercase;
  letter-spacing: 2.4px;
  margin-bottom: 14px;
}
.yp-h2 {
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 900;
  color: var(--yp-text);
  line-height: 1.15;
  margin: 0 0 40px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.yp-h2-center { text-align: center; }
.yp-eyebrow-center { display: block; text-align: center; }
.yp-section-sub {
  font-size: 15px;
  color: var(--yp-body);
  line-height: 1.7;
  max-width: 760px;
  margin: -24px auto 40px;
}

/* ===== Three cards (Freudenberg teaser style) ===== */
.yp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.yp-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px;
  text-decoration: none;
  transition: transform .3s;
}
.yp-card:hover { transform: translateY(-2px); }
/* 左下蓝色装饰块（Freudenberg bg-secondary rounded-lg） */
.yp-card-ornament {
  position: absolute; left: 0; bottom: 0;
  width: 75%; height: 75%;
  background: #00A6E2;
  border-radius: 12px;
  z-index: 0;
}
/* 图片层：1:1 圆角、底部对齐，露出装饰块形成底部/左侧蓝框 */
.yp-card-img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.yp-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .5s; }
.yp-card:hover .yp-card-img img { transform: scale(1.05); filter: brightness(1.08); }
/* 底部深蓝渐变遮罩 */
.yp-card-shade {
  position: absolute; left: 0; right: 0; bottom: 0; top: 100px;
  background: linear-gradient(to top, rgba(6,42,79,.92) 0%, rgba(0,67,136,0) 100%);
  border-radius: 0 0 12px 12px;
}
/* 图片上文字：白色大标题 + 蓝色分隔线 + 副标题 */
.yp-card-cap {
  position: absolute; left: 0; right: 0; bottom: 2rem;
  text-align: center; color: #fff; z-index: 2;
  padding: 0 14px;
}
.yp-card-title {
  display: block;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(21px, 2vw, 32px);
  line-height: 1.1;
  letter-spacing: .5px;
}
.yp-card-rule {
  display: block;
  width: 110px; max-width: 70%;
  height: 2px;
  background: #00A6E2;
  border: 0;
  margin: 8px auto;
}
.yp-card-sub { display: block; font-size: 14px; font-weight: 600; line-height: 1.4; }
.yp-card-dots { display: none; }

/* ===== Six industries (Freudenberg style) ===== */
#industries { background: #fff; }
.yp-ind-head { text-align: center; max-width: 780px; margin: 0 auto 46px; }
.yp-ind-title {
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 900;
  color: #004388;
  text-transform: uppercase;
  letter-spacing: .5px;
  line-height: 1.1;
  margin: 0 0 6px;
}
.yp-ind-sub {
  font-size: clamp(18px, 2vw, 24px);
  color: #00A6E2;
  font-weight: 700;
  margin: 0 0 18px;
}
.yp-ind-intro {
  font-size: 15px;
  color: #555;
  line-height: 1.75;
  margin: 0;
}
.yp-industries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.yp-industry {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 3/2;
  min-height: 140px;
  min-width: 0;
  display: block;
  text-decoration: none;
  background: #e8ecf0;
}
.yp-industry img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.yp-industry:hover img { transform: scale(1.06); }
.yp-industry::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,20,40,.5) 78%, rgba(0,20,40,.68) 100%);
}
.yp-industry-name {
  position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 1;
  color: #fff; font-size: 19px; font-weight: 600; line-height: 1.25;
  display: block;
}
.yp-industry-name small { display: block; font-size: 12.5px; font-weight: 400; opacity: .92; margin-top: 5px; }
@media (max-width: 1023px) {
  .yp-industries { grid-template-columns: repeat(2, 1fr); }
}
/* Mobile: Tesla-style horizontal swipe + 6 dot indicator */
.yp-ind-dots { display: none; }
@media (max-width: 768px) {
  .yp-industries {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    margin: 0 -20px;
    padding: 4px 20px 14px;
    scrollbar-width: none;
  }
  .yp-industries::-webkit-scrollbar { display: none; }
  .yp-industry {
    flex: 0 0 84%;
    scroll-snap-align: center;
  }
  .yp-ind-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
  }
  .yp-ind-dots button {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: none; padding: 0;
    background: #d5e3f2;
    cursor: pointer;
    transition: background .3s ease, width .3s ease, border-radius .3s ease;
  }
  .yp-ind-dots button.active {
    background: #00A6E2 !important;
    width: 20px !important;
    height: 8px !important;
    border-radius: 4px !important;
  }
}

/* ===== Download center (module card: poster left, text right, button) ===== */
.yp-download { background: #ffffff; color: var(--yp-blue); }
.yp-download .yp-h2 { color: var(--yp-blue); }
.yp-download-card {
  background: #ffffff; border: 1px solid #e6e9f0; border-radius: 20px;
  box-shadow: 0 14px 40px rgba(6,42,79,.07);
  padding: 46px 52px;
  display: grid; grid-template-columns: 210px 1fr; gap: 24px 52px; align-items: center;
}
.yp-download p { color: #5a6577; font-size: 15px; line-height: 1.7; margin: 0 0 10px; }
/* Information poster (Freudenberg annual-report style, small) */
.yp-download-poster {
  position: relative; grid-column: 1; grid-row: 1 / 3; width: 210px;
  aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden;
  background: linear-gradient(155deg, #062a4f 0%, #004388 55%, #0072bc 120%);
  box-shadow: 0 22px 50px rgba(0,67,136,.28);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 26px 20px; color: #fff; text-align: center;
}
.yp-download-poster::before {
  content: ''; position: absolute; right: -22%; top: -34%; width: 85%; height: 85%;
  border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(0,166,226,.55), rgba(0,166,226,0) 70%);
}
.yp-download-poster::after {
  content: ''; position: absolute; left: -26%; bottom: -34%; width: 80%; height: 80%;
  border-radius: 50%; background: rgba(255,255,255,.08);
}
.yp-dp-label {
  position: relative; z-index: 1; font-size: 13px; font-weight: 700;
  letter-spacing: .34em; text-transform: uppercase; color: #9fd8f5;
}
.yp-dp-brand {
  position: relative; z-index: 1; font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 900; letter-spacing: .05em; line-height: 1; margin: auto 0;
}
.yp-dp-logo { position: relative; z-index: 1; height: 44px; width: auto; max-width: 92%; }
.yp-download-btn {
  grid-column: 2; justify-self: start; display: inline-flex; align-items: center;
  margin-top: 8px; background: #0057B8; color: #fff;
  padding: 14px 28px; font-size: 14px; font-weight: 700; border-radius: 999px;
  text-decoration: none; transition: background .2s;
}
.yp-download-btn:hover { background: #00A6E2; color: #111; }
.yp-download-btn .yp-dl-ico { margin-left: 8px; flex-shrink: 0; }

/* ===== News (Freudenberg-style: image card + overlay tag + round Read more) ===== */
.yp-news-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 14px; margin-bottom: 34px;
}
.yp-news-head .yp-h2 { color: var(--yp-blue); }
.yp-news-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #0057B8; color: #fff;
  border-radius: 999px; padding: 12px 26px;
  font-size: 13.5px; font-weight: 600; letter-spacing: .3px;
  text-decoration: none; white-space: nowrap;
  transition: background .2s;
}
.yp-news-btn:hover { background: #00A6E2; color: #111; }
.yp-news-btn-arrow { font-size: 15px; line-height: 1; }
.yp-news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.yp-news-item {
  min-width: 0;
  background: #fff;
  border: 1px solid #e6e9f0;
  border-radius: 16px;
  box-shadow: 0 3px 14px rgba(17,24,39,.08), 0 1px 3px rgba(17,24,39,.06);
  padding: 14px;
  transition: box-shadow .3s ease, transform .3s ease;
}
.yp-news-item:hover { box-shadow: 0 8px 26px rgba(17,24,39,.13), 0 2px 6px rgba(17,24,39,.07); transform: translateY(-2px); }
.yp-news-media {
  position: relative; display: block; overflow: hidden;
  border-radius: 12px; background: #e8eef5;
}
.yp-news-media img {
  display: block; width: 100%; object-fit: cover;
  transition: transform .45s ease;
}
.yp-news-item:hover .yp-news-media img { transform: scale(1.04); }
.yp-news-tag {
  position: absolute; left: 14px; top: 14px;
  background: rgba(0,67,136,.92); color: #fff;
  font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 5px 11px; border-radius: 2px;
}
.yp-news-round {
  position: absolute; right: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; color: var(--yp-blue);
  border-radius: 50px; padding: 10px 17px;
  font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(0,0,0,.14);
  transition: background .2s, color .2s;
}
.yp-news-item:hover .yp-news-round { background: var(--yp-blue); color: #fff; }
.yp-news-round-arrow { font-size: 13px; line-height: 1; }
.yp-news-body { padding: 16px 6px 4px; }
.yp-news-date { font-size: 12.5px; color: var(--yp-muted); font-weight: 500; }
.yp-news-item h3 { font-size: 17.5px; margin: 8px 0 8px; line-height: 1.4; font-weight: 700; }
.yp-news-item h3 a { color: var(--yp-text); text-decoration: none; }
.yp-news-item h3 a:hover { color: var(--yp-blue); }
.yp-news-item p { font-size: 13.5px; color: var(--yp-body); line-height: 1.6; margin: 0; }
.yp-news-noimg {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4/3; background: #e8eef5;
  color: #9fb0c0; font-weight: 700; letter-spacing: 2px; font-size: 14px;
}

/* ===== Outline button (Freudenberg Discover more style) ===== */
.yp-btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--yp-blue);
  color: var(--yp-blue);
  background: transparent;
  padding: 11px 26px;
  font-size: 13px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  text-decoration: none;
  border-radius: 2px;
  transition: background .15s, color .15s;
  cursor: pointer;
}
.yp-btn-outline:hover { background: var(--yp-blue); color: #fff; }
.yp-btn-outline::after { content: '\2192'; }

/* ===== LinkedIn Social Wall (Freudenberg-style) ===== */
.yp-socialwall { background: #fff; }
.yp-sw-headrow {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 14px; margin-bottom: 42px;
}
.yp-sw-title {
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 900;
  color: #004388;
  text-transform: uppercase;
  letter-spacing: .5px;
  line-height: 1.05;
  margin: 0;
}
.yp-sw-hidden { display: none !important; }
.yp-sw-loadmore-wrap { text-align: center; margin-top: 28px; }
.yp-sw-loadmore {
  display: inline-block;
  padding: 7px 36px;
  background: #ffffff;
  border: 1px solid #0057B8;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: #0057B8;
  cursor: pointer;
  line-height: 1.25;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.yp-sw-loadmore:hover { background: #00A6E2; color: #111; border-color: #00A6E2; }
.yp-sw-grid { position: relative; }
.yp-sw-card {
  background: #fff;
  border-radius: 6px;
  padding: 0 14.4px 14.4px;
  display: flex; flex-direction: column;
  min-width: 0;
  position: relative;
  box-shadow: 0 3px 14px rgba(17,24,39,.08), 0 1px 3px rgba(17,24,39,.06);
  transition: box-shadow .25s, transform .25s;
}
.yp-sw-card:hover { box-shadow: 0 4px 16px rgba(17,24,39,.08); }
  .yp-sw-card:hover .yp-sw-media img,
  .yp-sw-card:hover .yp-sw-media-video video { transform: scale(1.045); }
.yp-sw-meta {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14.4px 6px;
  margin: 0 -14.4px 10px;
}
.yp-sw-profile { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.yp-sw-avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; background: #eef0f2; }
.yp-sw-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yp-sw-name { font-size: 14px; font-weight: 500; color: #111; }
.yp-sw-in {
  position: absolute;
  top: 12px;
  right: 12px;
  display: block;
  width: 22px; height: 22px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.yp-sw-in svg { display: block; width: 22px; height: 22px; }
.yp-sw-text {
  font-size: 14.4px; color: #111; font-weight: 300; line-height: 20.88px;
  margin: 0 0 10px;
  white-space: pre-line;
/* Freudenberg-style: text fixed ~4 lines, overflow fades at bottom */
  max-height: 96px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, #000 58%, rgba(0,0,0,0) 100%);
}
.yp-sw-card.yp-sw-expanded .yp-sw-text {
  max-height: none;
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
}
.yp-sw-more {
  font-size: 11px; font-weight: 500; color: #111;
  text-decoration: none; text-transform: uppercase; letter-spacing: .4px;
  margin-top: auto;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  text-align: left;
}
.yp-sw-more:hover { color: var(--yp-blue); }
.yp-sw-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px;
  font-size: 12px; color: #7a8794;
}
.yp-sw-arrow { font-size: 14px; color: var(--yp-text); text-decoration: none; line-height: 1; }
.yp-sw-media { margin-bottom: 14.4px; position: relative; display: block; overflow: hidden; border-radius: 10px; }
.yp-sw-media img { display: block; width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform .4s ease; }
.yp-sw-play {
  position: absolute; inset: 0; margin: auto;
  width: 46px; height: 46px;
  background: rgba(0,0,0,.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/22px no-repeat;
  border-radius: 50%;
  transition: transform .2s, background .2s;
}
.yp-sw-card-video .yp-sw-media:hover .yp-sw-play,
.yp-sw-card[data-video] .yp-sw-media:hover .yp-sw-play { transform: scale(1.1); background-color: rgba(10,102,194,.85); }
.yp-sw-media-video video { display: block; width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #000; transition: transform .4s ease; }
.yp-sw-video-off {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.62); color: #fff;
  font-size: 11.5px; letter-spacing: .3px; text-align: center;
  padding: 6px 8px;
}
.yp-sw-empty { padding: 40px 0; text-align: center; color: #666; font-size: 14px; }
@media (max-width: 640px) {
/* Mobile social wall: Tesla-style horizontal swipe */
  .yp-sw-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    margin: 0 -20px;
    padding: 4px 20px 14px;
    scrollbar-width: none;
  }
  .yp-sw-grid::-webkit-scrollbar { display: none; }
  .yp-sw-card {
    flex: 0 0 84%;
    scroll-snap-align: center;
    margin-bottom: 0;
  }
  .yp-sw-loadmore-wrap { display: none; }
}

/* ===== FAQ ===== */
.yp-faq { max-width: 860px; margin: 0 auto; }
.yp-faq-item { border-bottom: 1px solid var(--yp-border); }
.yp-faq-q {
  padding: 22px 4px;
  font-size: 16px; font-weight: 600; color: var(--yp-text);
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}
.yp-faq-q::after {
  content: '+';
  font-size: 22px; font-weight: 400; color: var(--yp-blue);
  flex: 0 0 auto;
  transition: transform .2s;
}
.yp-faq-item.open .yp-faq-q::after { transform: rotate(45deg); }
.yp-faq-a { display: none; padding: 0 4px 22px; font-size: 14.5px; color: var(--yp-body); line-height: 1.7; }
.yp-faq-item.open .yp-faq-a { display: block; }

/* ===== Footer (Tesla minimal: single-line gray small links) ===== */
.yp-footer { background: #fff; color: #6b7280; padding: 34px 0 40px; }
.yp-footer-line {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 4px 20px;
  text-align: center;
}
.yp-footer-copy { display: inline-flex; flex-direction: row; align-items: center; gap: 4px; }
.yp-copy-main { font-size: 12.5px; font-weight: 600; color: #4b5563; }
.yp-copy-full { font-size: 11px; color: #98a1ab; }
.yp-footer-links { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; }
.yp-footer-links a { color: #6b7280; text-decoration: none; font-size: 12.5px; }
.yp-footer-links a:hover { color: var(--yp-blue); text-decoration: underline; }
.yp-footer-social { display: inline-flex; align-items: center; gap: 16px; }
.yp-footer-social a { color: #6b7280; display: inline-flex; align-items: center; justify-content: center; transition: color .2s; }
.yp-footer-social a:hover { color: var(--yp-blue); }
.yp-footer-social svg { display: block; }
.yp-footer-social a[aria-label="VK"] img { transition: filter .2s; }
.yp-footer-social a[aria-label="VK"]:hover img { filter: brightness(0) saturate(100%) invert(16%) sepia(62%) saturate(3262%) hue-rotate(193deg) brightness(87%) contrast(105%); }
@media (max-width: 640px) {
  .yp-footer { padding: 26px 0 30px; }
  .yp-footer-line { gap: 10px 12px; }
  .yp-footer-social { gap: 14px; }
  .yp-footer-copy { flex-direction: column; gap: 2px; }
}

/* ===== Responsive (aligned with Freudenberg breakpoints: 1024 desktop split / 1280 container 1440) ===== */
@media (max-width: 1024px) {
  .yp-nav { position: static; pointer-events: auto; }
  .yp-nav-actions { position: static; margin-left: auto; }
  .yp-menu {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #fff;
    flex-direction: column;
    margin: 0;
    padding: calc(96px + env(safe-area-inset-top, 0px)) 34px calc(40px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    z-index: 998;
    box-shadow: none;
    border: none;
  }
  .yp-menu.open { display: flex; }
  .yp-menu.open .yp-menu-extra { display: flex; }
  .yp-menu > li { border-bottom: none; margin-bottom: 16px; }
  .yp-menu > li > a {
    padding: 16px 4px;
    font-size: 17px;
    line-height: 24px;
    font-weight: 500;
    display: flex; align-items: center; justify-content: space-between;
  }
  .yp-menu li.menu-item-has-children > a::after {
    content: '\203A';
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
    margin-left: 12px;
    transform: none;
    transition: transform .2s ease;
  }
  .yp-menu li.open-sub > a::after { transform: rotate(90deg); }
  .yp-submenu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    padding: 2px 0 16px 6px;
    min-width: 0;
    margin-left: 0;
  }
  .yp-menu li.open-sub > .yp-submenu { display: block; }
  .yp-submenu a { padding: 12px 6px; font-size: 17px; color: var(--yp-body); }
/* Menu bottom: search + language (Tesla-style) - shown when mobile menu opens */
  .yp-menu-extra {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid var(--yp-border);
    flex-direction: column;
    gap: 22px;
  }
  .yp-menu-search {
    display: flex; align-items: center; gap: 12px;
    font-size: 17px; font-weight: 500; color: var(--yp-text);
  }
  .yp-menu-langs {
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px;
  }
  .yp-menu-lang-label {
    display: flex; align-items: center; gap: 8px;
    font-size: 15px; color: var(--yp-muted); text-transform: uppercase; letter-spacing: 1.6px;
  }
  .yp-menu-langs a {
    font-size: 17px; font-weight: 500; color: var(--yp-text);
    padding: 6px 4px; border: none; border-radius: 0;
  }
  .yp-menu-langs a:hover { color: var(--yp-blue); }
  .yp-menu-langs a.active { background: transparent; color: var(--yp-blue); font-weight: 600; border: none; }
  .yp-burger { display: flex; }
/* Mobile top only logo + menu button (Tesla-style): search & language moved into menu */
  .yp-search-btn, .yp-lang-switch { display: none; }
  .yp-header-inner { height: 76px; padding: 0 20px; }
  .yp-logo img { height: 44px; }

/* Menu close X (Tesla-style top-right) */
  .yp-menu-close {
    position: fixed;
    top: 20px; right: 20px;
    width: 32px; height: 32px;
    display: none;
    align-items: center; justify-content: center;
    border: none; background: none;
    color: var(--yp-text);
    cursor: pointer;
    z-index: 999;
    padding: 0;
  }
  body.yp-menu-open .yp-menu-close { display: flex; }
  body.yp-menu-open .yp-burger { visibility: hidden; }

/* Hamburger turns into x when open */
  body.yp-menu-open .yp-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.yp-menu-open .yp-burger span:nth-child(2) { opacity: 0; }
  body.yp-menu-open .yp-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .yp-burger span { transition: transform .2s ease, opacity .2s ease; }
/* Restore page scroll after closing menu */
  body.yp-menu-open { overflow: hidden; }
}
@media (min-width: 1025px) { .yp-menu-close { display: none !important; } }
@media (min-width: 1025px) and (max-width: 1280px) {
  .yp-menu li a { padding: 25px 18px; font-size: 16px; }
}
@media (max-width: 1024px) {
  .yp-stats { grid-template-columns: repeat(2, 1fr) !important; }
  .yp-cards, .yp-industries, .yp-news, .yp-li-grid { grid-template-columns: repeat(2, 1fr); }
  .yp-footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .yp-h2 { font-size: clamp(38px, 3.8vw, 52px); }
  .yp-eyebrow { font-size: clamp(16px, 1.4vw, 20px); }
  .yp-section { padding: 64px 0; }
}
@media (min-width: 1280px) {
  .container { max-width: 1440px; }
}
@media (max-width: 768px) {
  .yp-industries, .yp-news, .yp-li-grid { grid-template-columns: 1fr; }
  .yp-download-card { grid-template-columns: 1fr; gap: 18px; padding: 26px 22px; }
  .yp-download-card .yp-h2 { font-size: 26px; line-height: 1.15; }
  .yp-download-card p { font-size: 13.5px; }
  .yp-download-text { grid-column: 1; order: 1; }
  .yp-download-poster { grid-column: 1; grid-row: auto; order: 2; width: 150px; margin: 6px auto 0; padding: 14px 10px; }
  .yp-download-poster .yp-dp-label { font-size: 10px; letter-spacing: .2em; }
  .yp-download-poster .yp-dp-brand { font-size: 26px; letter-spacing: .02em; }
  .yp-download-poster .yp-dp-logo { height: 22px; }
  .yp-download-btn { grid-column: 1; order: 3; justify-self: stretch; text-align: center; margin-top: 6px; }
  .yp-footer-grid { grid-template-columns: 1fr; }
  .yp-hero-overlay { min-height: 360px; padding-top: 52px; padding-bottom: 36px; }
  .yp-arc-wrap { margin-top: -64px; }
  .yp-arc-svg { height: 72px; }
  .yp-hero-explore { display: none; }
  .yp-stats { gap: 0; margin-top: 26px; }
  .yp-stat { padding: 18px 10px 22px; border-right: 1.5px solid rgba(0,67,136,.3); border-bottom: 1.5px solid rgba(0,67,136,.3); }
  .yp-stat:nth-child(2n) { border-right: none; }
  .yp-stat:nth-child(n+3) { border-bottom: none; }
  .yp-stat-main { gap: 8px; }
  .yp-stat-icon svg { width: 24px; height: 24px; }
  .yp-stat-num { font-size: 30px; }
  .yp-stat-label { font-size: 12px; margin-top: 8px; color: var(--yp-muted); }
}
@media (max-width: 480px) {
  .yp-hero-overlay { min-height: 300px; padding-top: 48px; padding-bottom: 28px; }
  .yp-arc-wrap { margin-top: -52px; }
  .yp-arc-svg { height: 60px; }
  .yp-hero-mobile { padding: 0 16px; }
  .yp-hero-mobile .yp-hero-title { font-size: clamp(24px, 7vw, 30px); }
  .yp-hero-title { font-size: clamp(24px, 7.2vw, 32px); }
  .yp-hero-mobile .yp-hero-sub { font-size: 14px; margin-top: 6px; }
  .yp-hero-mobile-ctas { margin: 12px auto 8px; gap: 10px; width: min(340px, 100%); }
  .yp-hero-mobile-ctas .yp-hero-cta { flex: 1; justify-content: center; padding: 10px 14px; font-size: 13px; }
  .yp-stats { gap: 0; margin-top: 20px; }
  .yp-stat { padding: 14px 6px 18px; border-right: 1px solid rgba(0,67,136,.25); border-bottom: 1px solid rgba(0,67,136,.25); }
  .yp-stat:nth-child(2n) { border-right: none; }
  .yp-stat:nth-child(n+3) { border-bottom: none; }
  .yp-stat-main { gap: 6px; }
  .yp-stat-icon svg { width: 20px; height: 20px; }
  .yp-stat-num { font-size: 25px; }
  .yp-stat-label { font-size: 11px; margin-top: 6px; color: var(--yp-muted); }
}

/* ===== Privacy popup (Tesla minimal: bottom centered card) ===== */
.yp-consent[hidden] { display: none; }
.yp-consent {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: #fff;
  border-top: 1px solid #e6e9ee;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
  padding: 9px 28px calc(9px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}
.yp-consent-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
}
.yp-consent-text h2 {
  font-size: 12.5px; font-weight: 700; color: var(--yp-text);
  margin: 0 0 1px; line-height: 1.3;
}
.yp-consent-text p {
  font-size: 11.5px; line-height: 1.4; color: #5a6472; margin: 0;
}
.yp-consent-settings {
  background: none; border: 0; padding: 0;
  color: var(--yp-blue); text-decoration: underline;
  font-size: 11.5px; font-weight: 600; cursor: pointer;
}
.yp-consent-settings:hover { color: var(--yp-sky); }
.yp-consent-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.yp-consent-btn {
  font-size: 12px; font-weight: 600; padding: 7px 18px;
  border-radius: 4px; cursor: pointer; line-height: 1.3;
  border: 1px solid transparent; transition: background .15s;
}
.yp-consent-reject { background: #fff; border-color: #cfd6e0; color: #3b4654; }
.yp-consent-reject:hover { border-color: #aeb8c6; }
.yp-consent-accept { background: var(--yp-text); color: #fff; }
.yp-consent-accept:hover { background: #2a3340; }

/* Cookie settings panel (opens when clicking Cookie Settings) */
.yp-consent-panel[hidden] { display: none; }
.yp-consent-panel {
  position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%);
  width: 560px; max-width: calc(100vw - 32px);
  background: #fff; border: 1px solid #e6e9ee; border-radius: 10px;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.16);
  padding: 22px 24px; box-sizing: border-box; z-index: 10000;
}
.yp-consent-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.yp-consent-panel-head h3 { font-size: 16px; font-weight: 700; color: var(--yp-text); margin: 0; }
.yp-consent-close {
  background: none; border: 0; font-size: 22px; line-height: 1;
  color: #8a94a3; cursor: pointer; padding: 2px 6px;
}
.yp-consent-close:hover { color: var(--yp-text); }
.yp-consent-cat {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 13px 0; border-top: 1px solid #eef1f5;
}
.yp-consent-cat:first-of-type { border-top: 0; }
.yp-consent-cat-info strong { font-size: 13.5px; color: var(--yp-text); display: block; margin-bottom: 3px; }
.yp-consent-cat-info p { font-size: 12px; color: #5a6472; line-height: 1.5; margin: 0; }
.yp-consent-always {
  font-size: 11px; font-weight: 600; color: #8a94a3;
  background: #f2f5f9; border-radius: 20px; padding: 4px 12px;
  white-space: nowrap; flex-shrink: 0;
}
.yp-switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.yp-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.yp-switch span {
  position: absolute; top:0;left:0;right:0;bottom:0; background: #cfd6e0;
  border-radius: 22px; transition: background .2s; cursor: pointer;
}
.yp-switch span:before {
  content: ''; position: absolute; width: 18px; height: 18px;
  left: 2px; top: 2px; background: #fff; border-radius: 50%;
  transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.yp-switch input:checked + span { background: var(--yp-blue); }
.yp-switch input:checked + span:before { transform: translateX(18px); }
.yp-consent-panel-actions {
  display: flex; justify-content: flex-end;
  padding-top: 16px; border-top: 1px solid #eef1f5; margin-top: 4px;
}
.yp-consent-save { background: var(--yp-text); color: #fff; }
.yp-consent-save:hover { background: #2a3340; }

@media (max-width: 700px) {
  .yp-consent { padding: 14px 18px calc(16px + env(safe-area-inset-bottom, 0px)); }
  .yp-consent-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .yp-consent-text h2 { font-size: 14px; margin-bottom: 4px; }
  .yp-consent-text p { font-size: 12.5px; line-height: 1.55; }
  .yp-consent-settings { display: block; margin-top: 6px; font-size: 12.5px; }
  .yp-consent-actions { width: 100%; gap: 10px; }
  .yp-consent-btn { flex: 1; text-align: center; padding: 11px 14px; font-size: 13px; }
  .yp-consent-panel { bottom: auto; top: 50%; transform: translate(-50%, -50%); padding: 20px 18px; }
}

/* ===== Narrow screen: Tesla-style hidden transparent nav (returns to fixed white on scroll) ===== */
@media (max-width: 1024px) {
  body.home .yp-header {
    position: fixed;
    left: 0; right: 0; top: 0;
    background: transparent;
    box-shadow: none;
    border-bottom: none;
  }
  body.home .yp-header .yp-search-btn,
  body.home .yp-header .yp-lang-switch { display: none; }
  body.home .yp-header:not(.yp-scrolled) .yp-burger span { background: #fff; }
/* White logo: dual img approach (blue/white images, CSS display switch), pure element rendering, cross-browser, no flicker */
  body.home .yp-header:not(.yp-scrolled) .yp-logo .yp-logo-dark { display: none; }
  body.home .yp-header:not(.yp-scrolled) .yp-logo .yp-logo-light {
    display: block;
    height: 30px;
    width: auto;
  }
  body.home .yp-header.yp-scrolled {
    position: fixed;
    background: var(--yp-white);
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
  }
  body.home .yp-header.yp-scrolled .yp-logo .yp-logo-light { display: none; }
  body.home .yp-header.yp-scrolled .yp-logo .yp-logo-dark {
    display: block;
    height: 44px;
    width: auto;
  }
/* Hero content shifted down to clear transparent nav (Tesla upper layout) + dynamic island safe area */
  body.home .yp-hero-overlay { padding-top: calc(clamp(72px, 10vh, 96px) + env(safe-area-inset-top, 0px)); }
/* Mobile Hero title moved to white area under arc (Freudenberg-style) */
  body.home .yp-hero-overlay .yp-hero-title,
  body.home .yp-hero-overlay .yp-hero-sub,
  body.home .yp-hero-overlay .yp-hero-ctas { display: none; }
  .yp-hero-mobile {
    display: block;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
  }
  .yp-arc { padding: 0 24px 8px; }
  .yp-hero-mobile .yp-hero-title {
    color: var(--yp-blue);
    font-size: clamp(26px, 6.8vw, 34px);
    font-weight: 700;
    margin: 0;
    line-height: 1.15;
    letter-spacing: .4px;
  }
  .yp-hero-mobile .yp-hero-sub {
    color: var(--yp-muted);
    font-size: 15px;
    margin: 6px auto 0;
    max-width: 520px;
    line-height: 1.5;
  }
  .yp-hero-mobile-ctas {
    display: flex;
    justify-content: center;
    margin: 14px auto 10px;
    gap: 10px;
    width: min(340px, 100%);
  }
  .yp-hero-mobile-ctas .yp-hero-cta { background: var(--yp-blue); color: #fff; border-color: transparent; }
  .yp-hero-mobile-ctas .yp-hero-cta:hover { background: #00326b; }
  .yp-hero-mobile-ctas .yp-hero-cta-ghost { background: transparent; color: var(--yp-blue); border-color: rgba(0,67,136,.45); }
  .yp-hero-mobile-ctas .yp-hero-cta-ghost:hover { background: rgba(0,67,136,.07); color: var(--yp-blue); }
}

/* ===== Mobile news block: Tesla-style horizontal swipe + dot indicator ===== */
@media (max-width: 768px) {
  .yp-news {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    margin: 0 -20px;
    padding: 4px 20px 14px;
    scrollbar-width: none;
  }
  .yp-news::-webkit-scrollbar { display: none; }
  .yp-news-item {
    flex: 0 0 86%;
    scroll-snap-align: center;
  }
  .yp-news-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
  }
  .yp-news-dots button {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: none; padding: 0;
    background: #d5e3f2;
    cursor: pointer;
    transition: background .3s ease, width .3s ease, border-radius .3s ease;
  }
  .yp-news-dots button.active {
    background: #00A6E2 !important;
    width: 20px !important;
    height: 8px !important;
    border-radius: 4px !important;
  }
}

/* ===== Mobile three cards: Freudenberg-style horizontal swipe + dot indicator ===== */
@media (max-width: 768px) {
  .yp-cards {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    margin: 0 -20px;
    padding: 4px 20px 14px;
    scrollbar-width: none;
  }
  .yp-cards::-webkit-scrollbar { display: none; }
  .yp-card { flex: 0 0 82%; scroll-snap-align: center; }
  .yp-card-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
  }
  .yp-card-dots button {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: none; padding: 0;
    background: #d5e3f2;
    cursor: pointer;
    transition: background .3s ease, width .3s ease, border-radius .3s ease;
  }
  .yp-card-dots button.active {
    background: #00A6E2 !important;
    width: 20px !important;
    height: 8px !important;
    border-radius: 4px !important;
  }
}

/* ===== News swipe (desktop/tablet: Freudenberg arrows + dots) ===== */
.yp-news {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 30px;
  scrollbar-width: none;
}
.yp-news::-webkit-scrollbar { display: none; }
.yp-news-item {
  flex: 0 0 calc(33.333% - 20px);
  scroll-snap-align: start;
}
.yp-news-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 26px;
}
.yp-news-arrow {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,67,136,.4);
  background: #fff;
  color: var(--yp-blue);
  font-size: 22px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 0 0 2px;
  transition: background .2s, color .2s, border-color .2s, opacity .2s;
}
.yp-news-arrow:hover { background: var(--yp-blue); color: #fff; border-color: var(--yp-blue); }
.yp-news-arrow:disabled { opacity: .3; cursor: default; }
.yp-news-arrow:disabled:hover { background: #fff; color: var(--yp-blue); border-color: rgba(0,67,136,.4); }
.yp-news-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
}
.yp-news-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none; padding: 0;
  background: #d5e3f2;
  cursor: pointer;
  transition: background .3s ease, width .3s ease, border-radius .3s ease;
}
.yp-news-dots button.active {
  background: #00A6E2 !important;
  width: 20px !important;
  height: 8px !important;
  border-radius: 4px !important;
}
@media (max-width: 1024px) {
  .yp-news-item { flex: 0 0 calc(50% - 15px); }
}
@media (max-width: 768px) {
  .yp-news-item { flex: 0 0 86%; }
  .yp-news-arrow { display: none; }
}

/* ===== Contact: first module row - align width with group card (Freudenberg-style centered card) ===== */
.yp-hq-row {
  max-width: 1152px;
  margin: 0 auto;
}
.yp-hq-photo {
  display: flex;
  align-items: flex-start !important;
}
.yp-hq-photo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ===== Contact: YESSION High-performance Materials group card ===== */
.yp-group {
  background: #fff !important;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  padding: 40px;
  margin: 40px auto 0;
  max-width: 1152px;
  box-sizing: border-box;
}
.yp-group-row {
  display: flex;
  gap: 48px;
  align-items: stretch;
}
.yp-group-info {
  flex: 1;
  min-width: 0;
}
.yp-group-photo {
  flex: 0 0 50%;
  min-width: 0;
  display: flex;
  align-items: flex-start !important;
}
.yp-group-photo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  background: #fff;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}
.yp-group-title {
  color: #002f87 !important;
  font-size: 30px !important;
  font-weight: 700 !important;
  line-height: 1.3;
  margin: 0 0 8px;
}
.yp-group-sub {
  color: #002f87 !important;
  font-size: 19px !important;
  font-weight: 600 !important;
  line-height: 1.4;
  margin: 0 0 22px;
}
.yp-group-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.yp-group-list li {
  font-size: 16px;
  color: #555;
  line-height: 1.9;
  padding: 5px 0;
}
.yp-group-list li a {
  color: #0057b8;
  text-decoration: none;
}
.yp-group-list li a:hover {
  text-decoration: underline;
}

/* ===== Contact info rows - benchmarked to Freudenberg (16px / #666 / line-height 30px) ===== */
.yp-list li,
.yp-group-list li {
  color: #666 !important;
  line-height: 30px !important;
  font-weight: 400;
  font-size: 16px !important;
}
.yp-group-list li {
  padding: 0;
}
@media (max-width: 768px) {
  .yp-group { padding: 24px 20px; }
  .yp-group-row { flex-direction: column; gap: 24px; }
  .yp-group-title { font-size: 20px !important; }
  .yp-acc-title { font-size: 20px !important; }
  .yp-group-sub { font-size: 17px !important; }
  .yp-group-list li { font-size: 15px; }
  .yp-list li,
  .yp-group-list li {
    line-height: 26px !important;
    font-size: 15px !important;
  }
  .yp-hq-photo img,
  .yp-group-photo img { height: auto !important; }
}


/* Mega menu aside image (科德宝式) */
.yp-mega-img{ display:block; margin:16px 0 0; border-radius:10px; overflow:hidden; box-shadow:0 6px 18px rgba(0,0,0,0.08); }
.yp-mega-img img{ width:100%; height:auto; display:block; }

/* 卡片照片圆角+阴影（柔软） */
.yp-hq-photo img, .yp-group-photo img { border-radius: 12px !important; box-shadow: 0 6px 18px rgba(0,0,0,0.10) !important; }
/* Contact accordion (科德宝式下拉框) */
.yp-acc-card {
  padding: 0 !important;
  overflow: hidden;
}
.yp-acc { display: block; }
.yp-acc-head {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  background: #fff;
  user-select: none;
}
.yp-acc-head::-webkit-details-marker,
.yp-acc-head::marker { display: none; content: ''; }
.yp-acc-title {
  font-size: 30px;
  font-weight: 700;
  color: #002f87;
  line-height: 1.3;
}
.yp-acc-arrow {
  font-size: 30px;
  font-weight: 400;
  color: #002f87;
  line-height: 1;
  transition: transform .25s ease;
}
.yp-acc[open] .yp-acc-arrow { transform: rotate(45deg); }
.yp-acc-body { padding: 0 40px 40px; }
@media (max-width: 768px) {
  .yp-acc-head { padding: 18px 20px; }
  .yp-acc-title { font-size: 20px !important; }
  .yp-acc-arrow { font-size: 24px; }
  .yp-acc-body { padding: 0 20px 20px; }
}

/* Contact Us 询盘表单（科德宝 en/contact 风格：平铺、图标分类、轻量表单） */
.yp-contact {
  max-width: 1152px;
  margin: 48px auto 0;
  padding: 0;
  background: transparent;
}
.yp-contact-title {
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 900;
  color: #004388;
  text-transform: uppercase;
  letter-spacing: .5px;
  line-height: 1.1;
  margin: 0 0 8px;
  padding-top: 18px;
  text-align: center;
}
.yp-contact-sub2 {
  font-size: clamp(18px, 2vw, 24px);
  color: #00A6E2;
  font-weight: 700;
  margin: 0 0 18px;
  text-align: center;
}
.yp-contact-intro {
  font-size: 15px;
  color: #555;
  line-height: 1.75;
  margin: 0 0 24px;
  text-align: center;
}
.yp-contact-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 32px;
}
.yp-contact-cats-dots { display: none; }
.yp-contact-cat {
  border: 1px solid #e8ebf0;
  border-radius: 12px;
  padding: 0;
  text-align: center;
  cursor: pointer;
  background: #fff;
  transition: box-shadow .3s ease, border-color .3s ease;
  font: inherit;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 250px;
  max-width: 100%;
  line-height: 0;
  overflow: hidden;
}
.yp-contact-cat:hover,
.yp-contact-cat:focus,
.yp-contact-cat:active,
.yp-contact-cat.active { background: #fff !important; border-color: #e8ebf0 !important; box-shadow: none !important; }
.yp-contact-cat-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  padding: 0;
}
.yp-contact-cat-img {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.yp-contact-cat-arrowdot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .5s ease, transform .5s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
  z-index: 2;
}
.yp-contact-cat-arrowdot svg { stroke: #00A6E2; }
.yp-contact-cat:hover .yp-contact-cat-arrowdot,
.yp-contact-cat.active .yp-contact-cat-arrowdot { background: #00A6E2; transform: translate(-50%, -50%) scale(1.25); }
.yp-contact-cat:hover .yp-contact-cat-arrowdot svg,
.yp-contact-cat:hover .yp-contact-cat-arrowdot svg *,
.yp-contact-cat.active .yp-contact-cat-arrowdot svg,
.yp-contact-cat.active .yp-contact-cat-arrowdot svg * { stroke: #000 !important; }
.yp-contact-cat-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--yp-blue, #0057b8);
  line-height: 1.3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 16px 12px;
  flex-grow: 0;
}
.yp-contact-form { position: relative; }
.yp-contact-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.yp-contact-h { font-size: 20px; font-weight: 700; color: #002f87; margin: 0 0 14px; }
.yp-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(302px, 1fr);
  gap: 12px 14px;
}
.yp-contact-field { margin-bottom: 0; }
.yp-contact-col > .yp-contact-field { margin-bottom: 12px; }
.yp-contact-field label { display: block; font-size: 12px; color: #555; margin-bottom: 5px; letter-spacing: .2px; }
.yp-contact-field .req { color: #d0021b; }
.yp-contact-field input,
.yp-contact-field select,
.yp-contact-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid transparent;
  background: #f2f4f7;
  border-radius: 6px;
  padding: 10px 13px;
  font-size: 14px;
  color: #222;
  font-family: inherit;
  transition: background .2s, border-color .2s;
}
.yp-contact-field input:focus,
.yp-contact-field select:focus,
.yp-contact-field textarea:focus {
  background: #fff;
  border-color: #0057b8;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,87,184,.10);
}
.yp-contact-field textarea { resize: vertical; }
/* 左栏 Your Request 与右栏等高对齐 */
.yp-contact-col:first-child { display: flex; flex-direction: column; }
.yp-contact-col:first-child .yp-contact-field:last-child { flex: 1; display: flex; flex-direction: column; }
.yp-contact-col:first-child textarea { flex: 1; min-height: 150px; }
.yp-contact-submit-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.yp-hc-cell {
  align-self: center;
}
.yp-hc-cell .h-captcha {
  width: 302px;
  height: 76px;
  background: #fafbfc;
  border: 1px solid #e6e9ee;
  border-radius: 4px;
  position: relative;
}
.yp-hc-cell .h-captcha.yp-hc-ready {
  background: transparent;
  border-color: transparent;
}
.yp-hc-cell .h-captcha iframe { display: block; }
.yp-contact-human {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  background: #fff;
  border: 1px solid #d9dde3;
  border-radius: 6px;
  padding: 9px 14px;
  user-select: none;
  position: relative;
}
.yp-contact-human input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.yp-human-box {
  width: 18px;
  height: 18px;
  border: 1px solid #b9c0c9;
  border-radius: 4px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  flex: 0 0 18px;
}
.yp-contact-human input:checked + .yp-human-box { background: #0057b8; border-color: #0057b8; }
.yp-contact-human input:checked + .yp-human-box::after {
  content: '';
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}
/* hCaptcha 风格人机验证卡片（高仿科德宝） */
.yp-hcaptcha {
  display: inline-flex;
  align-items: stretch;
  gap: 12px;
  cursor: pointer;
  background: #fff;
  border: 1px solid #dde2e8;
  border-radius: 4px;
  padding: 10px 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  user-select: none;
  position: relative;
}
.yp-hcaptcha input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.yp-hc-main { display: inline-flex; align-items: center; gap: 12px; }
.yp-hc-logo { display: inline-flex; flex: 0 0 auto; }
.yp-hc-c { display: none; }
.yp-hcaptcha input:checked + .yp-hc-main .yp-hc-u { display: none; }
.yp-hcaptcha input:checked + .yp-hc-main .yp-hc-c { display: inline-flex; }
.yp-hc-label { font-size: 14px; color: #333; font-weight: 500; white-space: nowrap; }
.yp-hc-meta {
  display: inline-flex;
  flex-direction: column;
  justify-content: flex-end;
  font-size: 9px;
  line-height: 1.45;
  color: #7a8698;
  text-align: right;
  border-left: 1px solid #eef1f5;
  padding-left: 10px;
  min-width: 44px;
}
.yp-contact-legal {
  margin-top: 20px;
  font-size: 12px;
  color: #888;
  line-height: 1.7;
}
.yp-contact-legal a { color: #0057b8; text-decoration: none; }
.yp-contact-submit {
  margin-top: 8px;
  background: #0057B8;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 11px 34px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.yp-contact-submit:hover { background: #00A6E2; color: #111; }
.yp-contact-msg { margin: 0 0 16px; font-size: 14px; text-align: center; }
.yp-contact-msg.yp-ok { color: #0a7d32; background: #eaf7ef; border: 1px solid #bfe8cd; border-radius: 6px; padding: 10px 14px; }
.yp-contact-hp { position: absolute; left: -9999px; opacity: 0; }
@media (hover: none), (max-width: 768px) {
  .yp-contact { margin-top: 40px; }
  .yp-contact-title { font-size: 24px; }
  .yp-contact-cats {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    margin-bottom: 0;
    padding: 4px 12px 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .yp-contact-cats::-webkit-scrollbar { display: none; }
  .yp-contact-cat { width: 74%; max-width: 250px; flex: 0 0 74%; scroll-snap-align: center; }
  .yp-contact-cat-name { font-size: 15px; padding: 12px 14px 16px; }
  .yp-contact-cats-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0 0 28px;
    padding: 10px 0 0;
  }
  .yp-contact-cats-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d5e3f2;
    transition: background .3s ease, width .3s ease, border-radius .3s ease;
    cursor: pointer;
  }
  .yp-contact-cats-dots span.active {
    background: #00A6E2;
    width: 20px;
    border-radius: 4px;
  }
  .yp-contact-cols { grid-template-columns: 1fr; gap: 28px; }
  .yp-contact-grid { grid-template-columns: 1fr; gap: 12px 0; }
}


/* ===== Tesla-style: blur page behind open mega panel ===== */
body.yp-blur #content,
body.yp-blur .site-content {
  filter: blur(5px) saturate(.92);
  transition: filter .2s ease-out;
}
body.yp-blur::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(23,32,51,.38);
  z-index: 997;
  pointer-events: none;
}

/* ===== Pure-CSS fallback: mega opens on hover without JS ===== */
@media (hover: hover) {
  header.yp-header:has(#yp-menu li#menu-item-2177:hover) #yp-mega-about,
  header.yp-header:has(#yp-menu li#menu-item-2176:hover) #yp-mega,
  header.yp-header:has(#yp-mega-about:hover) #yp-mega-about,
  header.yp-header:has(#yp-mega:hover) #yp-mega {
    display: block;
    animation: yp-mega-in .18s ease-out;
  }
  body:has(header.yp-header #yp-menu li#menu-item-2177:hover) #content,
  body:has(header.yp-header #yp-menu li#menu-item-2176:hover) #content,
  body:has(header.yp-header #yp-mega-about:hover) #content,
  body:has(header.yp-header #yp-mega:hover) #content {
    filter: blur(4px);
  }
  body:has(header.yp-header #yp-menu li#menu-item-2177:hover)::before,
  body:has(header.yp-header #yp-menu li#menu-item-2176:hover)::before,
  body:has(header.yp-header #yp-mega-about:hover)::before,
  body:has(header.yp-header #yp-mega:hover)::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(23,32,51,.38);
    z-index: 997;
    pointer-events: none;
  }
}


/* ===== Mega inside li: pure-CSS hover reliability (works without JS / :has) ===== */
.yp-menu > li.yp-has-mega { position: static; }
.yp-menu > li.yp-has-mega > .yp-mega {
  position: absolute;
  top: 100%; left: 0; right: 0;
  z-index: 998;
}
.yp-menu > li.yp-has-mega:hover > .yp-mega,
.yp-menu > li.yp-has-mega > .yp-mega.open {
  display: block;
  animation: yp-mega-in .18s ease-out;
}
@media (hover: hover) {
  .yp-menu > li.yp-has-mega:hover > .yp-submenu { display: none !important; }
}


@media (max-width: 768px) {
  .yp-contact-grid { display: block; }
  .yp-contact-grid .yp-contact-field { margin-bottom: 14px; }
}


}

/* ===== Desktop home: sticky nav (keeps layout, fixed on scroll) ===== */
@media (min-width: 1025px) {
  body.home .yp-header {
    position: sticky !important;
    top: 0;
    left: 0; right: 0;
    z-index: 999;
  }
}

/* ===== Fix sticky nav: overflow-x clip keeps sticky working ===== */
html, body {
  overflow-x: clip !important;
}


/* ===== Mobile submenu panel (Tesla-style level-2 view) ===== */
.yp-m-subpanel {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 999;
  flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px);
}
.yp-m-subpanel.open { display: flex; }
.yp-m-subpanel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px 0;
}
.yp-m-sub-back, .yp-m-sub-close {
  border: none;
  background: none;
  color: var(--yp-text);
  cursor: pointer;
  padding: 0;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  display: flex; align-items: center; justify-content: center;
}
.yp-m-subpanel-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--yp-text);
  letter-spacing: 0.2px;
}
.yp-m-subpanel-list {
  list-style: none;
  margin: 0;
  padding: 6px 24px 40px;
  overflow-y: auto;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.yp-m-subpanel-list li { border-bottom: none; }
.yp-m-subpanel-list a {
  display: block;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  overflow: hidden;
  color: var(--yp-text);
  text-decoration: none;
}
.yp-m-subpanel-list a img {
  width: 100%;
  height: 135px;
  object-fit: cover;
  display: block;
}
.yp-m-subpanel-list a span {
  display: block;
  padding: 12px 14px 14px;
  font-size: 16px;
  line-height: 22px;
  font-weight: 500;
}
.yp-m-subpanel-list a:hover { color: var(--yp-blue); }
.yp-menu.yp-menu-hide { display: none !important; }
@media (min-width: 1025px) {
  .yp-m-subpanel { display: none !important; }
}


/* ===== Menu arrow as inline SVG (Tesla-style chevron, no char rendering) ===== */
.yp-menu li.menu-item-has-children > a::after { content: none !important; }
.yp-menu li > a .yp-menu-arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-left: 12px;
  display: inline-block;
  vertical-align: middle;
}
@media (min-width: 1025px) { .yp-menu li > a .yp-menu-arrow { display: none !important; } }


/* ===== Subpanel bottom more-links (Tesla-style divider + categories) ===== */
.yp-m-subpanel-more {
  border-top: 1px solid rgba(0,0,0,.08);
  margin: 0 24px;
  padding: 18px 0 28px;
}
.yp-m-subpanel-more a {
  display: flex;
  align-items: center;
  padding: 13px 0;
  font-size: 17px;
  line-height: 24px;
  font-weight: 500;
  color: var(--yp-text);
  text-decoration: none;
}
.yp-m-subpanel-more a .yp-menu-arrow { margin-left: auto; flex-shrink: 0; }
.yp-m-subpanel-more a:hover { color: var(--yp-blue); }
