/* =====================================================================
   page.css — simple content pages (Terms, Privacy, Blog placeholder).
   Reuses the landing tokens (unify.css :root), M Saans faces (mv-ui.css)
   and the Knockout wordmark (nav.css). Warm-paper reading layout.
   ===================================================================== */

.pg-page,
.pg-page *,
.pg-page *::before,
.pg-page *::after { box-sizing: border-box; }

.pg-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: "M Saans Regular", "Inter", ui-sans-serif, system-ui, sans-serif;
}

/* ---------- header (brand + back link) — mirrors the signup header ---------- */
.pg-head {
  --nv-paper: #f7f4ef;
  --nv-ink: #191410;
  --nv-step: 8px;
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 76px;
  background: var(--paper);
  border-bottom: 1px solid var(--border-hairline);
}
.pg-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: center;
  margin-right: 20px;
  padding: 8px 14px;
  border-radius: 100px;
  font-family: "M Saans 600", ui-sans-serif, sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .1px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .2s, background-color .2s;
}
.pg-back:hover { color: var(--ink); background: rgba(33, 26, 20, .05); }
.pg-back svg { width: 16px; height: 16px; }

/* ---------- article ---------- */
.pg-main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 64px 24px 88px; }

.pg-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.pg-kicker svg { width: 12px; height: 12px; }
.pg-title {
  font-family: "M Saans 652", "M Saans Heavy", ui-sans-serif, sans-serif;
  font-weight: 652;
  font-size: 44px;
  line-height: 1.04;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 12px;
}
.pg-updated { font-size: 14px; color: var(--ink-3); margin-bottom: 8px; }
.pg-note {
  margin: 24px 0 40px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--accent-tint);
  border: 1px solid rgba(216, 58, 18, .2);
  font-size: 14px;
  line-height: 1.5;
  color: #8a2409;
}

.pg-prose { font-size: 16px; line-height: 1.7; color: var(--ink); }
.pg-prose h2 {
  font-family: "M Saans 652", ui-sans-serif, sans-serif;
  font-weight: 652;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 40px 0 12px;
}
.pg-prose h3 {
  font-family: "M Saans 600", ui-sans-serif, sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  margin: 24px 0 8px;
}
.pg-prose p { margin: 0 0 16px; color: var(--ink-2); }
.pg-prose ul { margin: 0 0 16px; padding-left: 22px; color: var(--ink-2); }
.pg-prose li { margin: 0 0 8px; }
.pg-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.pg-prose a:hover { text-decoration: none; }
.pg-prose strong { color: var(--ink); }

/* ---------- centered "coming soon" hero (blog placeholder) ---------- */
.pg-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 24px 96px;
  gap: 18px;
}
.pg-center .pg-title { max-width: 16ch; }
.pg-center-sub { font-size: 17px; line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.pg-center .btn { margin-top: 12px; }

/* ---------- footer ---------- */
.pg-foot {
  border-top: 1px solid var(--border-hairline);
  padding: 28px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: var(--ink-3);
}
.pg-foot-brand {
  font-family: "M Saans 652", sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
}
.pg-foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.pg-foot-links a { color: var(--ink-2); text-decoration: none; }
.pg-foot-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* =====================================================================
   Blog (added 2026-07-31, LP1) — the post index + article extras.
   Light only: like terms/privacy, the pg-* pages do NOT load dark.css.
   ===================================================================== */

/* ---------- byline ---------- */
.pg-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
  font-size: 14px;
  color: var(--ink-3);
}
.pg-byline strong { font-family: "M Saans 600", ui-sans-serif, sans-serif; font-weight: 600; color: var(--ink-2); }
.pg-byline .pg-dot { color: var(--border-hairline); }

/* ---------- the dek: one line under the H1 saying what the post argues ---------- */
.pg-dek {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 12px 0 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-hairline);
}

/* ---------- post index list ---------- */
.pg-list { list-style: none; margin: 32px 0 0; padding: 0; }
/* On the index the dek's own bottom rule is the list's top rule. Without
   these two the two borders stack into a visible double hairline. */
.pg-dek + .pg-list { margin-top: 0; }
.pg-dek + .pg-list .pg-list-item:first-child { border-top: 0; }
.pg-list-item { border-top: 1px solid var(--border-hairline); }
.pg-list-item:last-child { border-bottom: 1px solid var(--border-hairline); }
.pg-list-link {
  display: block;
  padding: 26px 0;
  text-decoration: none;
  color: inherit;
}
.pg-list-meta {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.pg-list-title {
  font-family: "M Saans 652", ui-sans-serif, sans-serif;
  font-weight: 652;
  font-size: 23px;
  line-height: 1.22;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 6px;
  transition: color .18s;
}
.pg-list-link:hover .pg-list-title { color: var(--accent); }
.pg-list-dek { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); margin: 0; }

/* ---------- code, for the robots.txt worked examples ---------- */
.pg-prose pre {
  margin: 0 0 20px;
  padding: 16px 18px;
  overflow-x: auto;
  background: var(--paper-inset);
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}
.pg-prose pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.pg-prose code {
  padding: 2px 5px;
  background: var(--paper-inset);
  border: 1px solid var(--border-hairline);
  border-radius: 5px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .87em;
  color: var(--ink);
  overflow-wrap: break-word;
}

/* ---------- tables, for the crawler taxonomy ---------- */
.pg-scroll { overflow-x: auto; margin: 0 0 22px; }
.pg-prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.pg-prose thead th {
  text-align: left;
  padding: 9px 12px 9px 0;
  border-bottom: 1px solid var(--ink-3);
  font-family: "M Saans 600", ui-sans-serif, sans-serif;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.pg-prose tbody td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--border-hairline);
  color: var(--ink-2);
  vertical-align: top;
}
.pg-prose tbody td:first-child { color: var(--ink); }
/* User-agent names and class labels must not break mid-token: a wrapped
   <code> renders as two separate chips, and "User-triggered" splits at its
   hyphen.
   The nowrap belongs on the CHIP, never on the CELL. It was on
   `td:nth-child(2)` as a whole, reasoned as "safe because the table sits in
   .pg-scroll" — but that forced the five training-bot chips onto one 620px line,
   pushing the table to 770px inside a 712px column. The result was the flagship
   robots.txt post's central table clipped at EVERY width including 1440px
   desktop, cutting the "What blocking it costs you" column mid-word, with
   overlay scrollbars giving no hint that anything was hidden. A horizontal
   scroller is the fallback for a genuinely wide table, not a licence to make one.
   Chips may now wrap between themselves; each chip still stays whole. */
.pg-prose tbody td code { white-space: nowrap; }
.pg-prose tbody td:first-child { white-space: nowrap; }

/* ---------- pull quote ---------- */
.pg-prose blockquote {
  margin: 26px 0;
  padding: 2px 0 2px 20px;
  border-left: 2px solid var(--accent);
  font-family: "M Saans 600", ui-sans-serif, sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink);
}
.pg-prose blockquote p { color: inherit; margin: 0; }

/* ---------- end-of-post CTA ---------- */
.pg-end {
  margin: 48px 0 0;
  padding: 24px;
  background: var(--paper-inset);
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
}
.pg-end-title {
  font-family: "M Saans 652", ui-sans-serif, sans-serif;
  font-weight: 652;
  font-size: 20px;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 8px;
}
.pg-end p { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin: 0 0 16px; }

@media (max-width: 560px) {
  .pg-title { font-size: 34px; }
  .pg-main { padding: 44px 20px 64px; }
  .pg-dek { font-size: 17px; }
  .pg-list-title { font-size: 20px; }
}
