/* For Security / Enterprise page */

.pd-sec-hero {
  display: grid; grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); gap: 44px;
  align-items: start; padding-top: 44px;
}
.pd-sec-eyebrow {
  margin: 8px 0 0; color: var(--pd-blue); font-size: 11.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
}
.pd-sec-hero h1 {
  margin: 14px 0 16px; font-size: 45px; line-height: 1.07; font-weight: 800; letter-spacing: -0.035em; color: var(--pd-ink);
}
.pd-sec-hero h1 em { font-style: normal; color: var(--pd-blue); }
.pd-sec-body { margin: 0; max-width: 487px; font-size: 17.5px; line-height: 1.42; color: var(--pd-ink-2); }

.pd-sec-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.pd-sec-actions .pd-btn { height: 48px; font-size: 15px; font-weight: 500; }
.pd-sec-btn-primary {
  min-width: 200px; padding: 0 24px; color: #fff !important; background: var(--pd-blue);
  box-shadow: 0 1px 2px rgba(59, 69, 255, .25), 0 6px 16px rgba(59, 69, 255, .2);
}
.pd-sec-btn-primary:hover { filter: brightness(1.08); }
.pd-sec-btn-primary:active { transform: translateY(1px); }
.pd-sec-btn-secondary {
  min-width: 260px; padding: 0 22px 0 12px; gap: 14px; justify-content: flex-start;
  background: #fff; border: 1px solid #D5DCEA; color: var(--pd-ink) !important;
}
.pd-sec-btn-secondary .icon { color: var(--pd-blue); }
.pd-sec-btn-secondary:hover { border-color: var(--pd-blue); }

.pd-sec-trust { list-style: none; display: flex; gap: 12px 36px; width: max-content; margin: 38px 0 0; padding: 0; }
.pd-sec-trust li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--pd-ink-2); white-space: nowrap; }
.pd-sec-trust .icon { color: var(--pd-blue); }

/* Dependencies preview */
.pd-deps { padding: 18px 20px 20px; }
.pd-deps-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; padding-left: 4px; }
.pd-deps-head h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.015em; }
.pd-deps-meta { display: flex; align-items: center; gap: 12px; }
.pd-deps-example { font-size: 11.5px; color: var(--pd-ink-3); }
.pd-deps-count {
  padding: 6px 13px; border: 1px solid var(--pd-line); border-radius: 7px; background: #FAFBFD;
  font-size: 13px; font-weight: 500; color: var(--pd-ink);
}

