/* Bootcamp page — Frame-card design (from user's HTML mockup) */

.bootcamp-page-wrap {
    min-height: 100vh;
    padding: 48px 24px 80px;
    display: flex;
    justify-content: center;
    --bg: #08090b;
    --frame-bg: #0c0d10;
    --inset-bg: #101115;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.62);
    --text-dim: rgba(255, 255, 255, 0.42);
    --text-faint: rgba(255, 255, 255, 0.28);
}

.frame {
    position: relative;
    width: 100%;
    max-width: 960px;
    background: var(--frame-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 56px 64px 56px;
    overflow: hidden;
}

.frame::before {
    content: "";
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.04), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.frame > * {
    position: relative;
    z-index: 1;
}

/* Topbar */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 56px;
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: -0.005em;
}

.topbar .brand {
    color: var(--text);
    font-weight: 500;
    text-decoration: none;
    transition: opacity 150ms ease;
}

.topbar .brand:hover {
    opacity: 0.7;
}

/* Eyebrow pill */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    margin-bottom: 24px;
}

.eyebrow .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15);
}

/* Typography */
.frame h1 {
    font-size: 64px;
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.02;
    margin: 0 0 24px;
    color: var(--text);
}

.frame h2 {
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin: 0 0 28px;
    color: var(--text);
}

.frame h3 {
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.005em;
    color: var(--text);
    margin: 0 0 12px;
}

.lede {
    font-size: 22px;
    line-height: 1.55;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 0 36px;
    letter-spacing: -0.01em;
}

/* CTA */
.cta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--text);
    color: #0a0a0a;
    border-radius: 10px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.01em;
    transition: transform 120ms ease, box-shadow 120ms ease;
}

.cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.08);
    color: #0a0a0a;
}

.cta .arrow {
    transition: transform 200ms ease;
}

.cta:hover .arrow {
    transform: translateX(2px);
}

.fine {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.6;
    max-width: 480px;
    margin: 0;
}

.fine a {
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--border-strong);
}

.fine a:hover {
    color: var(--text);
}

/* Section rule */
.rule {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 56px 0;
}

/* Section label */
.section-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin: 0 0 20px;
}

/* Manifesto */
.manifesto {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 640px;
    letter-spacing: -0.005em;
}

.manifesto strong {
    color: var(--text);
    font-weight: 500;
}

.manifesto p {
    margin: 0;
}

/* Two-column grid */
.grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.block {
    padding-left: 20px;
    border-left: 1px solid var(--border);
}

.block p {
    font-size: 17px;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0;
    letter-spacing: -0.005em;
}

/* Numbered process steps */
.process {
    display: grid;
    gap: 32px;
}

.step {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 24px;
    align-items: baseline;
}

.step-num {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-faint);
    letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
    padding-top: 2px;
}

.step-body h3 {
    margin-bottom: 10px;
}

.step-body p {
    font-size: 17px;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0;
    letter-spacing: -0.005em;
}

/* Pricing inset card */
.pricing {
    background: var(--inset-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
}

.pricing p {
    font-size: 17px;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0 0 16px;
    letter-spacing: -0.005em;
}

.pricing p:last-child {
    margin-bottom: 0;
}

.pricing p strong {
    color: var(--text);
    font-weight: 500;
}

/* Fit lists */
.fit-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fit-list li {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 12px;
    align-items: start;
    padding: 10px 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    letter-spacing: -0.005em;
}

.fit-list li:last-child {
    border-bottom: none;
}

.fit-list .icon {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    flex-shrink: 0;
}

.fit-yes .icon {
    color: rgba(255, 255, 255, 0.85);
}

.fit-no .icon {
    color: var(--text-faint);
}

/* Final CTA block */
.final-cta {
    margin-top: 8px;
}

.final-cta p.intro {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 0 28px;
    letter-spacing: -0.005em;
}

/* Footer */
.footer-rule {
    border: 0;
    height: 1px;
    background: var(--border);
    margin: 48px 0 24px;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-faint);
    letter-spacing: -0.005em;
}

.footer a {
    color: var(--text-dim);
    text-decoration: none;
}

.footer a:hover {
    color: var(--text-muted);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.breadcrumb-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 200ms ease;
}

.breadcrumb-link:hover {
    color: var(--text);
}

.breadcrumb-sep {
    color: var(--text-faint);
}

.breadcrumb-current {
    color: var(--text-faint);
}

/* Responsive */
@media (max-width: 720px) {
    .frame {
        padding: 40px 28px;
        border-radius: 16px;
    }
    .frame h1 {
        font-size: 40px;
    }
    .frame h2 {
        font-size: 24px;
    }
    .lede {
        font-size: 17px;
    }
    .grid-two {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .step {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .pricing {
        padding: 24px;
    }
    .rule {
        margin: 40px 0;
    }
    .topbar {
        margin-bottom: 40px;
    }
    .footer {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}

/* Articles index — card grid */
.article-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
}

.article-card {
    display: block;
    padding: 28px;
    background: var(--inset-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: border-color 200ms ease, transform 200ms ease, background 200ms ease;
}

.article-card:hover {
    border-color: var(--border-strong);
    background: #14151a;
    transform: translateY(-1px);
}

.article-card .eyebrow {
    margin-bottom: 16px;
}

.article-card-title {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0 0 10px;
}

.article-card-summary {
    font-size: 16px;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 0 0 16px;
    letter-spacing: -0.005em;
}

.article-card-date {
    font-size: 12px;
    color: var(--text-faint);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 720px) {
    .article-card {
        padding: 22px;
    }
    .article-card-title {
        font-size: 19px;
    }
}

/* Admin login form */
.admin-login-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
    max-width: 400px;
}

.admin-login-row label {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.admin-login-row input {
    padding: 12px 14px;
    background: var(--inset-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
}

.admin-login-row input:focus {
    outline: none;
    border-color: var(--border-strong);
}

.admin-login-error {
    color: #f87171;
    font-size: 14px;
    margin: 16px 0;
}

/* Admin layout */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-logout-link {
    color: var(--text-faint);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 200ms ease;
}

.admin-logout-link:hover {
    color: var(--text);
}

.admin-empty {
    padding: 48px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 16px;
}

.admin-empty a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--border-strong);
}

.admin-article-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 32px;
}

.admin-article-table th {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.admin-article-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 15px;
}

.admin-article-table tr:last-child td {
    border-bottom: none;
}

.admin-article-table td strong {
    color: var(--text);
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}

.admin-table-slug {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 12px;
    color: var(--text-faint);
}

.admin-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    text-transform: uppercase;
}

