/* Style ID v783 — the passport starts with a decision, then exposes the controls behind it. */
#passport {
  --passport-paper: #f5f1e8;
  --passport-ink: #080a0d;
  --passport-line: #11151b;
  --passport-acid: #d8ff26;
  --passport-blue: #2454ff;
  --passport-coral: #ff5b77;
  --passport-muted: #626a73;
  color: var(--passport-ink);
}

#passport > .passport-id-head,
body[data-theme] #passport > .passport-id-head,
html.native-layout-guard body[data-theme] #passport > .passport-id-head {
  position: static !important;
  inset: auto !important;
  display: flex !important;
  align-items: end !important;
  justify-content: space-between !important;
  gap: 24px !important;
  margin: 0 !important;
  padding: clamp(24px, 5vw, 54px) clamp(18px, 4vw, 48px) 28px !important;
  color: var(--passport-paper) !important;
  background: var(--passport-ink) !important;
  border: 2px solid var(--passport-ink) !important;
  border-radius: 0 !important;
}

#passport > .passport-id-head > div {
  max-width: 800px;
}

#passport > .passport-id-head .eyebrow {
  color: var(--passport-acid) !important;
  font-weight: 900 !important;
  letter-spacing: 0.14em !important;
}

#passport > .passport-id-head h2 {
  max-width: 13ch;
  margin: 10px 0 0 !important;
  color: var(--passport-paper) !important;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif !important;
  font-size: clamp(48px, 8.5vw, 104px) !important;
  font-weight: 500 !important;
  line-height: 0.88 !important;
  letter-spacing: -0.055em !important;
  text-transform: uppercase;
}

#passport .passport-id-deck {
  max-width: 60ch;
  margin: 18px 0 0 !important;
  color: rgba(245, 241, 232, 0.76) !important;
  font-size: clamp(15px, 1.7vw, 19px) !important;
  line-height: 1.45 !important;
}

#passport .passport-id-edit-action {
  min-height: 48px;
  padding: 0 18px !important;
  color: var(--passport-ink) !important;
  background: var(--passport-acid) !important;
  border: 2px solid var(--passport-acid) !important;
  border-radius: 0 !important;
  box-shadow: 5px 5px 0 var(--passport-coral) !important;
  font-weight: 900 !important;
  white-space: nowrap;
}

#passport .passport-layout,
body[data-theme] #passport .passport-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
  padding: 0 !important;
  background: var(--passport-paper) !important;
}

#passport .passport-id-panel,
body[data-theme] #passport .passport-id-panel,
html.native-layout-guard body[data-theme] #passport .passport-id-panel {
  order: 1 !important;
  margin: 0 !important;
  padding: clamp(18px, 4vw, 48px) !important;
  color: var(--passport-ink) !important;
  background: var(--passport-paper) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

#passport .passport-id-edition {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 10px;
  border-bottom: 2px solid var(--passport-ink);
  color: var(--passport-ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

#passport .passport-id-edition strong {
  color: var(--passport-blue);
  text-align: right;
}

#passport .passport-id-board,
body[data-theme] #passport .passport-id-board {
  display: block !important;
  margin: 0 !important;
  padding: clamp(18px, 3vw, 36px) !important;
  color: var(--passport-paper) !important;
  background: var(--passport-ink) !important;
  border: 2px solid var(--passport-ink) !important;
  border-radius: 0 !important;
  box-shadow: 10px 10px 0 var(--passport-blue) !important;
}

#passport .passport-id-ticket-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  margin: 0 !important;
  padding: 0 0 22px !important;
  border-bottom: 1px solid rgba(245, 241, 232, 0.32);
  overflow: visible !important;
}

#passport .passport-id-ticket-head > div {
  min-width: 0;
}

#passport .passport-id-ticket-head,
body[data-theme] #passport .passport-id-ticket-head,
html.native-layout-guard #passport .passport-id-ticket-head,
html.native-layout-guard body[data-theme] #passport .passport-id-ticket-head {
  overflow: visible !important;
}

#passport .passport-id-ticket-head .eyebrow {
  color: var(--passport-acid) !important;
  font-weight: 900 !important;
  letter-spacing: 0.11em !important;
}

#passport .passport-id-ticket-head h3 {
  max-width: 12ch;
  margin: 10px 0 0 !important;
  color: var(--passport-paper) !important;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif !important;
  font-size: clamp(38px, 6.4vw, 76px) !important;
  font-weight: 500 !important;
  line-height: 0.91 !important;
  letter-spacing: -0.045em !important;
  text-transform: uppercase;
}

#passport .passport-id-narrative {
  max-width: 55ch;
  margin: 14px 0 0 !important;
  color: rgba(245, 241, 232, 0.78) !important;
  font-size: 16px !important;
  line-height: 1.45 !important;
}

