/* Yucera Product Documentation Block — STEP07A
   Strict reference lock: light white-blue, 2-col desktop, accordion mobile.
   Additive only — no global redesign. */

.yucera-pdb {
  --pdb-bg: #ffffff;
  --pdb-ink: #0a2a59;
  --pdb-muted: #6d86a2;
  --pdb-line: #bfdcff;
  --pdb-soft: #edf7ff;
  --pdb-accent: #006fe8;
  --pdb-accent-soft: #ddecff;
  --pdb-pdf: #e85d5d;
  --pdb-video: #2f8ef7;
  --pdb-maint: #2f9e6b;
  --pdb-radius: 16px;
  --pdb-card-radius: 14px;
  margin: 28px 0 36px;
  padding: 0 0 8px;
  background: transparent;
  color: var(--pdb-ink);
  font-family: inherit;
}

.yucera-pdb[hidden] { display: none !important; }

.yucera-pdb__shell {
  width: min(1216px, calc(100% - 48px));
  margin: 0 auto;
  background: linear-gradient(135deg, #ffffff 0%, #f9fcff 56%, #eef7ff 100%);
  border: 1px solid var(--pdb-line);
  border-radius: 22px;
  box-shadow: 0 18px 46px rgba(0, 111, 232, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 28px 28px 22px;
  position: relative;
  overflow: hidden;
}

.yucera-pdb__shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #006fe8 0%, #42a5ff 54%, #8fd3ff 100%);
  z-index: 2;
}

.yucera-pdb__header {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
  z-index: 1;
}

.yucera-pdb__wave {
  position: absolute;
  right: -12px;
  top: -28px;
  width: min(420px, 48%);
  height: auto;
  opacity: 0.34;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

.yucera-pdb__brand {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pdb-accent);
}

.yucera-pdb__title {
  margin: 0 0 8px;
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--pdb-ink);
  max-width: 18ch;
}

.yucera-pdb__lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--pdb-muted);
  max-width: 36rem;
}

.yucera-pdb__filter-wrap {
  position: relative;
  z-index: 2;
  justify-self: end;
  align-self: start;
  margin-top: 4px;
}

.yucera-pdb__filter {
  appearance: none;
  min-height: 40px;
  min-width: 160px;
  padding: 8px 36px 8px 14px;
  border: 1px solid var(--pdb-line);
  border-radius: 999px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236d86a2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: var(--pdb-ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.yucera-pdb__filter:focus-visible,
.yucera-pdb__tab:focus-visible,
.yucera-pdb__acc-btn:focus-visible,
.yucera-pdb__more:focus-visible,
.yucera-pdb__cta:focus-visible {
  outline: 2px solid var(--pdb-accent);
  outline-offset: 2px;
}

/* Desktop tabs */
.yucera-pdb__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  position: relative;
  z-index: 1;
}

.yucera-pdb__tab {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid var(--pdb-line);
  border-radius: 999px;
  background: #fff;
  color: #4d6784;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.yucera-pdb__tab img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.yucera-pdb__tab[aria-selected="true"] {
  background: var(--pdb-accent-soft);
  border-color: #9dcbff;
  color: var(--pdb-accent);
  box-shadow: 0 5px 14px rgba(0, 111, 232, 0.12);
}

.yucera-pdb__count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(8, 117, 232, 0.12);
  font-size: 11px;
  font-weight: 800;
}

.yucera-pdb__tab[aria-selected="false"] .yucera-pdb__count {
  background: #eef3f8;
  color: #69829d;
}

/* Mobile accordion hidden on desktop */
.yucera-pdb__accordion { display: none; }

.yucera-pdb__panel { position: relative; z-index: 1; }
.yucera-pdb__panel[hidden] { display: none !important; }

.yucera-pdb__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.yucera-pdb__card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  min-height: 148px;
  padding: 12px;
  border: 1px solid var(--pdb-line);
  border-radius: var(--pdb-card-radius);
  background: #fff;
  box-shadow: 0 6px 16px rgba(10, 42, 89, 0.04);
}

.yucera-pdb__card[hidden] { display: none !important; }

.yucera-pdb__preview {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--pdb-soft);
  border: 1px solid #e8f0f8;
  min-height: 124px;
}

.yucera-pdb__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yucera-pdb__preview--neutral {
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f7fbff 0%, #eef6ff 100%);
}

.yucera-pdb__preview--neutral img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  opacity: 0.9;
}

