/* DirectorPM blog styles — editorial design system (2026-09 redesign).
   Loaded by the 19 blog posts and the generated /blog hub AFTER site.css,
   editorial.css, and product.css (which supplies the nav/footer/capture-strip
   chrome and the legacy token aliases). This file owns article typography and
   the blog-specific components. The comparison posts are the site's only
   page-1 rankings: this file restyles them, markup and content stay untouched.
   Hairline system: 1px rules, border-radius 0, no shadows. */

:root {
  /* Muted semantic colors for the quadrant cards' top borders (the old
     saturated --green/--amber/--red read off-palette in the hairline system). */
  --green: #2e6b4f;
  --amber: #9a6b1f;
  --red: var(--error);
}

/* ---- Article shell + typography ---- */
.article-wrapper { max-width: 720px; margin: 0 auto; padding: 64px 28px 88px; }
.article-wrapper .article-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.article-wrapper .article-meta time { color: var(--muted); }
.article-wrapper h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.article-wrapper .byline {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  padding-bottom: 28px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 40px;
}
.article-wrapper h2 {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 44px 0 16px;
}
.article-wrapper h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 30px 0 12px;
}
.article-wrapper h4 { font-size: 16px; font-weight: 600; color: var(--ink); }
.article-wrapper p { font-size: 16px; color: var(--body); line-height: 1.75; margin-bottom: 18px; }
.article-wrapper ul, .article-wrapper ol { margin: 0 0 18px; padding-left: 22px; color: var(--body); }
.article-wrapper li { font-size: 16px; line-height: 1.7; margin-bottom: 8px; }
.article-wrapper a { color: var(--accent); }
.article-wrapper a:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; }
.article-wrapper blockquote {
  border-left: 1px solid var(--ink);
  padding: 4px 0 4px 24px;
  margin: 28px 0;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: -0.012em;
  color: var(--ink);
  font-style: italic;
}
.article-wrapper code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--tint);
  border: 1px solid var(--rule);
  padding: 1px 5px;
}

/* ---- In-article CTA panel ---- */
.article-wrapper .cta-box {
  background: var(--tint);
  border: 1px solid var(--rule-strong);
  border-left: 1px solid var(--ink);
  border-radius: 0;
  padding: 26px 28px;
  margin: 36px 0;
}
.article-wrapper .cta-box h3 { margin: 0 0 8px; font-size: 18px; }
.article-wrapper .cta-box p { margin-bottom: 18px; font-size: 15px; }
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 24px;
  background: var(--accent);
  color: var(--paper);
  border-radius: 0;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.15s ease;
}
.cta-btn:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
.cta-btn-green { background: var(--ink); }
.cta-btn-green:hover { background: var(--accent); }

/* Buttons and the free band are anchors inside .article-wrapper, so the scoped
   link colour above (0,1,1) outranks .cta-btn / .capture-strip (0,1,0) and
   painted accent-on-accent and ink-on-ink labels (audit 2026-09-28, BLG-01/02).
   These restore the button and band colours at higher specificity. */
.article-wrapper a.cta-btn,
.article-wrapper a.cta-btn:hover { color: var(--paper); text-decoration: none; }
.article-wrapper .bundle-footer a.cta-btn:hover { color: var(--ink); }
.article-wrapper .capture-strip h2 { font-size: 30px; color: var(--paper); margin: 0 0 12px; line-height: 1.15; }
.article-wrapper .capture-strip p { font-size: 16px; color: var(--text-on-ink); margin: 0; line-height: 1.65; }
.article-wrapper a.capture-btn { color: var(--paper); text-decoration: none; }
.article-wrapper a.capture-btn:hover { color: var(--ink); text-decoration: none; }

/* ---- End-of-post bundle panel (ink band) ---- */
.article-wrapper .bundle-footer {
  background: var(--ink);
  color: var(--paper);
  border-radius: 0;
  padding: 40px 34px;
  margin-top: 52px;
  text-align: center;
}
.article-wrapper .bundle-footer h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin: 0 0 10px;
}
.article-wrapper .bundle-footer p { color: var(--text-on-ink); margin-bottom: 22px; font-size: 15px; }
.article-wrapper .bundle-footer .cta-btn { background: var(--accent); }
.article-wrapper .bundle-footer .cta-btn:hover { background: var(--paper); color: var(--ink); }

/* ---- Related posts ---- */
.article-wrapper .related-posts { margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--ink); }
.article-wrapper .related-posts h3 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 16px;
}
.article-wrapper .related-posts ul { list-style: none; padding-left: 0; }
.article-wrapper .related-posts li { margin-bottom: 10px; }
.article-wrapper .related-posts a { font-weight: 500; }

