/* ═══════════════════════════════════════════════════════════════════════════
   GetJustly — Public Pages Shared Styles
   Covers: Terms, Privacy, FAQ, Knowledge Hub, Contact
   Petite premium B/W design
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* ── Design Tokens ── */
:root {
    --gj-bg: #080808;
    --gj-surface: #0c0c0c;
    --gj-surface-raised: #111111;
    --gj-border: rgba(255,255,255,0.05);
    --gj-border-strong: rgba(255,255,255,0.10);
    --gj-text: rgba(255,255,255,0.88);
    --gj-text-secondary: rgba(255,255,255,0.45);
    --gj-text-muted: rgba(255,255,255,0.25);
    --gj-text-faint: rgba(255,255,255,0.14);
    --gj-accent: rgba(255,255,255,0.88);
    --gj-accent-dim: rgba(255,255,255,0.05);
    --gj-font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    --gj-radius: 10px;
    --gj-radius-lg: 12px;
    --gj-radius-sm: 6px;
    --gj-shadow: 0 1px 3px rgba(0,0,0,0.3), 0 4px 16px rgba(0,0,0,0.2);
    --gj-transition: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Semantic */
    --gj-success: rgba(34,197,94,0.70);
    --gj-warning: rgba(234,179,8,0.70);
    --gj-danger: rgba(244,63,94,0.70);
    --gj-info: rgba(59,130,246,0.70);
}

/* ═══════════════════════════════════════════
   NUKE FRAPPE CHROME
   Any page that renders .gj-pg-root gets full
   control — hides navbar, footer, resets containers.
   ═══════════════════════════════════════════ */
body:has(.gj-pg-root) .navbar,
body:has(.gj-pg-root) .web-footer,
body:has(.gj-pg-root) > footer {
    display: none !important;
}

