:root {
  --pqd-accent: #cd5529;
  --pqd-accent-soft: #fff3ed;
  --pqd-bg: #ffffff;
  --pqd-bg-soft: #f7f8fa;
  --pqd-bg-hero: #f1f3f6;
  --pqd-text: #182230;
  --pqd-muted: #5f6c7b;
  --pqd-line: #e2e6eb;
  --pqd-sidebar: 332px;
  --pqd-header: 64px;
  --pqd-shadow: 0 14px 36px rgba(17, 24, 39, .08);
}

html[data-pqd-theme="dark"] {
  --pqd-accent-soft: #38241c;
  --pqd-bg: #11151b;
  --pqd-bg-soft: #171c23;
  --pqd-bg-hero: #1b212a;
  --pqd-text: #f3f5f7;
  --pqd-muted: #aeb7c3;
  --pqd-line: #2d3540;
  --pqd-shadow: 0 18px 44px rgba(0, 0, 0, .3);
}

html {
  scroll-behavior: smooth;
}

body.product-feed-documentation-page {
  background: var(--pqd-bg);
  color: var(--pqd-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

.product-feed-documentation-page *,
.product-feed-documentation-page *::before,
.product-feed-documentation-page *::after {
  box-sizing: border-box;
}

.product-feed-documentation-page a {
  color: inherit;
  text-decoration: none;
}

.pqd-skip-link {
  position: fixed;
  z-index: 200;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--pqd-accent);
  color: #fff;
  padding: 10px 14px;
}

.pqd-skip-link:focus {
  transform: translateY(0);
}

.pqd-topbar {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: var(--pqd-sidebar) minmax(0, 1fr);
  height: var(--pqd-header);
  border-bottom: 1px solid var(--pqd-line);
  background: color-mix(in srgb, var(--pqd-bg) 94%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.pqd-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  padding: 0 34px;
}

.pqd-home-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pqd-brand-mark {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff7a47, var(--pqd-accent));
  box-shadow: 0 8px 20px rgba(205, 85, 41, .24);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.pqd-brand-divider {
  width: 1px;
  height: 28px;
  background: var(--pqd-line);
}

.pqd-brand-label {
  overflow: hidden;
  border-radius: 7px;
  background: var(--pqd-bg-soft);
  color: var(--pqd-accent);
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pqd-topbar-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 0 26px 0 32px;
}

.pqd-search {
  position: relative;
  width: min(100%, 380px);
}

.pqd-search svg {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--pqd-muted);
  pointer-events: none;
}

.pqd-search input {
  width: 100%;
  height: 38px;
  border: 1px solid #ccd3dc;
  border-radius: 8px;
  outline: 0;
  background: var(--pqd-bg);
  color: var(--pqd-text);
  padding: 0 40px 0 39px;
  font: inherit;
  font-size: 14px;
  box-shadow: 0 2px 7px rgba(17, 24, 39, .04);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.pqd-search input:focus {
  border-color: var(--pqd-accent);
  box-shadow: 0 0 0 3px rgba(205, 85, 41, .12);
}

.pqd-search-clear {
  position: absolute;
  top: 50%;
  right: 7px;
  display: grid;
  width: 28px;
  height: 28px;
  transform: translateY(-50%);
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--pqd-muted);
  cursor: pointer;
  font-size: 18px;
}

.pqd-search-clear[hidden] {
  display: none;
}

.pqd-icon-button {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--pqd-bg-soft);
  color: var(--pqd-text);
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}

.pqd-icon-button:hover,
.pqd-icon-button:focus-visible {
  background: var(--pqd-accent-soft);
  color: var(--pqd-accent);
  outline: 0;
}

.pqd-icon-button svg {
  width: 20px;
  height: 20px;
}

.pqd-menu-button {
  display: none;
}

.pqd-layout {
  min-height: 100vh;
  padding-top: var(--pqd-header);
}

.pqd-sidebar {
  position: fixed;
  z-index: 90;
  inset: var(--pqd-header) auto 0 0;
  width: var(--pqd-sidebar);
  overflow-y: auto;
  border-right: 1px solid var(--pqd-line);
  background: var(--pqd-bg);
  padding: 22px 20px 30px 34px;
  scrollbar-width: thin;
}

