/* Print Doctor page: same type and colours as the rest of the site */

.pd {
  padding: 0 24px;
}

.pd code {
  font-family: var(--font-mono);
  font-size: 0.88em;
}

.pd a {
  color: var(--ink);
  font-weight: 600;
  text-underline-offset: 3px;
}

.pd a:hover {
  color: var(--orange);
}

/* Top */

.pd-top {
  padding: 40px 0 72px;
}

.pd-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px 72px;
}

.pd-title-block {
  flex: 1 1 520px;
  min-width: 0;
}

.pd-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.pd-sub {
  margin: 24px 0 0;
  max-width: 34em;
  font-size: 19px;
  color: var(--text);
  text-wrap: pretty;
}

.pd-get {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pd a.pd-download {
  display: inline-flex;
  align-items: center;
  height: 54px;
  padding: 0 28px;
  border-radius: 6px;
  background: var(--ink);
  color: #ffffff;
  font-size: 16px;
  text-decoration: none;
}

.pd a.pd-download:hover {
  background: var(--orange);
  color: #ffffff;
}

.pd-facts {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--muted);
}

/* Labels, as on the home page */

.pd-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}

/* Example proposal */

.pd-example {
  padding: 0 0 88px;
}

.pd-card {
  margin: 20px 0 0;
  padding: 28px 28px 24px;
  border: 2px solid var(--ink);
  border-radius: 6px;
}

.pd-ask {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.pd-changes {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  color: var(--text);
}

.pd-changes th {
  padding: 0 16px 10px 0;
  border-bottom: 1px solid var(--plate);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  color: var(--muted);
}

.pd-changes td {
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--plate);
  vertical-align: top;
}

.pd-changes td:first-child {
  font-weight: 600;
  color: var(--ink);
}

.pd-changes td:nth-child(2),
.pd-changes td:nth-child(3) {
  font-family: var(--font-mono);
  font-size: 14px;
  white-space: nowrap;
}

.pd-changes td:nth-child(3) {
  font-weight: 600;
  color: var(--ink);
}

.pd-caption {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* Narrow screens: each change becomes a small block */
@media (max-width: 640px) {
  .pd-card {
    padding: 20px 18px 18px;
  }

  .pd-changes thead {
    position: absolute;
    left: -9999px;
  }

  .pd-changes tr {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 2px 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--plate);
  }

  .pd-changes td {
    padding: 0;
    border: 0;
  }

  .pd-changes td:first-child,
  .pd-changes td:last-child {
    grid-column: 1 / -1;
  }

  .pd-changes td:nth-child(3)::before {
    content: '→ ';
    color: var(--muted);
    font-weight: 400;
  }
}

/* Rows: label on the left, text on the right */

.pd-rows {
  padding: 0 0 72px;
}

.pd-row {
  display: grid;
  grid-template-columns: minmax(180px, 300px) minmax(0, 720px);
  gap: 12px 48px;
  padding: 28px 0;
  border-top: 1px solid var(--plate);
}

.pd-row .pd-label {
  padding-top: 4px;
  color: var(--ink);
}

.pd-body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
}

.pd-body p,
.pd-body ul,
.pd-body ol {
  margin: 0 0 12px;
}

.pd-body > :last-child {
  margin-bottom: 0;
}

.pd-list,
.pd-steps {
  padding-left: 22px;
}

.pd-list li::marker {
  color: var(--orange);
}

.pd-steps li::marker {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--orange);
}

@media (max-width: 720px) {
  .pd-row {
    grid-template-columns: 1fr;
  }
}

/* Maker + waitlist */

.pd-maker {
  padding: 0 0 88px;
}

.pd-maker-row {
  padding-top: 56px;
  border-top: 2px solid var(--ink);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px 72px;
}

.pd-maker-text {
  flex: 1 1 380px;
  min-width: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
}

.pd-maker-text p {
  margin: 0;
}

.pd-maker-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.pd-waitlist {
  flex: 1 1 380px;
  min-width: 0;
}

/* What it does: dark band, like "The idea" on the home page */

.pd-does {
  margin: 0 -24px;
  padding: 80px 24px 72px;
  background: var(--ink);
  color: #ffffff;
}

.pd-label-on-ink {
  color: var(--peach);
}

.pd-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 36px 48px;
  margin-top: 32px;
}