body:has(.gj-pg-root) {
    font-family: var(--gj-font) !important;
    background: var(--gj-bg) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body:has(.gj-pg-root) .page-content-wrapper,
body:has(.gj-pg-root) main,
body:has(.gj-pg-root) main > .container,
body:has(.gj-pg-root) .container:has(.gj-pg-root) {
    background: var(--gj-bg) !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* ═══════════════════════════════════════════
   PAGE ROOT — Centering + top bar
   ═══════════════════════════════════════════ */
.gj-pg-root {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--gj-bg);
    font-family: var(--gj-font);
    color: var(--gj-text-secondary);
    letter-spacing: -0.006em;
}

/* ── Top bar ── */
.gj-pg-topbar {
    padding: 14px 20px;
    border-bottom: 1px solid var(--gj-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #080808;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.gj-pg-topbar-logo img {
    height: 18px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.45;
    transition: opacity 0.3s;
}
.gj-pg-topbar-logo img:hover { opacity: 0.65; }
.gj-pg-topbar-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}
.gj-pg-topbar-nav a {
    font-size: 10px;
    font-weight: 500;
    color: var(--gj-text-muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}
.gj-pg-topbar-nav a:hover { color: var(--gj-text-secondary); }
.gj-pg-topbar-nav a.active { color: var(--gj-text); }

/* ── Container ── */
.gj-pg-container {
    flex: 1;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}
/* Wider container for portal/dashboard pages */
.gj-pg-container--wide {
    max-width: 960px;
}

/* ── Footer ── */
.gj-footer {
    border-top: 1px solid var(--gj-border);
    flex-shrink: 0;
    background: var(--gj-bg);
}
.gj-footer-inner {
    max-width: 680px;
    margin: 0 auto;
    padding: 32px 20px 20px;
}
.gj-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 24px;
}
@media (max-width: 560px) {
    .gj-footer-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* Brand column */
.gj-footer-logo img {
    height: 14px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.35;
    margin-bottom: 8px;
    transition: opacity 0.3s;
}
.gj-footer-logo:hover img { opacity: 0.55; }
.gj-footer-brand p {
    font-size: 10px;
    line-height: 1.55;
    color: var(--gj-text-muted);
    margin: 0 0 8px;
}
.gj-footer-email {
    font-size: 10px;
    color: var(--gj-text-faint);
    text-decoration: none;
    transition: color 0.2s;
}
.gj-footer-email:hover { color: var(--gj-text-secondary); }

/* Link columns */
.gj-footer-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.gj-footer-col h4 {
    font-size: 9px;
    font-weight: 600;
    color: var(--gj-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 2px;
}
.gj-footer-col a {
    font-size: 10.5px;
    color: var(--gj-text-faint);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 400;
}
.gj-footer-col a:hover { color: var(--gj-text-secondary); }

/* Bottom bar */
.gj-footer-bottom {
    padding-top: 16px;
    border-top: 1px solid var(--gj-border);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 9px;
    color: var(--gj-text-faint);
    letter-spacing: 0.01em;
}
.gj-footer-dot { opacity: 0.4; }

/* Keep old class working for backwards compat */
.gj-pg-footer { display: none; }

/* ═══════════════════════════════════════════
   PROSE — Terms, Privacy content
   ═══════════════════════════════════════════ */
.gj-prose {
    color: var(--gj-text-secondary);
    font-size: 13px;
    line-height: 1.75;
}
.gj-prose h1 {
    font-size: 22px;
    font-weight: 400;
    color: var(--gj-text);
    margin: 0 0 4px;
    letter-spacing: -0.025em;
    line-height: 1.2;
}
.gj-prose .gj-prose-subtitle {
    color: var(--gj-text-muted);
    font-size: 11px;
    margin-bottom: 28px;
    font-weight: 400;
}
.gj-prose h2 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gj-text);
    margin: 28px 0 8px;
    padding-top: 20px;
    border-top: 1px solid var(--gj-border);
    letter-spacing: -0.01em;
}
.gj-prose h2:first-of-type {
    border-top: none;
    padding-top: 0;
}
.gj-prose h3 {
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(255,255,255,0.70);
    margin: 16px 0 6px;
}
.gj-prose p {
    margin: 0 0 12px;
    color: var(--gj-text-secondary);
}
.gj-prose ul, .gj-prose ol {
    margin: 0 0 12px;
    padding-left: 18px;
}
.gj-prose li {
    margin-bottom: 4px;
    color: var(--gj-text-secondary);
}
.gj-prose li::marker {
    color: var(--gj-text-muted);
}
.gj-prose strong {
    color: rgba(255,255,255,0.72);
    font-weight: 600;
}
.gj-prose a {
    color: rgba(255,255,255,0.55);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}
.gj-prose a:hover { color: var(--gj-text); }

/* ═══════════════════════════════════════════
   FAQ — Accordion
   ═══════════════════════════════════════════ */
.gj-faq-hero {
    text-align: center;
    margin-bottom: 28px;
}
.gj-faq-hero h1 {
    font-size: 22px;
    font-weight: 400;
    color: var(--gj-text);
    letter-spacing: -0.025em;
    margin: 0 0 6px;
}
.gj-faq-hero p {
    font-size: 12px;
    color: var(--gj-text-muted);
    margin: 0 0 16px;
}
.gj-faq-hero a {
    color: var(--gj-text-secondary);
    text-decoration: none;
    font-weight: 500;
}
.gj-faq-hero a:hover { color: var(--gj-text); }

/* Search */
.gj-faq-search {
    position: relative;
    max-width: 360px;
    margin: 0 auto;
}
.gj-faq-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 13px;
    height: 13px;
    color: var(--gj-text-muted);
    pointer-events: none;
}
.gj-faq-search input {
    width: 100%;
    height: 36px;
    padding: 0 12px 0 34px;
    background: var(--gj-surface);
    border: 1px solid var(--gj-border);
    border-radius: 8px;
    font-size: 12px;
    color: var(--gj-text);
    outline: none;
    font-family: var(--gj-font);
    transition: border-color var(--gj-transition);
}
.gj-faq-search input::placeholder { color: var(--gj-text-faint); }
.gj-faq-search input:focus {
    border-color: var(--gj-border-strong);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.02);
}

/* Category */
.gj-faq-category {
    margin-bottom: 20px;
}
.gj-faq-category h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--gj-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 8px;
    padding: 0;
    border: none;
}
.gj-faq-cat-icon {
    display: flex;
    align-items: center;
    color: var(--gj-text-muted);
}
.gj-faq-cat-icon svg {
    width: 12px;
    height: 12px;
}

/* Item */
.gj-faq-item {
    border: 1px solid var(--gj-border);
    border-radius: 8px;
    margin-bottom: 4px;
    overflow: hidden;
    transition: border-color var(--gj-transition);
}
.gj-faq-item:hover { border-color: var(--gj-border-strong); }
.gj-faq-item.open { border-color: var(--gj-border-strong); }

