/* ==========================================================================
   Fey Partners — the portal shell.
   A bar across the top, the page beneath it. The design system (tokens, type,
   cards, tables, buttons) comes from Fey.Web.Shared; only this furniture is ours.
   ========================================================================== */

body { background: var(--fey-bg, #faf9fc); }

.pt-shell { min-height: 100vh; display: flex; flex-direction: column; }

/* ── Top bar ──
   The bar's background runs the full width; its contents sit in the same centred column as the
   page beneath it, so the brand lines up with the page's left edge. */
.pt-bar {
    border-bottom: 1px solid var(--fey-line);
    background: color-mix(in srgb, var(--fey-surface) 72%, transparent);
    backdrop-filter: blur(18px) saturate(150%);
    position: sticky;
    top: 0;
    z-index: 20;
}
.pt-bar-inner {
    max-width: 1040px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--s4);
    padding: 12px clamp(16px, 4vw, 40px);
    flex-wrap: wrap;
}

.pt-brand {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    font-family: var(--fey-display);
    font-size: 22px;
    letter-spacing: -0.02em;
    color: var(--fey-ink);
    text-decoration: none;
}
.pt-brand-dot { color: var(--fey-accent); }
.pt-brand-tag {
    font-family: var(--fey-sans, inherit);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--fey-ink-soft);
    text-transform: uppercase;
}

.pt-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.pt-nav-item {
    padding: 7px 12px;
    border-radius: var(--fey-radius-sm);
    font-size: 13.5px;
    font-weight: 450;
    color: var(--fey-ink-soft);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.pt-nav-item:hover { background: var(--fey-primary-soft); color: var(--fey-ink); text-decoration: none; }
.pt-nav-item.active { background: var(--fey-primary-soft); color: var(--fey-primary-deep); font-weight: 500; }

.pt-bar-end { margin-left: auto; display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.pt-who { font-size: 12.5px; font-weight: 500; color: var(--fey-ink); }
.pt-leave {
    font-size: 12.5px;
    color: var(--fey-ink-faint);
    text-decoration: none;
    transition: color 0.15s;
}
.pt-leave:hover { color: var(--fey-ink); text-decoration: none; }

/* ── Page ── */
.pt-main { flex: 1; width: 100%; }
.pt-page {
    max-width: 1040px;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 44px) clamp(16px, 4vw, 40px) 64px;
}
.pt-narrow { max-width: 460px; }
.pt-prose { max-width: 760px; }

.pt-head { margin-bottom: var(--s4); }
.pt-head .fey-display { margin: 0; }
.pt-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }

.pt-foot-note { font-size: 12px; margin: var(--s3) 0 0; text-align: center; }

.pt-stack { display: flex; flex-direction: column; gap: var(--s4); }

/* ── Terms ── */
.pt-terms { display: flex; flex-direction: column; gap: var(--s4); margin-top: var(--s4); }
.pt-terms section { }
.pt-terms h2 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--fey-ink);
}
.pt-terms p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--fey-ink-soft); }

@media (max-width: 600px) {
    .pt-head-row { align-items: stretch; }
    .pt-head-row > .fey-btn { align-self: flex-start; }
}
