/* byForja plan template — shared styles used by admin preview + client view.
   Color variables (--p-primary etc.) are injected inline by the renderer. */

.bp-wrap { max-width: 1080px; margin: 0 auto; padding: 32px 24px; box-sizing: border-box; }
.bp-header { margin-bottom: 24px; }
.bp-h1 { font-size: 38px; font-weight: 500; margin: 0 0 8px; letter-spacing: -0.02em; line-height: 1.1; }
.bp-subtitle { font-style: italic; color: #666; font-size: 16px; margin: 0; }
.bp-h3 { font-size: 22px; font-weight: 500; color: var(--p-accent, #89531A); margin: 36px 0 14px; padding-bottom: 10px; border-bottom: 1px solid #d4cfc0; }
.bp-section { margin-bottom: 8px; }

.bp-intro { background: var(--p-neutral, #E8E4D4); border-left: 4px solid var(--p-accent, #89531A); padding: 16px 20px; margin-bottom: 28px; font-size: 14px; line-height: 1.6; border-radius: 0 4px 4px 0; }
.bp-intro div { margin: 4px 0; }
.bp-intro strong { color: var(--p-primary, #2E3B12); }

.bp-empty { color: #999; font-style: italic; }
.bp-empty-section { padding: 32px; text-align: center; color: #999; font-style: italic; }

.bp-timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-bottom: 12px; }
.bp-tw { padding: 12px 8px; text-align: center; font-size: 12px; border-radius: 4px; background: var(--p-bg, #F5F2EA); color: var(--p-primary, #2E3B12); border: 1px solid rgba(0,0,0,0.06); }
.bp-tw b { display: block; font-size: 13px; margin-bottom: 4px; }
.bp-tw.tournage { background: var(--p-primary, #2E3B12); color: #fff; border-color: var(--p-primary); font-weight: 500; }
.bp-tw small { display: block; font-size: 10px; opacity: 0.85; margin-top: 4px; }
.bp-legend-row { font-size: 12px; color: #666; }
.bp-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

.bp-list { margin: 0; padding: 0 0 0 20px; font-size: 14px; line-height: 1.7; }

.bp-cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 720px) { .bp-cases-grid { grid-template-columns: repeat(2, 1fr); } }
.bp-case { aspect-ratio: 1; padding: 10px; border-radius: 4px; display: flex; flex-direction: column; justify-content: space-between; color: #1a1a1a; position: relative; overflow: hidden; font-size: 11px; border: 1px solid rgba(0,0,0,0.1); }
.bp-case-idx { font-weight: 600; font-size: 18px; opacity: 0.7; }
.bp-case-code { font-family: 'JetBrains Mono', monospace; font-size: 12px; opacity: 0.85; }
.bp-case-meta { font-family: 'JetBrains Mono', monospace; font-size: 10px; opacity: 0.6; }
.bp-case-caption { font-size: 11px; line-height: 1.3; max-height: 40px; overflow: hidden; }

.bp-pal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.bp-pal-item { display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,0.5); padding: 10px; border-radius: 4px; border: 1px solid rgba(0,0,0,0.05); }
.bp-pal-swatch { width: 40px; height: 40px; border-radius: 4px; border: 1px solid rgba(0,0,0,0.1); flex-shrink: 0; }
.bp-pal-role { font-size: 13px; font-weight: 500; }
.bp-pal-hex { font-family: 'JetBrains Mono', monospace; font-size: 11px; opacity: 0.7; }
.bp-pal-notes { font-size: 11px; opacity: 0.6; margin-top: 2px; }

.bp-briefs { list-style: none; margin: 0; padding: 0; }
.bp-brief { display: flex; align-items: flex-start; gap: 10px; padding: 12px; background: rgba(255,255,255,0.4); border: 1px solid rgba(0,0,0,0.05); border-radius: 4px; margin-bottom: 6px; }
.bp-brief-check { margin-top: 4px; transform: scale(1.2); cursor: pointer; }
.bp-brief-title { font-size: 14px; margin-bottom: 4px; }
.bp-brief-assets { font-size: 12px; color: #555; font-style: italic; }

.bp-hl-row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.bp-hl { flex-shrink: 0; text-align: center; }
.bp-hl img, .bp-hl-ph { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; border: 2px solid var(--p-accent, #89531A); display: block; margin-bottom: 6px; }
.bp-hl-ph { background: var(--p-neutral, #E8E4D4); }
.bp-hl-label { font-size: 11px; font-family: 'JetBrains Mono', monospace; color: var(--p-primary, #2E3B12); }

.bp-ovl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.bp-ovl { background: rgba(255,255,255,0.5); padding: 12px; border-radius: 4px; border: 1px solid rgba(0,0,0,0.06); font-size: 13px; }
.bp-ovl-id { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--p-accent, #89531A); font-weight: 600; }
.bp-ovl-title { font-weight: 500; margin: 4px 0; }
.bp-ovl-type { font-size: 11px; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.5px; }
.bp-ovl-desc { font-size: 12px; opacity: 0.75; margin-top: 4px; line-height: 1.4; }

.bp-prose { font-size: 14px; line-height: 1.7; background: rgba(255,255,255,0.5); padding: 16px 20px; border-radius: 4px; }

/* Admin-only block — visible only in admin mode */
.bp-section.bp-admin { background: #fef3c7; border: 2px dashed #f59e0b; border-radius: 6px; padding: 16px 20px; margin-top: 32px; }
.bp-admin-banner { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: #92400e; margin-bottom: 12px; }
.bp-admin-block { margin-top: 12px; }
.bp-admin-t { font-weight: 500; font-size: 13px; color: #92400e; margin-bottom: 4px; }
.bp-admin-v { background: #fff; padding: 10px; border-radius: 4px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #1a1a1a; white-space: pre-wrap; word-break: break-word; margin: 0; max-height: 280px; overflow-y: auto; }