.gj-faq-q {
    width: 100%;
    padding: 10px 14px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    font-family: var(--gj-font);
    text-align: left;
}
.gj-faq-q span {
    font-size: 12.5px;
    font-weight: 500;
    color: rgba(255,255,255,0.65);
    transition: color 0.2s;
}
.gj-faq-item.open .gj-faq-q span { color: var(--gj-text); }
.gj-faq-q svg {
    width: 12px;
    height: 12px;
    color: var(--gj-text-muted);
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gj-faq-item.open .gj-faq-q svg { transform: rotate(180deg); }

.gj-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                padding 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 12px;
    color: var(--gj-text-secondary);
    line-height: 1.65;
    padding: 0 14px;
}
.gj-faq-item.open .gj-faq-a {
    max-height: 400px;
    padding: 0 14px 12px;
}

/* Still need help CTA */
.gj-faq-cta {
    text-align: center;
    margin-top: 24px;
    padding: 24px 20px;
    background: var(--gj-surface);
    border: 1px solid var(--gj-border);
    border-radius: var(--gj-radius);
}
.gj-faq-cta h3 {
    font-size: 14px;
    font-weight: 500;
    color: var(--gj-text);
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}
.gj-faq-cta p {
    font-size: 11px;
    color: var(--gj-text-muted);
    margin: 0 0 14px;
}
.gj-faq-cta .btn {
    height: 32px;
    padding: 0 20px;
    background: var(--gj-accent) !important;
    color: #0a0a0a !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    font-family: var(--gj-font) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
}
.gj-faq-cta .btn:hover {
    background: rgba(255,255,255,0.95) !important;
    color: #0a0a0a !important;
    transform: translateY(-0.5px);
}

/* ═══════════════════════════════════════════
   KNOWLEDGE HUB — Hub view
   ═══════════════════════════════════════════ */
.gj-knowledge {
    color: var(--gj-text-secondary);
}

/* Hero */
.gj-kh-hero {
    text-align: center;
    padding: 0 0 28px;
    position: relative;
}
.gj-kh-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 9999px;
    background: var(--gj-accent-dim);
    border: 1px solid var(--gj-border);
    font-size: 9px;
    font-weight: 600;
    color: var(--gj-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}
.gj-kh-hero h1 {
    font-size: 22px;
    font-weight: 400;
    color: var(--gj-text);
    letter-spacing: -0.025em;
    margin: 0 0 6px;
}
.gj-kh-hero p {
    font-size: 12px;
    color: var(--gj-text-muted);
    margin: 0 0 16px;
}

/* Search */
.gj-kh-search {
    position: relative;
    max-width: 360px;
    margin: 0 auto;
}
.gj-kh-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 13px;
    height: 13px;
    color: var(--gj-text-muted);
    pointer-events: none;
}
.gj-kh-search input {
    width: 100%;
    height: 36px;
    padding: 0 12px 0 34px;
    background: var(--gj-surface);
    border: 1px solid var(--gj-border);
    border-radius: 8px;
    font-size: 12px;
    color: var(--gj-text);
    outline: none;
    font-family: var(--gj-font);
    transition: border-color var(--gj-transition);
}
.gj-kh-search input::placeholder { color: var(--gj-text-faint); }
.gj-kh-search input:focus {
    border-color: var(--gj-border-strong);
}

/* Section headings */
.gj-kh-heading {
    font-size: 10px;
    font-weight: 600;
    color: var(--gj-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 12px;
    border: none;
    padding: 0;
}

/* Category cards grid */
.gj-kh-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 28px;
}
@media (min-width: 480px) {
    .gj-kh-grid { grid-template-columns: 1fr 1fr; }
}

.gj-kh-card {
    display: block;
    padding: 14px;
    border: 1px solid var(--gj-border);
    border-radius: var(--gj-radius);
    background: var(--gj-surface);
    text-decoration: none !important;
    transition: all var(--gj-transition);
}
.gj-kh-card:hover {
    border-color: var(--gj-border-strong);
    background: var(--gj-surface-raised);
    transform: translateY(-1px);
}
.gj-kh-card * { text-decoration: none !important; }

.gj-kh-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.gj-kh-card-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: var(--gj-accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gj-text-muted);
}
.gj-kh-card-icon svg { width: 14px; height: 14px; }
.gj-kh-card-chevron {
    color: var(--gj-text-faint);
    width: 12px;
    height: 12px;
    transition: transform 0.2s;
}
.gj-kh-card:hover .gj-kh-card-chevron { transform: translateX(2px); }