.yucera-pdb__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.yucera-pdb__play span {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 14px rgba(10, 42, 89, 0.18);
  display: grid;
  place-items: center;
}

.yucera-pdb__play img {
  width: 16px;
  height: 16px;
  margin-left: 2px;
}

.yucera-pdb__dur-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(10, 20, 40, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.yucera-pdb__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 6px;
}

.yucera-pdb__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.yucera-pdb__name {
  flex: 1 1 150px;
  min-width: 0;
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--pdb-ink);
  overflow-wrap: anywhere;
}

.yucera-pdb__badges {
  flex: 0 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px;
}

.yucera-pdb__badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.yucera-pdb__badge--pdf { background: #ffe8e8; color: var(--pdb-pdf); }
.yucera-pdb__badge--video { background: #e8f2ff; color: var(--pdb-video); }
.yucera-pdb__badge--maint { background: #e7f7ef; color: var(--pdb-maint); }
.yucera-pdb__badge--web { background: #eef3f8; color: #4d6784; }

.yucera-pdb__language {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid #cfe2f8;
  border-radius: 999px;
  background: #f4f9ff;
  color: #315f8f;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.yucera-pdb__language--ru {
  border-color: #247be5;
  background: #247be5;
  color: #fff;
  box-shadow: 0 4px 10px rgba(36, 123, 229, 0.22);
}

.yucera-pdb__language--en { border-color: #bcd8f6; background: #eaf4ff; color: #1f5f9f; }
.yucera-pdb__language--cn { border-color: #f1d2aa; background: #fff6e8; color: #9a5b12; }
.yucera-pdb__language--nn { border-color: #d7dde5; background: #f4f6f8; color: #596878; }
.yucera-pdb__language--other { border-color: #d7dde5; background: #f7f9fb; color: #596878; }

.yucera-pdb__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--pdb-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yucera-pdb__meta {
  margin: 0;
  font-size: 12px;
  color: #7a93ad;
  font-weight: 600;
}

.yucera-pdb__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--pdb-accent-soft);
  color: var(--pdb-accent) !important;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid #d7e9ff;
}

.yucera-pdb__cta:hover { background: #dcebff; }

.yucera-pdb__more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.yucera-pdb__more {
  appearance: none;
  min-height: 44px;
  min-width: min(320px, 100%);
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--pdb-line);
  background: #fff;
  color: var(--pdb-accent);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.yucera-pdb__more[hidden] { display: none !important; }

/* Mobile / safety */
@media (max-width: 900px) {
  .yucera-pdb__shell {
    width: min(100% - 28px, 1216px);
    padding: 20px 16px 16px;
    border-radius: 18px;
  }
  .yucera-pdb__header {
    grid-template-columns: 1fr;
  }
  .yucera-pdb__filter-wrap {
    justify-self: start;
    width: 100%;
  }
  .yucera-pdb__filter { width: 100%; }
  .yucera-pdb__tabs { display: none; }
  .yucera-pdb__panel { display: none !important; }
  .yucera-pdb__accordion { display: grid; gap: 10px; margin-bottom: 12px; }
  .yucera-pdb__acc-item {
    border: 1px solid var(--pdb-line);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
  }
  .yucera-pdb__acc-btn {
    appearance: none;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 0;
    background: #fff;
    color: var(--pdb-ink);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    text-align: left;
  }
  .yucera-pdb__acc-btn span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .yucera-pdb__acc-btn img { width: 18px; height: 18px; }
  .yucera-pdb__acc-panel {
    padding: 0 12px 12px;
    border-top: 1px solid var(--pdb-line);
  }
  .yucera-pdb__acc-panel[hidden] { display: none !important; }
  .yucera-pdb__grid { grid-template-columns: 1fr; }
  .yucera-pdb__card {
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 0;
  }
  .yucera-pdb__preview { min-height: 108px; }
  .yucera-pdb__wave { width: min(280px, 70%); opacity: 0.16; top: -18px; right: -40px; }
  .yucera-pdb__title { max-width: none; font-size: 24px; }
}

@media (max-width: 380px) {
  .yucera-pdb__shell { width: calc(100% - 20px); padding: 16px 12px 14px; }
  .yucera-pdb__card { grid-template-columns: 84px minmax(0, 1fr); gap: 10px; padding: 10px; }
  .yucera-pdb__cta { min-height: 44px; }
}
