/* forkdb portal: page-specific pieces. Loaded before ../shared/swiss.css,
   which restyles everything here with the Swiss telemetry system. */

.fk-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.fk-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.fk-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); padding: 28px; min-width: 0; }
.fk-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.fk-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.55; margin-bottom: 12px; }
.fk-card p:last-child { margin-bottom: 0; }

.fk-label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 10px; display: block; }

.fk-code { background: var(--bg-terminal, #040507); border: 1px solid var(--border-subtle); padding: 16px 18px; margin: 12px 0 14px; font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.6; overflow-x: auto; white-space: pre; color: var(--text-main); max-width: 100%; }
.fk-code .c { color: var(--text-dim); }
.fk-code .p { color: var(--sw-accent-text, var(--accent-purple)); user-select: none; }

.fk-note { font-size: 0.82rem; color: var(--text-dim); }

.fk-table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border-subtle); }
.fk-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 0.85rem; }
.fk-table th, .fk-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border-subtle); vertical-align: top; }
.fk-table th { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; }
.fk-table tr:last-child td { border-bottom: 0; }
.fk-table td code { white-space: nowrap; }

.fk-limits { list-style: none; border: 1px solid var(--border-subtle); }
.fk-limits li { padding: 14px 18px; border-bottom: 1px solid var(--border-subtle); color: var(--text-muted); font-size: 0.9rem; line-height: 1.55; }
.fk-limits li:last-child { border-bottom: 0; }
.fk-limits li strong { color: var(--text-main); }

@media (max-width: 900px) { .fk-grid-2, .fk-grid-3 { grid-template-columns: 1fr; } }

/* hero badge: same base as the nullroute and cloakenv pages (swiss.css restyles it) */
.hero-badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.8rem; margin-bottom: 24px; }

/* install box: same base as the nullroute and cloakenv pages (swiss.css restyles it) */
.hero-install-box { display: flex; align-items: center; gap: 12px; background: var(--bg-surface); border: 1px solid var(--border-medium); padding: 8px 16px; margin-bottom: 48px; }
.install-command { font-family: var(--font-mono); font-size: 0.95rem; color: #fff; display: flex; gap: 8px; }
.install-command .prompt { color: var(--accent-emerald); }
.fk-install-stack { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.fk-install-stack .hero-install-box { margin: 0; flex-wrap: nowrap; width: min(100%, 440px); }
.fk-install-stack .install-command { flex: 1; min-width: 0; flex-wrap: nowrap; }
.fk-install-stack .install-command code { white-space: nowrap; overflow-wrap: normal; }

/* links inside copy: page accent, underlined (the browser default blue is unreadable on the dark canvas) */
.fk-note a, .fk-card p a { color: var(--sw-accent-text, var(--accent-emerald)); text-decoration: underline; text-underline-offset: 3px; }
.fk-note a:hover, .fk-card p a:hover { color: var(--sw-paper, #fff); }
.fk-note a code { color: inherit; }