.gj-kh-card h3 {
    font-size: 12.5px;
    font-weight: 500;
    color: rgba(255,255,255,0.70);
    margin: 0 0 2px;
}
.gj-kh-card p {
    font-size: 10.5px;
    color: var(--gj-text-muted);
    margin: 0 0 6px;
    line-height: 1.45;
}
.gj-kh-card-count {
    font-size: 9px;
    color: var(--gj-text-faint);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Recent articles */
.gj-kh-recent-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 24px;
}
.gj-kh-recent-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--gj-border);
    border-radius: 8px;
    text-decoration: none !important;
    transition: all var(--gj-transition);
}
.gj-kh-recent-row:hover {
    border-color: var(--gj-border-strong);
    background: var(--gj-surface);
}
.gj-kh-recent-row * { text-decoration: none !important; }
.gj-kh-recent-content { flex: 1; min-width: 0; }
.gj-kh-recent-top {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}
.gj-kh-level {
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 1px 5px;
    border-radius: 3px;
}
.gj-kh-level-green { background: rgba(34,197,94,0.08); color: rgba(34,197,94,0.70); }
.gj-kh-level-orange { background: rgba(234,179,8,0.08); color: rgba(234,179,8,0.70); }
.gj-kh-level-red { background: rgba(244,63,94,0.08); color: rgba(244,63,94,0.70); }
.gj-kh-recent-cat {
    font-size: 9px;
    color: var(--gj-text-faint);
}
.gj-kh-recent-content h4 {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.65);
    margin: 0 0 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gj-kh-recent-content p {
    font-size: 10.5px;
    color: var(--gj-text-muted);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gj-kh-recent-date {
    font-size: 9px;
    color: var(--gj-text-faint);
    margin-top: 2px;
    display: block;
}
.gj-kh-recent-arrow {
    color: var(--gj-text-faint);
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* CTA */
.gj-kh-cta {
    padding: 20px;
    background: var(--gj-surface);
    border: 1px solid var(--gj-border);
    border-radius: var(--gj-radius);
}
.gj-kh-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.gj-kh-cta h3 {
    font-size: 13px;
    font-weight: 500;
    color: var(--gj-text);
    margin: 0 0 2px;
}
.gj-kh-cta p {
    font-size: 11px;
    color: var(--gj-text-muted);
    margin: 0;
}
.gj-kh-cta-links {
    display: flex;
    align-items: center;
    gap: 8px;
}
.gj-kh-cta-primary {
    height: 30px;
    padding: 0 16px;
    background: var(--gj-accent);
    color: #0a0a0a;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
}
.gj-kh-cta-primary:hover {
    background: rgba(255,255,255,0.95);
    transform: translateY(-0.5px);
    color: #0a0a0a;
    text-decoration: none;
}
.gj-kh-cta-secondary {
    height: 30px;
    padding: 0 16px;
    background: transparent;
    border: 1px solid var(--gj-border);
    color: var(--gj-text-secondary);
    border-radius: 7px;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
}
.gj-kh-cta-secondary:hover {
    border-color: var(--gj-border-strong);
    color: var(--gj-text);
    text-decoration: none;
}

/* ═══════════════════════════════════════════
   KNOWLEDGE HUB — Topic view
   ═══════════════════════════════════════════ */
.gj-kb-article-page {
    color: var(--gj-text-secondary);
}
.gj-kb-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    font-size: 11px;
}
.gj-kb-breadcrumb a {
    color: var(--gj-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.gj-kb-breadcrumb a:hover { color: var(--gj-text-secondary); }
.gj-kb-breadcrumb svg { color: var(--gj-text-faint); width: 10px; height: 10px; }
.gj-kb-breadcrumb span { color: var(--gj-text-secondary); }

.gj-kb-topic-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}
.gj-kb-cat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--gj-accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gj-text-muted);
    flex-shrink: 0;
}
.gj-kb-cat-icon svg { width: 16px; height: 16px; }
.gj-kb-topic-header h1 {
    font-size: 18px;
    font-weight: 400;
    color: var(--gj-text);
    letter-spacing: -0.02em;
    margin: 0;
}
.gj-kb-topic-header p {
    font-size: 11px;
    color: var(--gj-text-muted);
    margin: 2px 0 0;
}
.gj-kb-topic-count {
    font-size: 9px;
    color: var(--gj-text-faint);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
    margin-bottom: 12px;
}