/* ---- Comparison tables (scoped over site.css's .article-wrapper table rules) ---- */
.article-wrapper table { border-radius: 0; border: 1px solid var(--rule); }
.article-wrapper .comparison-table { width: 100%; border-collapse: collapse; margin: 20px 0 28px; font-size: 14.5px; }
.article-wrapper table thead th,
.article-wrapper .comparison-table th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  background: var(--tint);
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--ink);
}
.article-wrapper table td,
.article-wrapper .comparison-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  line-height: 1.55;
  color: var(--body);
}
.article-wrapper table tbody tr:nth-child(even),
.article-wrapper .comparison-table tr:nth-child(even) td { background: #f7f5f1; }

/* ---- Worked-example entry (decision log post) ---- */
.article-wrapper .sample-entry {
  background: var(--tint);
  border: 1px solid var(--rule-strong);
  border-left: 1px solid var(--ink);
  border-radius: 0;
  padding: 20px 24px;
  margin: 20px 0 28px;
  font-size: 15px;
  line-height: 1.65;
}
.article-wrapper .sample-entry .field { display: grid; grid-template-columns: 120px 1fr; gap: 10px; margin-bottom: 6px; }
.article-wrapper .sample-entry .field strong {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  padding-top: 4px;
}

/* ---- Card grids used inside posts ---- */
.article-wrapper .raid-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0 28px; }
.article-wrapper .raid-card,
.article-wrapper .quad-card,
.article-wrapper .section-card,
.article-wrapper .template-card {
  background: var(--card);
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  padding: 20px 22px;
}
.article-wrapper .raid-card h4, .article-wrapper .quad-card h4,
.article-wrapper .section-card h4 { margin-bottom: 8px; }
.article-wrapper .raid-card p, .article-wrapper .quad-card p,
.article-wrapper .section-card p { font-size: 14px; color: var(--secondary); margin-bottom: 0; }
.article-wrapper .section-card { margin: 14px 0; }

.article-wrapper .quadrant { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0 28px; }
.article-wrapper .quad-card .label {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 10px;
  display: block;
}
.article-wrapper .quad-manage { border-top: 2px solid var(--red); }
.article-wrapper .quad-satisfy { border-top: 2px solid var(--amber); }
.article-wrapper .quad-inform { border-top: 2px solid var(--accent); }
.article-wrapper .quad-monitor { border-top: 2px solid var(--faint); }

.article-wrapper .template-card { padding: 24px 26px; margin: 20px 0; }
.article-wrapper .template-card h3 { margin-top: 0; }
.article-wrapper .template-card .card-meta {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  margin-bottom: 10px;
}
.article-wrapper .template-card p { font-size: 15px; margin-bottom: 12px; }
.article-wrapper .template-card a.card-link { font-weight: 500; font-size: 14px; }

/* ---- Blog hub (/blog) ---- */
.blog-hero { max-width: var(--page-w); margin: 0 auto; padding: 76px 28px 44px; }
.blog-hero .eyebrow { margin-bottom: 16px; }
.blog-hero h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: 18px;
}
.blog-hero p { font-size: 17px; color: var(--body); line-height: 1.65; max-width: 44em; }
.blog-body { max-width: var(--page-w); margin: 0 auto; padding: 16px 28px 72px; }
.post-group { margin-bottom: 60px; }
.post-group h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.group-blurb { font-size: 15px; color: var(--secondary); max-width: 640px; margin-bottom: 24px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.post-card {
  background: var(--card);
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  padding: 26px 24px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.post-card:hover { border-color: var(--ink); background: var(--tint); box-shadow: none; transform: none; }
.post-card h3 { font-size: 16.5px; font-weight: 600; color: var(--ink); line-height: 1.4; margin-bottom: 10px; letter-spacing: -0.01em; }
.post-card p { font-size: 14px; color: var(--secondary); line-height: 1.6; flex-grow: 1; }
.post-go { display: inline-block; margin-top: 16px; font-family: var(--mono); font-size: 12px; color: var(--accent); }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .article-wrapper { padding: 44px 20px 64px; }
  /* Posts with a bare <table> (no .table-wrap) inherit site.css's 480px
     min-width and would force the whole page to scroll sideways; let the
     table scroll inside its own box instead. */
  .article-wrapper table { display: block; overflow-x: auto; min-width: 0; max-width: 100%; }
  .article-wrapper .bundle-footer { padding: 30px 22px; }
  .article-wrapper .cta-box { padding: 22px 20px; }
  .article-wrapper .raid-grid, .article-wrapper .quadrant { grid-template-columns: 1fr; }
  .article-wrapper .sample-entry .field { grid-template-columns: 1fr; gap: 2px; }
  .blog-hero { padding: 52px 20px 28px; }
  .blog-body { padding: 12px 20px 52px; }
}

/* No body copy under 16px on phones (audit 2026-09-28, MOB-04). */
@media (max-width: 768px) {
  .article-wrapper .cta-box p, .article-wrapper .bundle-footer p,
  .article-wrapper .template-card p, .post-card p { font-size: 16px; }
}