.pqd-sidebar h2 {
  margin: 0 0 16px;
  color: var(--pqd-text);
  font-family: Inter, sans-serif;
  font-size: 17px;
  font-weight: 700;
}

.pqd-language-block {
  margin-bottom: 26px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--pqd-line);
}

.pqd-sidebar-label {
  display: block;
  margin-bottom: 9px;
  color: var(--pqd-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pqd-language-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  border: 1px solid var(--pqd-line);
  border-radius: 9px;
  background: var(--pqd-bg-soft);
  padding: 4px;
}

.pqd-language-switch button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--pqd-muted);
  padding: 9px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.pqd-language-switch button.is-active {
  background: var(--pqd-accent);
  color: #fff;
  box-shadow: 0 5px 14px rgba(205, 85, 41, .2);
}

.pqd-flag {
  display: block;
  width: 18px;
  height: 12px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
}

.pqd-sidebar-filter {
  position: relative;
  margin-bottom: 14px;
}

.pqd-sidebar-filter svg {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  color: var(--pqd-muted);
}

.pqd-sidebar-filter input {
  width: 100%;
  height: 38px;
  border: 1px solid #ccd3dc;
  border-radius: 8px;
  outline: 0;
  background: var(--pqd-bg);
  color: var(--pqd-text);
  padding: 0 12px 0 38px;
  font: inherit;
  font-size: 13px;
}

.pqd-nav {
  display: grid;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pqd-nav li {
  margin: 0;
}

.pqd-nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 39px;
  border-radius: 7px;
  color: var(--pqd-text);
  padding: 8px 12px 8px 29px;
  font-size: 13px;
  line-height: 1.35;
  transition: color .16s ease, background .16s ease;
}

.pqd-nav a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 10px;
  width: 7px;
  height: 7px;
  transform: translateY(-50%);
  border: 1.5px solid #93a0b1;
  border-radius: 2px;
}

.pqd-nav a:hover,
.pqd-nav a:focus-visible,
.pqd-nav a.is-active {
  background: var(--pqd-accent-soft);
  color: var(--pqd-accent);
  outline: 0;
}

.pqd-nav a.is-active {
  font-weight: 700;
}

.pqd-nav a.is-active::before {
  border-color: var(--pqd-accent);
  background: var(--pqd-accent);
}

.pqd-sidebar-back {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  border-top: 1px solid var(--pqd-line);
  color: var(--pqd-muted);
  padding: 20px 8px 0;
  font-size: 12px;
  font-weight: 600;
}

.pqd-sidebar-back:hover {
  color: var(--pqd-accent);
}

.pqd-main {
  min-width: 0;
  margin-left: var(--pqd-sidebar);
  background: var(--pqd-bg);
}

.pqd-content {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 0 34px 80px;
}

.pqd-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  border-bottom: 1px solid var(--pqd-line);
  color: var(--pqd-muted);
  font-size: 13px;
}

.pqd-breadcrumbs a:hover {
  color: var(--pqd-accent);
}

.pqd-breadcrumbs svg {
  width: 16px;
  height: 16px;
}

.pqd-hero {
  margin: 0 -34px 32px;
  border-radius: 0 0 24px 24px;
  background:
    radial-gradient(circle at 92% 20%, rgba(205, 85, 41, .12), transparent 32%),
    var(--pqd-bg-hero);
  padding: 30px 34px 32px;
}

.pqd-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--pqd-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pqd-hero h1 {
  max-width: 820px;
  margin: 0;
  color: var(--pqd-text);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -.035em;
  line-height: 1.08;
}

.pqd-hero p {
  max-width: 850px;
  margin: 12px 0 0;
  color: var(--pqd-muted);
  font-size: 15px;
  line-height: 1.7;
}

.pqd-quick-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  margin: 0 0 34px;
  border: 1px solid rgba(205, 85, 41, .26);
  border-radius: 12px;
  background: var(--pqd-accent-soft);
  padding: 18px 20px;
}

.pqd-quick-note-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--pqd-accent);
  color: #fff;
  font-weight: 800;
}

.pqd-quick-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--pqd-text);
  font-size: 14px;
}