.admin-status-draft {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
}

.admin-status-published {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
}

.admin-date {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 13px;
    color: var(--text-dim);
}

.admin-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.admin-actions a, .admin-actions button {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    transition: color 200ms ease;
}

.admin-actions a:hover {
    color: var(--text);
}

.admin-delete-btn:hover {
    color: #f87171;
}

/* Block editor shared styles */
.block-editor-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.block-editor-row label {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.block-editor-row input,
.block-editor-row textarea {
    padding: 8px 12px;
    background: #0d0e12;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    resize: vertical;
}

.block-editor-row input:focus,
.block-editor-row textarea:focus {
    outline: none;
    border-color: var(--border-strong);
}

.block-editor-note {
    color: var(--text-faint);
    font-style: italic;
    font-size: 13px;
    margin: 0;
}

.block-editor-subgroup {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.block-editor-subgroup h4 {
    margin: 0 0 12px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.block-editor-subgroup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.block-editor-subgroup-header h4 {
    margin: 0;
}

.block-editor-add-item {
    background: none;
    border: 1px dashed var(--border);
    color: var(--text-muted);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    width: 100%;
}

.block-editor-add-item:hover {
    color: var(--text);
    border-color: var(--border-strong);
}

.block-editor-remove {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-faint);
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
}

.block-editor-remove:hover {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.3);
}

.block-editor-inline-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.block-editor-inline-row input {
    flex: 1;
}

/* Admin editor layout */
.admin-back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
}

.admin-back-link:hover {
    color: var(--text);
}

.admin-metadata-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
    margin-bottom: 16px;
}

.admin-metadata-grid select {
    padding: 8px 12px;
    background: #0d0e12;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

.admin-error-banner {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #f87171;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.admin-blocks-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.admin-block {
    background: var(--inset-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.admin-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
}

.admin-block-type {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.admin-block-actions {
    display: flex;
    gap: 6px;
}

.admin-block-actions button {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.admin-block-actions button:hover:not(:disabled) {
    color: var(--text);
    border-color: var(--border-strong);
}

.admin-block-actions button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.admin-block-remove:hover {
    color: #f87171 !important;
    border-color: rgba(248, 113, 113, 0.3) !important;
}

.admin-block-body {
    padding: 16px;
}

.admin-add-block {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}

.admin-add-block select,
.admin-add-block button {
    padding: 8px 12px;
    background: var(--inset-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    cursor: pointer;
}

.admin-add-block button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.admin-save-row {
    justify-content: flex-end;
}

.admin-cancel-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    padding: 12px 20px;
}

.admin-cancel-link:hover {
    color: var(--text);
}

.admin-publish-cta {
    background: #4ade80;
    color: #0a0a0a;
    border-color: #4ade80;
}

.admin-publish-cta:hover {
    background: #22c55e;
    border-color: #22c55e;
}

@media (max-width: 720px) {
    .admin-metadata-grid {
        grid-template-columns: 1fr;
    }
}

/* Default block spacing for DynamicArticle-rendered content blocks.
   Code-based pages (Bootcamp) use explicit SectionRule between blocks; DB articles
   need automatic breathing room so authors don't have to add a rule between every section. */
.frame > .manifesto,
.frame > .grid-two,
.frame > .process,
.frame > .pricing,
.frame > .final-cta,
.frame > .section-label {
    margin-top: 40px;
    margin-bottom: 40px;
}

.frame > .manifesto:last-child,
.frame > .grid-two:last-child,
.frame > .process:last-child,
.frame > .pricing:last-child,
.frame > .final-cta:last-child,
.frame > .section-label:last-child {
    margin-bottom: 0;
}

/* Section labels paired with a grid/process below should hug it, not get the full gap */
.frame > .section-label + .grid-two,
.frame > .section-label + .process,
.frame > .section-label + .pricing {
    margin-top: -24px;
}

/* Admin toast — fixed-position notification, fades after 2.5s */
.admin-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    padding: 12px 20px;
    background: #4ade80;
    color: #0a0a0a;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: admin-toast-in 200ms cubic-bezier(0.2, 0.6, 0.2, 1) both;
}

@keyframes admin-toast-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Drag-and-drop block reordering */
.admin-block-drag-handle {
    display: inline-block;
    color: var(--text-faint);
    cursor: grab;
    margin-right: 8px;
    font-size: 14px;
    letter-spacing: -2px;
    user-select: none;
}

.admin-block-header:hover .admin-block-drag-handle {
    color: var(--text-muted);
}

.admin-block-header:active .admin-block-drag-handle {
    cursor: grabbing;
}

.admin-block.is-dragging {
    opacity: 0.4;
}

.admin-block.is-drop-target {
    outline: 2px dashed #4ade80;
    outline-offset: 2px;
}