#passport .passport-id-ticket-head > strong {
  display: grid !important;
  width: clamp(70px, 10vw, 104px) !important;
  height: clamp(70px, 10vw, 104px) !important;
  box-sizing: border-box;
  place-items: center;
  color: var(--passport-ink) !important;
  background: var(--passport-acid) !important;
  border: 3px solid var(--passport-paper) !important;
  border-radius: 50% !important;
  box-shadow: 4px 4px 0 var(--passport-coral) !important;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif !important;
  font-size: clamp(30px, 4.5vw, 54px) !important;
  font-weight: 500 !important;
  letter-spacing: -0.04em !important;
}

#passport .passport-id-product {
  margin: 22px 0 0;
}

#passport .passport-id-product-card {
  display: grid;
  grid-template-columns: 50px minmax(0, 0.92fr) minmax(0, 1.08fr);
  min-height: 280px;
  overflow: hidden;
  color: var(--passport-ink);
  background: var(--passport-paper);
  border: 2px solid var(--passport-paper);
}

#passport .passport-id-product-number {
  display: flex;
  align-items: end;
  padding: 8px;
  color: var(--passport-paper);
  background: var(--passport-blue);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 30px;
  letter-spacing: -0.04em;
}

#passport .passport-id-product-card img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  background: #c9c4ba;
}

#passport .passport-id-product-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: end;
  padding: clamp(14px, 2.4vw, 28px);
  background: var(--passport-paper);
}

#passport .passport-id-product-copy small,
#passport .passport-id-product-copy em {
  color: var(--passport-blue);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#passport .passport-id-product-copy strong {
  display: block;
  margin-top: 8px;
  color: var(--passport-ink);
  font-size: clamp(20px, 2.8vw, 32px);
  font-weight: 900;
  line-height: 1.02;
}

#passport .passport-id-product-copy span {
  display: block;
  margin-top: 9px;
  color: var(--passport-muted);
  font-size: 13px;
  line-height: 1.35;
}

#passport .passport-id-product-copy em {
  margin-top: 18px;
  color: var(--passport-ink);
}

#passport .passport-metrics {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0 !important;
  margin: 22px 0 0 !important;
  border: 1px solid rgba(245, 241, 232, 0.42) !important;
  border-radius: 0 !important;
}

#passport .passport-metrics > div {
  display: flex !important;
  min-height: 96px;
  flex-direction: column;
  justify-content: end;
  padding: 13px !important;
  color: var(--passport-paper) !important;
  background: transparent !important;
  border: 0 !important;
  border-right: 1px solid rgba(245, 241, 232, 0.42) !important;
  border-radius: 0 !important;
}

#passport .passport-metrics > div:last-child {
  border-right: 0 !important;
}

#passport .passport-metrics strong {
  color: var(--passport-acid) !important;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif !important;
  font-size: clamp(24px, 3.2vw, 38px) !important;
  font-weight: 500 !important;
  line-height: 0.9 !important;
}

#passport .passport-metrics span {
  margin-top: 7px;
  color: rgba(245, 241, 232, 0.7) !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
}

#passport .passport-dna {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin: 22px 0 0 !important;
}

#passport .passport-dna-row {
  display: block !important;
  padding: 12px 0 0 !important;
  color: var(--passport-paper) !important;
  border-top: 1px solid rgba(245, 241, 232, 0.35) !important;
  border-radius: 0 !important;
}

#passport .passport-dna-row > div:first-child {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px;
}

#passport .passport-dna-row small {
  color: var(--passport-coral) !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
}

#passport .passport-dna-row strong {
  color: var(--passport-paper) !important;
  font-size: 14px !important;
  line-height: 1.15 !important;
}

#passport .passport-dna-row span {
  color: var(--passport-acid) !important;
  font-size: 12px !important;
}

#passport .passport-dna-bar {
  display: block !important;
  height: 5px !important;
  margin-top: 10px !important;
  overflow: hidden;
  background: rgba(245, 241, 232, 0.18) !important;
  border-radius: 0 !important;
}

#passport .passport-dna-bar > span {
  display: block !important;
  height: 100% !important;
  background: var(--passport-acid) !important;
}

#passport .passport-reasons {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0 !important;
  margin: 22px 0 0 !important;
  border: 1px solid rgba(245, 241, 232, 0.34) !important;
  border-radius: 0 !important;
}

#passport .passport-reasons > small {
  grid-column: 1 / -1;
  padding: 10px 12px;
  color: var(--passport-ink) !important;
  background: var(--passport-acid) !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: 0.11em !important;
}

