/* ============================================================
   Pathway-document cards
   Used on service pages (inline block + sidebar variant) and
   on blog.html Library section. Matches NeuroFX brand tokens.
   ============================================================ */

/* Inline block — drop into any article body */
.pathway-docs {
  margin: 36px 0;
  padding: 28px 32px 24px;
  background: var(--nfx-paper-2);
  border-radius: 20px;
  border: 1px solid var(--nfx-rule-soft);
  display: grid; gap: 18px;
}
.pathway-docs__head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; flex-wrap: wrap;
}
.pathway-docs__eyebrow {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--nfx-teal-mid); font-weight: 600;
}
.pathway-docs__head h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 22px; line-height: 1.2;
  color: var(--nfx-teal); font-weight: 500;
  letter-spacing: -0.01em; margin: 0;
}
.pathway-docs__intro {
  font-size: 14.5px; color: var(--nfx-ink-soft); line-height: 1.55;
  margin: 0; max-width: 60ch;
}
.pathway-docs__list {
  display: grid; gap: 10px;
  list-style: none !important; padding: 0 !important; margin: 0 !important;
}
.pathway-docs__list > li {
  padding: 0 !important;
  background: transparent;
}
.pathway-docs__list > li::before { content: none !important; }

/* The individual doc row */
.pathway-doc {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 18px; align-items: center;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--nfx-rule-soft);
  border-radius: 14px;
  transition: border-color .15s ease, transform .12s ease, box-shadow .15s ease;
}
.pathway-doc:hover {
  border-color: var(--nfx-gold);
  box-shadow: 0 6px 18px rgba(1, 72, 93, 0.06);
}
.pathway-doc__icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--nfx-sky-wash);
  display: flex; align-items: center; justify-content: center;
  color: var(--nfx-teal); flex: 0 0 auto;
}
.pathway-doc__icon svg { width: 22px; height: 22px; }
.pathway-doc__body { display: grid; gap: 4px; min-width: 0; }
.pathway-doc__title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 17px; line-height: 1.25;
  color: var(--nfx-teal); font-weight: 500;
}
.pathway-doc__meta {
  font-size: 12.5px; color: var(--nfx-ink-soft); line-height: 1.4;
  display: flex; gap: 12px; flex-wrap: wrap; align-items: baseline;
}
.pathway-doc__meta-sep {
  display: inline-block; width: 3px; height: 3px; border-radius: 50%;
  background: var(--nfx-teal-mid); opacity: 0.55;
  align-self: center;
}
.pathway-doc__meta strong { color: var(--nfx-teal-mid); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 11px; }
.pathway-doc__action {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--nfx-teal);
  white-space: nowrap;
}
.pathway-doc__action::after {
  content: ""; width: 14px; height: 14px;
  background: currentColor;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M8 2v9M4 7l4 4 4-4M2 14h12"/></svg>') no-repeat center / contain;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M8 2v9M4 7l4 4 4-4M2 14h12"/></svg>') no-repeat center / contain;
}

/* Library card variant — re-uses .post structure on blog.html.
   We add a small download chevron to the post visual when used
   inside .res-section#library. */
.post.post--doc .post__visual {
  background-color: var(--nfx-teal-deep);
}
.post.post--doc .post__cat-pill { background: var(--nfx-gold); color: var(--nfx-teal-deep); }
.post.post--doc .post__visual::after {
  content: "PDF";
  position: absolute; bottom: 16px; right: 18px;
  font-size: 11px; letter-spacing: 0.14em; font-weight: 600;
  color: rgba(255,255,255,0.85);
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
}

/* Mobile */
@media (max-width: 760px) {
  .pathway-docs { padding: 22px 20px 18px; margin: 28px 0; }
  .pathway-doc { grid-template-columns: 40px 1fr; row-gap: 4px; padding: 14px 16px; }
  .pathway-doc__action { grid-column: 2; font-size: 13px; }
  .pathway-doc__icon { width: 40px; height: 40px; }
  .pathway-doc__title { font-size: 16px; }
}