.pqd-quick-note p {
  margin: 0;
  color: var(--pqd-muted);
  font-size: 13px;
}

.pqd-section {
  scroll-margin-top: calc(var(--pqd-header) + 24px);
  margin: 0 0 54px;
}

.pqd-section[hidden] {
  display: none;
}

.pqd-section-header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--pqd-line);
}

.pqd-section-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 11px;
  background: var(--pqd-accent-soft);
  color: var(--pqd-accent);
  font-size: 12px;
  font-weight: 800;
}

.pqd-section h2 {
  margin: 0 0 5px;
  color: var(--pqd-text);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(22px, 2.8vw, 30px);
  letter-spacing: -.025em;
}

.pqd-section-header p {
  margin: 0;
  color: var(--pqd-muted);
  font-size: 14px;
}

.pqd-prose {
  color: var(--pqd-muted);
  font-size: 14px;
}

.pqd-prose p {
  margin: 0 0 14px;
}

.pqd-prose strong {
  color: var(--pqd-text);
}

.pqd-table-wrap {
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid var(--pqd-line);
  border-radius: 12px;
  background: var(--pqd-bg);
  box-shadow: 0 8px 30px rgba(17, 24, 39, .035);
}

.pqd-table-scroll {
  overflow-x: auto;
}

.pqd-field-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  color: var(--pqd-text);
  font-size: 13px;
}

.pqd-field-table th,
.pqd-field-table td {
  border-bottom: 1px solid var(--pqd-line);
  padding: 15px 17px;
  text-align: left;
  vertical-align: top;
}

.pqd-field-table th {
  background: var(--pqd-bg-soft);
  color: var(--pqd-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.pqd-field-table tr:last-child td {
  border-bottom: 0;
}

.pqd-field-table td:first-child {
  width: 20%;
  color: var(--pqd-text);
  font-weight: 700;
}

.pqd-field-table td:nth-child(2) {
  width: 45%;
}

.pqd-field-table td:nth-child(3) {
  width: 35%;
  color: var(--pqd-muted);
}

.pqd-field-table code,
.pqd-inline-code {
  border: 1px solid var(--pqd-line);
  border-radius: 5px;
  background: var(--pqd-bg-soft);
  color: var(--pqd-accent);
  padding: 2px 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .92em;
}

.pqd-callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  margin: 18px 0;
  border-left: 3px solid var(--pqd-accent);
  border-radius: 0 9px 9px 0;
  background: var(--pqd-bg-soft);
  padding: 15px 17px;
  color: var(--pqd-muted);
  font-size: 13px;
}

.pqd-callout-mark {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--pqd-accent-soft);
  color: var(--pqd-accent);
  font-weight: 800;
}

.pqd-callout p {
  margin: 0;
}

.pqd-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.pqd-card {
  border: 1px solid var(--pqd-line);
  border-radius: 12px;
  background: var(--pqd-bg);
  padding: 18px;
}

.pqd-card h3 {
  margin: 0 0 7px;
  color: var(--pqd-text);
  font-family: Inter, sans-serif;
  font-size: 14px;
}

.pqd-card p,
.pqd-card li {
  color: var(--pqd-muted);
  font-size: 13px;
}

.pqd-card p {
  margin: 0;
}

.pqd-card ul {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding-left: 17px;
}

.pqd-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin: 18px 0;
  list-style: none;
  padding: 0;
  counter-reset: pqd-flow;
}

.pqd-flow li {
  position: relative;
  min-height: 96px;
  border: 1px solid var(--pqd-line);
  border-radius: 10px;
  background: var(--pqd-bg-soft);
  padding: 38px 13px 13px;
  color: var(--pqd-muted);
  font-size: 12px;
  counter-increment: pqd-flow;
}

