/* Developers page */

.pd-dev-hero {
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  gap: 36px;
  align-items: start;
  padding-top: 34px;
}
.pd-dev-eyebrow {
  margin: 6px 0 0;
  color: var(--pd-blue);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.pd-dev-hero h1 {
  margin: 14px 0 16px;
  font-size: 52px;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.038em;
  color: var(--pd-ink);
}
.pd-dev-hero h1 em { font-style: normal; color: var(--pd-blue); }
.pd-dev-body {
  margin: 0;
  max-width: 460px;
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--pd-ink-2);
}
.pd-dev-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pd-dev-actions .pd-btn { height: 48px; padding: 0 22px; font-size: 15px; font-weight: 600; border-radius: 8px; }
.pd-dev-btn-primary {
  min-width: 158px;
  color: #fff !important;
  background: var(--pd-blue);
  box-shadow: 0 1px 2px rgba(59, 69, 255, .22), 0 8px 16px rgba(59, 69, 255, .18);
}
.pd-dev-btn-primary:hover { filter: brightness(1.06); }
.pd-dev-btn-primary:active { transform: translateY(1px); }
.pd-dev-btn-secondary {
  min-width: 210px;
  padding: 0 20px;
  gap: 10px;
  background: #fff;
  border: 1px solid #D7DEEA;
  color: var(--pd-ink) !important;
  box-shadow: none;
}
.pd-dev-btn-secondary .icon { color: var(--pd-blue); }
.pd-dev-btn-secondary:hover { border-color: var(--pd-blue); }
.pd-dev-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 22px 0 0;
  padding: 0;
}
.pd-dev-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #5E6D84;
  white-space: nowrap;
}
.pd-dev-trust .icon { color: var(--pd-blue); }

/* CLI demo */
.pd-dev-demo { padding: 4px 10px 14px; }
.pd-dev-demo:target .pd-dev-cmd { border-color: var(--pd-blue); box-shadow: 0 0 0 4px rgba(59, 69, 255, .12); }
.pd-dev-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid #E6EDF5;
  padding: 0 6px;
}
.pd-dev-tabs button {
  appearance: none;
  flex: none;
  height: 48px;
  margin: 0 8px -1px;
  padding: 0 4px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: #7A879C;
  font: 500 14.5px var(--pd-font);
  cursor: pointer;
}
.pd-dev-tabs button:hover { color: var(--pd-ink); }
.pd-dev-tabs button[aria-selected="true"] {
  color: var(--pd-blue);
  font-weight: 600;
  border-bottom-color: var(--pd-blue);
}
.pd-dev-tabs button:focus-visible,
.pd-dev-cmd button:focus-visible,
.pd-dev-details:focus-visible { outline: 2px solid var(--pd-blue); outline-offset: 2px; }
.pd-dev-pane[hidden] { display: none !important; }
.pd-dev-pane { padding: 14px 6px 0; }

.pd-dev-cmd {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 46px;
  padding: 0 8px 0 14px;
  border: 1px solid #E4EAF3;
  border-radius: 8px;
  background: #fff;
}
.pd-dev-cmd code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--pd-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--pd-ink);
}
.pd-dev-cmd code span { margin-right: 8px; color: #8B97AB; font-weight: 400; }
.pd-dev-cmd button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: #8B97AB;
  cursor: pointer;
}
.pd-dev-cmd button:hover,
.pd-dev-cmd button.is-copied { color: var(--pd-blue); background: var(--pd-blue-pale); }

.pd-dev-notes {
  margin-top: 12px;
  padding: 14px 16px 14px;
  border-radius: 10px;
  background: #F4F7FB;
}
.pd-dev-lead {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 13.5px;
  line-height: 1.45;
  color: #3E4E68;
}
.pd-dev-lead .icon { margin-top: 1px; color: var(--pd-blue); }
.pd-dev-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pd-dev-points li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.45;
  color: #3E4E68;
}
.pd-dev-points .icon { margin-top: 1px; color: var(--pd-blue); }
.pd-dev-points code {
  font-family: var(--pd-mono);
  font-size: 12.5px;
  font-weight: 500;
  color: #24324A;
}
.pd-dev-notes .pd-link { margin: 12px 0 0 24px; font-size: 14px; font-weight: 600; }