.pd-deps-table {
  width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed;
  border: 1px solid var(--pd-line); border-radius: 8px; overflow: hidden;
  font-size: 13.5px; color: var(--pd-ink);
}
.pd-deps-table th, .pd-deps-table td { height: 43px; padding: 0 13px; text-align: left; vertical-align: middle; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-deps-table thead th { height: 40px; background: #F6F8FB; font-size: 13px; color: var(--pd-ink-2); font-weight: 500; }
.pd-deps-table tbody tr > * { border-top: 1px solid var(--pd-line-2); }
.pd-deps-table tr > :first-child { width: 29%; border-right: 1px solid var(--pd-line-2); }
.pd-deps-table tr > :nth-child(2) { width: 18.5%; }
.pd-deps-table tr > :nth-child(3) { width: 17.5%; }
.pd-deps-table tr > :nth-child(4) { width: 16%; }
.pd-deps-table tr > :last-child { border-left: 1px solid var(--pd-line-2); }
.pd-deps-model { font-weight: 400 !important; }

.pd-deps-rev { font-variant-ligatures: none; }
.pd-deps-rev code { font-family: var(--pd-mono); font-size: 13px; font-weight: 500; color: var(--pd-ink); }
.pd-deps-copy {
  margin-left: 6px; padding: 2px; border: 0; background: none; color: var(--pd-ink-3); cursor: pointer; border-radius: 4px; vertical-align: middle; line-height: 0;
}
.pd-deps-copy:hover { color: var(--pd-blue); }
.pd-deps-copy:focus-visible { outline: 2px solid var(--pd-blue); outline-offset: 1px; }

.pd-exposure-none { color: var(--pd-ink-3); }
.pd-exposure-low { color: var(--pd-ink); }
.pd-exposure-medium { color: var(--pd-warn-ink); font-weight: 500; }
.pd-exposure-high { color: var(--pd-danger); font-weight: 500; }

.pd-status {
  display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 6px;
  font-size: 13px; font-weight: 500; border: 1px solid transparent;
}
.pd-status-ok { min-width: 64px; background: var(--pd-success-pale); color: var(--pd-success-ink); border-color: #CDEFDD; }
.pd-status-ok .icon { color: var(--pd-success); }
.pd-status-review { background: var(--pd-danger-pale); color: var(--pd-danger-ink); border-color: var(--pd-danger-line); }

.pd-deps-alert {
  display: flex; align-items: center; gap: 16px; margin-top: 20px; padding: 16px 20px;
  border-radius: 8px; background: #FFEFF1; border: 1px solid var(--pd-danger-line); color: var(--pd-danger-ink);
  transition: border-color .15s ease;
}
.pd-deps-alert:hover { border-color: #FFB3BF; }
.pd-deps-alert > .icon:first-child { color: var(--pd-danger); }
.pd-deps-alert-text { flex: 1; min-width: 0; }
.pd-deps-alert-text strong { display: block; font-size: 15.5px; font-weight: 600; color: var(--pd-danger); }
.pd-deps-alert-text span { display: block; margin-top: 3px; font-size: 13px; color: var(--pd-danger-ink); }
.pd-deps-alert > .icon:last-child { color: var(--pd-danger-ink); }

/* Capability cards */
.pd-caps { margin-top: 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pd-cap {
  display: grid; grid-template-columns: 60px minmax(0, 1fr); grid-template-rows: 60px auto 1fr; column-gap: 20px;
  padding: 18px 18px 22px 20px; box-shadow: none;
}
.pd-cap-icon { grid-row: 1; width: 60px; height: 60px; border-radius: 10px; display: grid; place-items: center; }
.pd-cap-blue { background: var(--pd-blue-pale); color: var(--pd-blue); }
.pd-cap-green { background: var(--pd-success-pale); color: var(--pd-success-ink); }
.pd-cap-violet { background: #F1EFFF; color: #4B45E8; }
.pd-cap h3 { grid-column: 2; align-self: center; margin: 0; font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; }
.pd-cap p { grid-column: 2; margin: 0 0 14px; font-size: 13.5px; line-height: 1.4; color: var(--pd-ink-2); }
.pd .pd-cap .pd-link { grid-column: 2; align-self: end; justify-self: start; font-size: 13.5px; }

/* What PinDiff does not do */
.pd-bound {
  margin: 22px 0 8px; display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
  padding: 22px 0; box-shadow: none;
}
.pd-bound-lead {
  display: grid; grid-template-columns: 62px minmax(0, 1fr); column-gap: 20px; align-items: center;
  padding: 10px 28px 10px 20px;
}
.pd-bound-icon {
  grid-row: 1 / span 2; align-self: start; width: 62px; height: 62px; border-radius: 10px;
  display: grid; place-items: center; background: var(--pd-danger-pale); color: var(--pd-danger);
}
.pd-bound-lead h2 { margin: 0; font-size: 25px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; }
.pd-bound-lead p { grid-column: 2; margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--pd-ink-2); }

.pd-bound-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pd-bound-item { padding: 0 24px 0 26px; border-left: 1px solid var(--pd-line); color: var(--pd-ink-2); }
.pd-bound-item .icon { color: var(--pd-ink); }
.pd-bound-item h3 { margin: 10px 0 5px; font-size: 13.5px; font-weight: 700; color: var(--pd-ink); }
.pd-bound-item p { margin: 0; font-size: 13px; line-height: 1.45; }

/* Responsive */
@media (max-width: 1200px) {
  .pd-sec-hero h1 { font-size: 42px; }
  .pd-sec-hero { gap: 32px; }
  .pd-sec-trust { width: auto; flex-wrap: wrap; }
  .pd-cap { grid-template-columns: 1fr; grid-template-rows: auto; row-gap: 14px; }
  .pd-cap h3, .pd-cap p, .pd .pd-cap .pd-link { grid-column: 1; }
  .pd-cap p { margin: 0; }
}

@media (max-width: 1040px) {
  .pd-sec-hero { grid-template-columns: 1fr; gap: 32px; }
  .pd-sec-copy { max-width: 720px; }
  .pd-caps { grid-template-columns: 1fr 1fr; }
  .pd-cap { grid-template-columns: 60px minmax(0, 1fr); grid-template-rows: 60px auto 1fr; row-gap: 0; }
  .pd-cap h3, .pd-cap p, .pd .pd-cap .pd-link { grid-column: 2; }
  .pd-cap p { margin: 0 0 16px; }
  .pd-bound { grid-template-columns: 1fr; padding: 22px 0 8px; }
  .pd-bound-items { margin-top: 18px; padding: 20px 0 14px; border-top: 1px solid var(--pd-line); }
  .pd-bound-item:first-child { border-left: 0; }
}

@media (max-width: 760px) {
  .pd-sec-hero { padding-top: 28px; }
  .pd-sec-hero h1 { font-size: 33px; }
  .pd-sec-hero h1 br { display: none; }
  .pd-sec-body { font-size: 16px; }
  .pd-sec-actions .pd-btn { flex: 1 1 100%; min-width: 0; justify-content: center; }
  .pd-sec-trust { flex-direction: column; margin-top: 24px; }
  .pd-deps { padding: 16px; }
  .pd-deps-head { flex-wrap: wrap; }

  .pd-deps-table, .pd-deps-table tbody { display: block; border: 0; border-radius: 0; overflow: visible; }
  .pd-deps-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pd-deps-table tbody tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "model status" "rev exposure";
    gap: 6px 12px; padding: 12px 14px; border: 1px solid var(--pd-line); border-radius: 8px;
  }
  .pd-deps-table tbody tr + tr { margin-top: 8px; }
  .pd-deps-table tbody tr > * { display: block; width: auto !important; height: auto; padding: 0; border: 0 !important; }
  .pd-deps-model { grid-area: model; align-self: center; font-weight: 600 !important; }
  .pd-deps-rev { grid-area: rev; }
  .pd-deps-table .pd-deps-upstream { display: none; }
  .pd-deps-exposure { grid-area: exposure; justify-self: end; font-size: 13px; }
  .pd-deps-exposure .pd-sr { position: static; width: auto; height: auto; clip: auto; overflow: visible; color: var(--pd-ink-3); }
  .pd-deps-status { grid-area: status; justify-self: end; }

  .pd-caps { grid-template-columns: 1fr; margin-top: 28px; }
  .pd-bound-lead { padding: 0 18px; column-gap: 14px; }
  .pd-bound-icon { width: 52px; height: 52px; }
  .pd-bound-lead h2 { font-size: 21px; }
  .pd-bound-lead p { grid-column: 1 / -1; margin-top: 14px; }
  .pd-bound-items { grid-template-columns: 1fr; gap: 18px; }
  .pd-bound-item { border-left: 0; padding: 0 18px; }
}