.pqd-flow li::before {
  content: counter(pqd-flow);
  position: absolute;
  top: 11px;
  left: 12px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--pqd-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.pqd-source-list {
  columns: 3 180px;
  column-gap: 22px;
  margin: 14px 0 0;
  border: 1px solid var(--pqd-line);
  border-radius: 10px;
  background: var(--pqd-bg-soft);
  padding: 16px 18px;
  list-style-position: inside;
}

.pqd-source-list li {
  break-inside: avoid;
  margin-bottom: 5px;
  color: var(--pqd-muted);
  font-size: 12px;
}

.pqd-search-empty {
  margin: 26px 0;
  border: 1px dashed var(--pqd-line);
  border-radius: 12px;
  background: var(--pqd-bg-soft);
  color: var(--pqd-muted);
  padding: 30px;
  text-align: center;
}

.pqd-footer {
  margin-top: 72px;
  border-top: 1px solid var(--pqd-line);
  padding: 26px 0 0;
  color: var(--pqd-muted);
  font-size: 12px;
}

.pqd-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.pqd-footer a {
  color: var(--pqd-accent);
  font-weight: 700;
}

.pqd-overlay {
  display: none;
}

[data-pqd-lang-copy="en"] {
  display: none;
}

html[data-pqd-language="en"] [data-pqd-lang-copy="ro"] {
  display: none;
}

html[data-pqd-language="en"] [data-pqd-lang-copy="en"] {
  display: revert;
}

@media (max-width: 960px) {
  :root {
    --pqd-sidebar: 300px;
  }

  .pqd-topbar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .pqd-brand {
    padding: 0 18px;
  }

  .pqd-brand-label {
    display: none;
  }

  .pqd-topbar-tools {
    padding: 0 14px;
  }

  .pqd-menu-button {
    display: grid;
  }

  .pqd-sidebar {
    transform: translateX(-105%);
    box-shadow: var(--pqd-shadow);
    transition: transform .22s ease;
  }

  body.pqd-sidebar-open .pqd-sidebar {
    transform: translateX(0);
  }

  .pqd-main {
    margin-left: 0;
  }

  .pqd-overlay {
    position: fixed;
    z-index: 80;
    inset: var(--pqd-header) 0 0;
    display: block;
    border: 0;
    background: rgba(15, 23, 42, .48);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
  }

  body.pqd-sidebar-open .pqd-overlay {
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 720px) {
  :root {
    --pqd-header: 60px;
  }

  .pqd-brand {
    gap: 9px;
    padding-right: 5px;
  }

  .pqd-brand-divider {
    display: none;
  }

  .pqd-topbar-tools {
    gap: 6px;
    padding-left: 5px;
  }

  .pqd-search {
    width: min(100%, 250px);
  }

  .pqd-search input {
    font-size: 12px;
  }

  .pqd-content {
    padding: 0 18px 60px;
  }

  .pqd-hero {
    margin-right: -18px;
    margin-left: -18px;
    border-radius: 0 0 18px 18px;
    padding: 25px 18px 27px;
  }

  .pqd-breadcrumbs {
    min-height: 46px;
  }

  .pqd-card-grid,
  .pqd-flow {
    grid-template-columns: 1fr;
  }

  .pqd-flow li {
    min-height: 0;
  }

  .pqd-table-wrap {
    margin-right: -6px;
    margin-left: -6px;
  }

  .pqd-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 500px) {
  .pqd-search {
    width: 46px;
  }

  .pqd-search input {
    width: 46px;
    padding-right: 0;
    color: transparent;
    cursor: pointer;
  }

  .pqd-search input::placeholder {
    color: transparent;
  }

  .pqd-search:focus-within {
    position: absolute;
    right: 12px;
    left: 62px;
    width: auto;
  }

  .pqd-search:focus-within input {
    width: 100%;
    padding-right: 40px;
    color: var(--pqd-text);
    cursor: text;
  }

  .pqd-search:focus-within input::placeholder {
    color: #8793a3;
  }

  .pqd-section-header {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 11px;
  }

  .pqd-section-number {
    width: 36px;
    height: 36px;
  }

  .pqd-source-list {
    columns: 2 130px;
  }
}

@media print {
  .pqd-topbar,
  .pqd-sidebar,
  .pqd-overlay,
  .pqd-footer {
    display: none !important;
  }

  .pqd-layout {
    padding-top: 0;
  }

  .pqd-main {
    margin-left: 0;
  }

  .pqd-content {
    width: 100%;
    padding: 0;
  }

  .pqd-section {
    break-inside: avoid;
  }
}