#passport .passport-reasons p {
  display: block !important;
  min-height: 86px;
  margin: 0 !important;
  padding: 12px !important;
  color: var(--passport-paper) !important;
  background: transparent !important;
  border: 0 !important;
  border-right: 1px solid rgba(245, 241, 232, 0.34) !important;
  border-bottom: 1px solid rgba(245, 241, 232, 0.34) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 13px !important;
  line-height: 1.38 !important;
}

#passport .passport-reasons p:nth-child(odd) {
  border-right: 0 !important;
}

#passport .passport-reasons p:last-child,
#passport .passport-reasons p:nth-last-child(2) {
  border-bottom: 0 !important;
}

#passport .passport-id-actions {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin: 24px 0 0 !important;
}

#passport .passport-id-actions button {
  min-height: 50px !important;
  padding: 10px 12px !important;
  color: var(--passport-paper) !important;
  background: transparent !important;
  border: 1px solid rgba(245, 241, 232, 0.55) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
}

#passport .passport-id-actions #usePassportStudioButton {
  color: var(--passport-ink) !important;
  background: var(--passport-acid) !important;
  border-color: var(--passport-acid) !important;
  grid-column: span 2;
}

#passport .passport-id-actions #savePassportButton {
  grid-column: span 3;
  color: var(--passport-paper) !important;
  background: var(--passport-blue) !important;
  border-color: var(--passport-blue) !important;
}

#passport .passport-id-board .status-line {
  min-height: 0 !important;
  margin: 12px 0 0 !important;
  color: rgba(245, 241, 232, 0.74) !important;
}

#passport .passport-edit-products,
body[data-theme] #passport .passport-edit-products,
html.native-layout-guard body[data-theme] #passport .passport-edit-products {
  order: 2 !important;
  margin: 0 !important;
  padding: clamp(20px, 4vw, 48px) !important;
  color: var(--passport-ink) !important;
  background: #b7c2d1 !important;
  border: 0 !important;
  border-top: 2px solid var(--passport-ink) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

#passport .passport-edit-products .panel-head {
  margin: 0 0 16px !important;
}

#passport .passport-edit-products .panel-head .eyebrow {
  color: var(--passport-blue) !important;
  font-weight: 900 !important;
}

#passport .passport-edit-products .panel-head h3 {
  max-width: 16ch;
  margin-top: 6px !important;
  color: var(--passport-ink) !important;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif !important;
  font-size: clamp(31px, 5vw, 56px) !important;
  font-weight: 500 !important;
  line-height: 0.93 !important;
  letter-spacing: -0.045em !important;
  text-transform: uppercase;
}

#passport .passport-products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

#passport .passport-product-card {
  display: grid !important;
  min-width: 0;
  overflow: hidden;
  color: var(--passport-paper) !important;
  background: var(--passport-ink) !important;
  border: 2px solid var(--passport-ink) !important;
  border-radius: 0 !important;
}

/* Legacy density guards only showed a sample of the old passport. Style ID keeps
   every ranked product and proof visible because they are part of the decision. */
#passport .passport-dna > *,
body[data-theme] #passport .passport-dna > *,
html.native-layout-guard #passport .passport-dna > *,
html.native-layout-guard body[data-theme] #passport .passport-dna > *,
#passport .passport-reasons > *,
body[data-theme] #passport .passport-reasons > *,
html.native-layout-guard #passport .passport-reasons > *,
html.native-layout-guard body[data-theme] #passport .passport-reasons > *,
#passport .passport-products > *,
body[data-theme] #passport .passport-products > *,
html.native-layout-guard #passport .passport-products > *,
html.native-layout-guard body[data-theme] #passport .passport-products > * {
  display: block !important;
}

#passport .passport-products > .passport-product-card,
body[data-theme] #passport .passport-products > .passport-product-card,
html.native-layout-guard #passport .passport-products > .passport-product-card,
html.native-layout-guard body[data-theme] #passport .passport-products > .passport-product-card {
  display: grid !important;
}

#passport .passport-product-card img {
  width: 100% !important;
  height: 190px !important;
  object-fit: cover !important;
  background: #c9c4ba !important;
}

#passport .passport-product-card > div {
  padding: 12px !important;
}

#passport .passport-product-card strong {
  color: var(--passport-paper) !important;
  font-size: 16px !important;
  line-height: 1.05 !important;
}

#passport .passport-product-card > div > span {
  display: block !important;
  margin-top: 7px !important;
  color: rgba(245, 241, 232, 0.66) !important;
  font-size: 11px !important;
  line-height: 1.3 !important;
}

#passport .passport-product-tags {
  display: flex !important;
  flex-wrap: wrap;
  gap: 5px !important;
  margin-top: 10px !important;
}