/* Terminal */
.pd-term {
  margin-top: 14px;
  padding: 12px 12px 8px;
  border-radius: 10px;
  background: #101828;
  color: #E8EDF5;
  font-family: var(--pd-mono);
  font-size: 11.5px;
  line-height: 1.45;
}
.pd-term-dots { display: flex; gap: 6px; margin: 2px 0 12px; }
.pd-term-dots span { width: 10px; height: 10px; border-radius: 50%; }
.pd-term-dots span:nth-child(1) { background: #FF5F57; }
.pd-term-dots span:nth-child(2) { background: #FEBC2E; }
.pd-term-dots span:nth-child(3) { background: #28C840; }
.pd-term-scroll { overflow-x: auto; }
.pd-term-line { margin: 0; color: #E8EDF5; white-space: nowrap; }
.pd-term-dollar { color: #4ADE80; margin-right: 6px; }
.pd-term-muted,
.pd-term-line.is-muted { margin: 2px 0 0; color: #94A3B8; }
.pd-term-found { margin: 12px 0 0; color: #F8FAFC; font-weight: 500; }
.pd-term-line.is-ok { margin-top: 10px; color: #4ADE80; }
.pd-term-summary { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 3px; }
.pd-term-summary li { display: flex; align-items: center; gap: 7px; white-space: nowrap; font-weight: 500; }
.pd-term-summary li.is-ok,
.pd-term-summary li.is-ok span,
.pd-term-flag.is-pinned { color: #34D399; }
.pd-term-summary li.is-warn,
.pd-term-summary li.is-warn span,
.pd-term-flag.is-floating,
.pd-term-rev.is-float { color: #FBBF24; }
.pd-term-summary li.is-bad,
.pd-term-summary li.is-bad span,
.pd-term-flag.is-unknown { color: #FB7185; }
.pd-term-summary .icon,
.pd-term-flag .icon { color: inherit; }

.pd-term-table { min-width: 100%; margin-top: 12px; }
.pd-term-row {
  display: grid;
  grid-template-columns: 102px minmax(240px, 1.7fr) 76px minmax(128px, .9fr);
  column-gap: 10px;
  align-items: center;
  min-height: 22px;
  padding: 1px 2px;
  white-space: nowrap;
}
.pd-term-row.is-head {
  min-height: 22px;
  margin-bottom: 2px;
  border-bottom: 1px dashed rgba(148, 163, 184, .45);
  color: #8B9BB3;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pd-term-row.is-hot {
  background: rgba(220, 48, 72, .38);
  border-radius: 4px;
}
.pd-term-row.is-hot .pd-term-file { color: #FECDD3; }
.pd-term-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
}
.pd-term-repo { color: #E8EDF5; }
.pd-term-file { color: #94A3B8; }
.pd-term-facts { margin: 12px 0 4px; display: grid; gap: 8px; }
.pd-term-facts div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 12px; }
.pd-term-facts dt { color: #94A3B8; }
.pd-term-facts dd { margin: 0; color: #F8FAFC; }

/* Integrations */
.pd-dev-int {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(190px, .95fr) repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  align-items: stretch;
}
.pd-dev-int-lead { padding: 8px 8px 4px 6px; }
.pd-dev-int-lead h2,
.pd-dev-pr-lead h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.pd-dev-int-lead p,
.pd-dev-pr-lead p {
  margin: 8px 0 0;
  max-width: 280px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--pd-ink-2);
}
.pd-dev-int-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  padding: 14px 14px 14px;
  border: 1px solid var(--pd-line);
  border-radius: 10px;
  background: #fff;
}
.pd-dev-int-card h3 { margin: 0; font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; }
.pd-dev-int-card p { margin: 3px 0 8px; font-size: 13px; line-height: 1.35; color: var(--pd-ink-2); }
.pd-dev-int-card .pd-link { font-size: 13.5px; }
.pd-dev-brand {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: none;
}
.pd-dev-brand-gh { border-radius: 50%; background: #24292F; color: #fff; }
.pd-dev-brand-api { border-radius: 10px; background: #3B45FF; color: #fff; }
.pd-dev-brand-mail { border-radius: 10px; background: #FF4D5E; color: #fff; }
.pd-dev-brand-slack { width: 36px; height: 36px; }
.pd-dev-brand-sm { width: 28px; height: 28px; }
.pd-dev-brand-sm .icon { width: 15px; height: 15px; }

/* Pull request check */
.pd-dev-pr {
  margin: 16px 0 8px;
  display: grid;
  grid-template-columns: 228px minmax(0, 1.28fr) minmax(360px, 1.12fr);
  gap: 14px;
  padding: 18px;
  align-items: stretch;
}
.pd-dev-pr-lead { display: flex; flex-direction: column; align-items: flex-start; padding: 6px 8px 6px 6px; }
.pd-dev-btn-workflow {
  height: 42px;
  margin-top: 22px;
  padding: 0 16px;
  border: 1px solid #D7DEEA;
  border-radius: 8px;
  background: #fff;
  color: var(--pd-blue) !important;
  font-weight: 600;
  box-shadow: none;
}
.pd-dev-btn-workflow:hover { border-color: var(--pd-blue); }
.pd-dev-pr-card,
.pd-dev-diff {
  border: 1px solid var(--pd-line);
  border-radius: 12px;
  background: #fff;
  padding: 14px 16px 14px;
}
.pd-dev-pr-head { display: flex; align-items: flex-start; gap: 10px; }
.pd-dev-pr-head > div { flex: 1; min-width: 0; }
.pd-dev-pr-head strong { display: block; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.pd-dev-pr-meta { display: block; margin-top: 2px; font-size: 12.5px; color: var(--pd-ink-3); }
.pd-dev-open {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  background: #16A34A;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.pd-dev-botline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--pd-ink-3);
}
.pd-dev-botline strong { color: var(--pd-ink); font-weight: 700; }
.pd-dev-botline em { font-style: normal; }
.pd-dev-bot {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: #3B45FF;
  color: #fff;
}
.pd-dev-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 12px;
  border-radius: 8px;
  background: #FFF1F2;
}
.pd-dev-alert-icon { color: #EF334E; }
.pd-dev-alert strong { display: block; font-size: 14px; font-weight: 700; color: var(--pd-ink); white-space: nowrap; }
.pd-dev-alert-sub { display: block; margin-top: 2px; font-size: 12.5px; color: var(--pd-ink-2); white-space: nowrap; }
.pd-dev-alert > div { flex: 1; min-width: 0; }
.pd-dev-details {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #E1E7F0;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--pd-ink);
}
.pd-dev-details:hover { border-color: var(--pd-blue); color: var(--pd-blue); }

.pd-dev-diff header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pd-dev-diff header strong {
  min-width: 0;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.pd-dev-move { display: inline-flex; align-items: center; gap: 6px; flex: none; color: #94A3B8; }
.pd-dev-pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}
.pd-dev-pill.is-float { background: #FFECEE; color: #E11D48; }
.pd-dev-pill.is-pin { background: #E7F8EF; color: #12804F; }
.pd-dev-diff-line {
  display: flex;
  gap: 8px;
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 6px;
  font-family: var(--pd-mono);
  font-size: 13px;
  font-weight: 500;
}
.pd-dev-diff-line.is-remove { background: #FDECEE; color: #E11D48; }
.pd-dev-diff-line.is-add { background: #E7F8EF; color: #12804F; }
.pd-dev-diff .pd-link { margin-top: 12px; font-size: 13.5px; }

@media (max-width: 1200px) {
  .pd-dev-hero h1 { font-size: 46px; }
  .pd-dev-int { grid-template-columns: minmax(180px, .8fr) repeat(2, minmax(0, 1fr)); }
  .pd-dev-int-lead { grid-column: 1 / -1; padding-bottom: 0; }
  .pd-dev-int-lead p { max-width: none; }
}

@media (max-width: 1040px) {
  .pd-dev-hero { grid-template-columns: 1fr; gap: 28px; }
  .pd-dev-copy { max-width: 720px; }
  .pd-dev-body { max-width: 560px; }
  .pd-dev-pr { grid-template-columns: 1fr; }
  .pd-dev-pr-lead p { max-width: none; }
}

@media (max-width: 760px) {
  .pd-dev-hero { padding-top: 24px; }
  .pd-dev-hero h1 { font-size: 34px; }
  .pd-dev-hero h1 br { display: none; }
  .pd-dev-body { font-size: 16px; }
  .pd-dev-actions .pd-btn { flex: 1 1 100%; min-width: 0; }
  .pd-dev-trust { flex-direction: column; align-items: flex-start; }
  .pd-dev-int { grid-template-columns: 1fr; margin-top: 22px; padding: 16px; }
  .pd-dev-cmd code { font-size: 12.5px; }
  .pd-dev-pr { padding: 16px; }
  .pd-dev-alert { flex-wrap: wrap; }
  .pd-dev-alert strong,
  .pd-dev-alert-sub { white-space: normal; }
  .pd-dev-diff header { flex-wrap: wrap; }
  .pd-term-facts div { grid-template-columns: 1fr; gap: 2px; }
}