.pd-feature h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.pd-feature p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--on-ink);
}

.pd-ink-facts {
  margin: 48px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--peach);
}

/* The guides */

.pd-guides {
  padding: 80px 0 88px;
}

.pd-guides-head {
  max-width: 820px;
}

.pd-h2 {
  margin: 14px 0 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.pd-guides-intro {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
}

.pd-guide-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 8px 48px;
  margin-top: 44px;
}

.pd-guide-group h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pd-guide-group h3 span {
  color: var(--orange);
  letter-spacing: 0;
}

.pd-guide-group ul {
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.pd-guide-group li {
  padding: 7px 0;
  border-bottom: 1px solid var(--plate);
  font-size: 15px;
  color: var(--text);
}

.pd-excerpt {
  margin: 24px 0 0;
}

.pd-excerpt-cap {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.pd-excerpt-scroll {
  overflow-x: auto;
  border: 1px solid var(--plate);
  border-radius: 6px;
  background: #f6f7f8;
}

.pd-excerpt table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14px;
  color: var(--text);
}

.pd-excerpt th,
.pd-excerpt td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--plate);
  text-align: left;
  vertical-align: top;
}

.pd-excerpt th {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.pd-excerpt tr:last-child td {
  border-bottom: 0;
}

.pd-excerpt code {
  color: var(--ink);
  font-weight: 600;
}

.pd-guides-own {
  margin: 28px 0 0;
  max-width: 820px;
  font-size: 16px;
  color: var(--text);
}

.pd-rows .pd-row:first-child {
  border-top-width: 2px;
  border-top-color: var(--ink);
}

/* Example: the steps of one conversation */

.pd-ask-block {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--plate);
}

.pd-ask-block .pd-ask {
  margin-bottom: 12px;
}

.pd-attach {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.pd-attach span {
  padding: 3px 10px;
  border: 1px solid var(--plate);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.pd-step {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 8px 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--plate);
}

.pd-step-tag {
  margin: 0;
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
}

.pd-checked {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}

.pd-checked li + li {
  margin-top: 8px;
}

.pd-checked span {
  display: inline-block;
  min-width: 96px;
  margin-right: 10px;
  font-weight: 600;
  color: var(--ink);
}

.pd-step .pd-changes th:first-child,
.pd-step .pd-changes td:first-child {
  padding-left: 0;
}

.pd-blocked td:nth-child(3) {
  text-decoration: line-through;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
}

.pd-blocked td {
  color: var(--muted);
}

.pd-blocked td:last-child {
  color: var(--orange);
  font-weight: 600;
}

.pd-tip {
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--text);
}

.pd-fig {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
}

.pd-fig-grid {
  stroke: var(--plate);
  stroke-width: 1;
}

.pd-fig-tick {
  fill: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.pd-fig-bar {
  fill: #9fb3b4;
}

.pd-fig-hot {
  fill: var(--orange);
}

.pd-fig-line {
  stroke: var(--ink);
  stroke-width: 1.5;
}

.pd-fig-new {
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
}

.pd-fig-lab {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  fill: var(--ink);
}

.pd-fig-cap {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .pd-step {
    grid-template-columns: 1fr;
  }

  .pd-checked span {
    display: block;
    min-width: 0;
  }
}

/* On a phone the chart is drawn smaller: bigger labels in chart units keep them readable */
@media (max-width: 560px) {
  .pd-fig-tick {
    font-size: 22px;
  }

  .pd-fig-lab {
    display: none;
  }
}

.pd-maker-site {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pd .pd-maker-site a {
  text-decoration: none;
}

.pd a.pd-join {
  font-family: var(--font-display);
  font-size: 20px;
  text-decoration: none;
}

/* Top bar: MeshDab line under the site name */

.pd-topbar-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pd-topbar-line {
  margin: 0;
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
}

.pd-topbar-line a {
  color: var(--orange);
  font-weight: 600;
  text-underline-offset: 3px;
}

.pd-topbar-line a:hover {
  color: var(--ink);
}

.topbar-row:has(.pd-topbar-left) {
  align-items: center;
}

.pd-topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pd-topbar-logo {
  flex: 0 0 auto;
  display: block;
}

.pd-topbar-logo img {
  display: block;
  width: auto;
  height: 48px;
}