#passport .passport-product-tags span {
  margin: 0 !important;
  padding: 4px 5px !important;
  color: var(--passport-ink) !important;
  background: var(--passport-acid) !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-size: 9px !important;
  font-weight: 900 !important;
}

#passport .passport-product-card .mini-product-link {
  margin: 0 12px 12px !important;
  padding: 9px 10px !important;
  color: var(--passport-paper) !important;
  border: 1px solid rgba(245, 241, 232, 0.6) !important;
  border-radius: 0 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  text-align: center;
  text-decoration: none !important;
}

#passport .passport-panel,
#passport .size-passport-panel,
#passport .passport-history-panel,
body[data-theme] #passport .passport-panel,
body[data-theme] #passport .size-passport-panel,
body[data-theme] #passport .passport-history-panel {
  margin: 0 !important;
  padding: clamp(20px, 4vw, 48px) !important;
  color: var(--passport-ink) !important;
  background: var(--passport-paper) !important;
  border: 0 !important;
  border-top: 2px solid var(--passport-ink) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

#passport .passport-panel { order: 3 !important; }
#passport .size-passport-panel { order: 4 !important; }
#passport .passport-history-panel { order: 5 !important; }

@media (max-width: 680px) {
  #passport > .passport-id-head,
  body[data-theme] #passport > .passport-id-head,
  html.native-layout-guard body[data-theme] #passport > .passport-id-head {
    display: block !important;
    padding: 26px 18px 24px !important;
  }

  #passport > .passport-id-head h2 {
    max-width: 10ch;
    font-size: clamp(48px, 15.2vw, 66px) !important;
  }

  #passport .passport-id-edit-action {
    width: calc(100% - 5px) !important;
    margin: 22px 0 0 !important;
  }

  #passport .passport-id-panel,
  body[data-theme] #passport .passport-id-panel {
    padding: 18px !important;
  }

  #passport .passport-id-board { box-shadow: 7px 7px 0 var(--passport-blue) !important; }

  #passport .passport-id-ticket-head {
    grid-template-columns: minmax(0, 1fr) 70px;
    gap: 14px;
  }

  #passport .passport-id-ticket-head h3 {
    max-width: 10ch;
    font-size: clamp(36px, 11.5vw, 52px) !important;
  }

  #passport .passport-id-ticket-head > strong {
    width: 64px !important;
    height: 64px !important;
    font-size: 30px !important;
  }

  #passport .passport-id-product-card {
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 0;
  }

  #passport .passport-id-product-number {
    grid-row: 1 / span 2;
    min-height: 278px;
    font-size: 26px;
  }

  #passport .passport-id-product-card img {
    min-height: 220px;
    height: 220px;
  }

  #passport .passport-id-product-copy {
    min-height: 0;
    padding: 14px;
  }

  #passport .passport-id-product-copy strong { font-size: 23px; }

  #passport .passport-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }

  #passport .passport-metrics > div:nth-child(2) { border-right: 0 !important; }
  #passport .passport-metrics > div:nth-child(-n + 2) { border-bottom: 1px solid rgba(245, 241, 232, 0.42) !important; }

  #passport .passport-dna { grid-template-columns: minmax(0, 1fr) !important; }

  #passport .passport-reasons { grid-template-columns: minmax(0, 1fr) !important; }

  #passport .passport-reasons p,
  #passport .passport-reasons p:nth-child(odd) {
    min-height: 0;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(245, 241, 232, 0.34) !important;
  }

  #passport .passport-reasons p:last-child { border-bottom: 0 !important; }

  #passport .passport-id-actions { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  #passport .passport-id-actions #usePassportStudioButton,
  #passport .passport-id-actions #savePassportButton { grid-column: span 2; }

  #passport .passport-edit-products,
  body[data-theme] #passport .passport-edit-products,
  #passport .passport-panel,
  #passport .size-passport-panel,
  #passport .passport-history-panel {
    padding: 20px 18px !important;
  }

  #passport .passport-products { grid-template-columns: minmax(0, 1fr) !important; }

  #passport .passport-product-card {
    grid-template-columns: 104px minmax(0, 1fr) !important;
    min-height: 132px;
  }

  #passport .passport-product-card img {
    grid-row: 1 / span 2;
    height: 100% !important;
    min-height: 130px;
  }

  #passport .passport-product-card > div { padding: 12px 12px 4px !important; }
  #passport .passport-product-card .mini-product-link { margin: 4px 12px 12px !important; }
}

@media (min-width: 681px) and (max-width: 1040px) {
  #passport .passport-products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (prefers-reduced-motion: reduce) {
  #passport * { scroll-behavior: auto !important; }
}
