/* ==========================================================================
   Platform pages: platform.html and its deep dives in platform/ (explanations,
   anatomy, monitoring, dashboard, security). The sub-navigation that joins
   them and the previous/next cards at the foot of each deep dive.
   ========================================================================== */

/* ---------- Sub-navigation ---------- */
.pf-sub { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 32px; }
.pf-sub a {
  display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-elev); font-size: 14px; font-weight: 500; color: var(--ink-2);
  white-space: nowrap; transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.pf-sub a:hover { border-color: var(--line-strong); color: var(--ink); }
.pf-sub a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.page-hero.center .pf-sub { justify-content: center; }
/* phones: one row that scrolls sideways rather than a stack of pills */
@media (max-width: 640px) {
  .pf-sub {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * clamp(20px, 5vw, 40px));
    padding-inline: clamp(20px, 5vw, 40px); scroll-padding-inline: clamp(20px, 5vw, 40px);
  }
  .pf-sub::-webkit-scrollbar { display: none; }
}

/* ---------- Deep-dive hero ---------- */
.pf-crumb a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.pf-crumb a:hover { color: var(--ink); }

/* ---------- Previous and next ---------- */
.pf-next { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pf-next a {
  display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg-elev); transition: border-color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.pf-next a:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.pf-next a.next { text-align: right; }
.pf-next small { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.pf-next b { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.015em; }
.pf-next span { color: var(--ink-3); font-size: 14px; }
@media (max-width: 640px) { .pf-next { grid-template-columns: minmax(0, 1fr); } .pf-next a.next { text-align: left; } }