/* Article cards */
.gj-kb-article-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.gj-kb-article-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--gj-border);
    border-radius: 8px;
    text-decoration: none !important;
    transition: all var(--gj-transition);
}
.gj-kb-article-card:hover {
    border-color: var(--gj-border-strong);
    background: var(--gj-surface);
}
.gj-kb-article-card * { text-decoration: none !important; }
.gj-kb-article-body { flex: 1; min-width: 0; }
.gj-kb-article-body h3 {
    font-size: 12.5px;
    font-weight: 500;
    color: rgba(255,255,255,0.65);
    margin: 0 0 2px;
}
.gj-kb-article-body p {
    font-size: 10.5px;
    color: var(--gj-text-muted);
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gj-kb-article-meta {
    font-size: 9px;
    color: var(--gj-text-faint);
}
.gj-kb-dot { margin: 0 3px; }
.gj-kb-article-end {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.gj-kb-level {
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 1px 5px;
    border-radius: 3px;
}
.gj-kb-level-green { background: rgba(34,197,94,0.08); color: rgba(34,197,94,0.70); }
.gj-kb-level-orange { background: rgba(234,179,8,0.08); color: rgba(234,179,8,0.70); }
.gj-kb-level-red { background: rgba(244,63,94,0.08); color: rgba(244,63,94,0.70); }
.gj-kb-article-arrow {
    color: var(--gj-text-faint);
    width: 12px;
    height: 12px;
    transition: transform 0.2s;
}
.gj-kb-article-card:hover .gj-kb-article-arrow { transform: translateX(2px); }

/* Empty state */
.gj-kb-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--gj-text-muted);
}
.gj-kb-empty svg {
    margin-bottom: 12px;
    color: var(--gj-text-faint);
}
.gj-kb-empty h3 {
    font-size: 14px;
    font-weight: 500;
    color: var(--gj-text-secondary);
    margin: 0 0 4px;
}
.gj-kb-empty p {
    font-size: 11px;
    margin: 0 0 14px;
}
.gj-kb-back-link,
.gj-kb-back a {
    font-size: 11px;
    color: var(--gj-text-secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}
.gj-kb-back-link:hover,
.gj-kb-back a:hover { color: var(--gj-text); }
.gj-kb-back svg { width: 12px; height: 12px; }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (min-width: 768px) {
    .gj-pg-container { padding: 48px 32px 64px; }
    .gj-prose h1 { font-size: 26px; }
    .gj-faq-hero h1 { font-size: 26px; }
    .gj-kh-hero h1 { font-size: 26px; }
    .gj-article-header h1 { font-size: 22px; }
}

@media (max-width: 600px) {
    .gj-article-nav { grid-template-columns: 1fr; }
    .gj-nav-next { text-align: left; justify-content: flex-start; }
}

/* ═══════════════════════════════════════════
   ARTICLE PAGE — /kb/* overrides
   ═══════════════════════════════════════════ */

/* Nuke Frappe container + sidebar for .gj-article pages */
div.container:has(.gj-article) {
    max-width: 100% !important;
    padding: 0 !important;
}
div.container:has(.gj-article) > .row { margin: 0 !important; }
div.container:has(.gj-article) .sidebar-column { display: none !important; }
div.container:has(.gj-article) .main-column {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}
main.container:has(.gj-article) {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Same for category pages */
div.container:has(.gj-kb-article-page) {
    max-width: 100% !important;
    padding: 0 !important;
}
div.container:has(.gj-kb-article-page) > .row { margin: 0 !important; }
div.container:has(.gj-kb-article-page) .sidebar-column { display: none !important; }
div.container:has(.gj-kb-article-page) .main-column {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}

/* Nuke Frappe navbar/footer on kb pages */
.gj-article ~ .web-footer,
.gj-kb-article-page ~ .web-footer { display: none !important; }

/* ── Article wrapper ── */
.gj-article {
    color: var(--gj-text-secondary);
}

/* ── Breadcrumbs ── */
.gj-article-crumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.gj-article-crumbs a {
    color: var(--gj-text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.gj-article-crumbs a:hover { color: var(--gj-text-secondary); }
.gj-article-crumbs svg {
    color: var(--gj-text-faint);
    flex-shrink: 0;
}
.gj-article-crumbs > span {
    color: var(--gj-text-secondary);
    font-weight: 400;
}

/* ── Article Header ── */
.gj-article-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gj-border);
}
.gj-article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.gj-article-level {
    font-size: 8px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.gj-article-level-green { background: rgba(34,197,94,0.08); color: rgba(34,197,94,0.70); }
.gj-article-level-orange { background: rgba(234,179,8,0.08); color: rgba(234,179,8,0.70); }
.gj-article-level-red { background: rgba(244,63,94,0.08); color: rgba(244,63,94,0.70); }

.gj-article-date,
.gj-article-author {
    font-size: 10px;
    color: var(--gj-text-faint);
}
.gj-article-header h1 {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: -0.025em;
    color: var(--gj-text);
    line-height: 1.25;
    margin: 0;
    border: none !important;
    padding: 0 !important;
}

/* ── Article Body ── */
.gj-article-body {
    font-size: 13px;
    line-height: 1.75;
    color: var(--gj-text-secondary);
}
.gj-article-body h2 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gj-text);
    margin: 24px 0 8px;
    padding-top: 16px;
    border-top: 1px solid var(--gj-border);
    letter-spacing: -0.01em;
}
.gj-article-body h2:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}
.gj-article-body h3 {
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(255,255,255,0.70);
    margin: 18px 0 6px;
}
.gj-article-body p {
    margin-bottom: 12px;
    color: var(--gj-text-secondary);
}
.gj-article-body ul,
.gj-article-body ol {
    padding-left: 18px;
    margin-bottom: 12px;
}
.gj-article-body li {
    margin-bottom: 4px;
    color: var(--gj-text-secondary);
}
.gj-article-body li::marker { color: var(--gj-text-muted); }
.gj-article-body strong { color: rgba(255,255,255,0.72); font-weight: 600; }
.gj-article-body a {
    color: rgba(255,255,255,0.55);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.gj-article-body a:hover { color: var(--gj-text); }
.gj-article-body code {
    background: rgba(255,255,255,0.04);
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 0.9em;
    color: rgba(255,255,255,0.60);
}
.gj-article-body pre {
    background: var(--gj-surface);
    border: 1px solid var(--gj-border);
    border-radius: 8px;
    padding: 12px 16px;
    overflow-x: auto;
    margin: 12px 0;
}
.gj-article-body pre code {
    background: none;
    padding: 0;
    color: inherit;
}
.gj-article-body blockquote {
    border-left: 2px solid rgba(255,255,255,0.12);
    padding: 10px 14px;
    margin: 12px 0;
    background: rgba(255,255,255,0.015);
    border-radius: 0 6px 6px 0;
    color: var(--gj-text-secondary);
    font-style: italic;
}
.gj-article-body img {
    max-width: 100%;
    border-radius: 8px;
    margin: 12px 0;
}

/* ── Feedback ── */
.gj-article-feedback {
    margin-top: 28px;
    padding: 14px 16px;
    border: 1px solid var(--gj-border);
    border-radius: var(--gj-radius);
    background: var(--gj-surface);
}
.gj-article-feedback-prompt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.gj-article-feedback-prompt > span {
    font-size: 12px;
    font-weight: 500;
    color: var(--gj-text-secondary);
}
.gj-article-feedback-btns {
    display: flex;
    gap: 6px;
}
.gj-fb-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border: 1px solid var(--gj-border);
    border-radius: 6px;
    background: transparent;
    color: var(--gj-text-muted);
    font-size: 11px;
    font-weight: 500;
    font-family: var(--gj-font);
    cursor: pointer;
    transition: all 0.2s;
}
.gj-fb-btn:hover {
    border-color: var(--gj-border-strong);
    color: var(--gj-text-secondary);
    background: rgba(255,255,255,0.02);
}
.gj-article-feedback-thanks {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    color: var(--gj-success);
}

/* ── Prev / Next Navigation ── */
.gj-article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--gj-border);
}
.gj-article-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--gj-border);
    border-radius: 8px;
    text-decoration: none !important;
    background: transparent;
    transition: all var(--gj-transition);
}
.gj-article-nav-link:hover {
    border-color: var(--gj-border-strong);
    background: var(--gj-surface);
    transform: translateY(-0.5px);
    text-decoration: none !important;
}
.gj-article-nav-link:hover * { text-decoration: none !important; }
.gj-article-nav-link svg {
    color: var(--gj-text-faint);
    flex-shrink: 0;
    transition: color 0.2s;
}
.gj-article-nav-link:hover svg { color: var(--gj-text-secondary); }

.gj-nav-prev { justify-content: flex-start; }
.gj-nav-next { justify-content: flex-end; text-align: right; }
.gj-article-nav-solo { grid-template-columns: 1fr; }
.gj-nav-back { justify-content: center; }

.gj-nav-label {
    display: block;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gj-text-faint);
    margin-bottom: 1px;
}
.gj-nav-title {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.60);
    line-height: 1.3;
}
