/* Content / UCP CSS of the demo (kept apart from the ACP UI CSS in acp.scss). Plain CSS, no Tailwind.
   Only applies inside the preview iframe. Breakpoints like NoByte: 576 / 782 / 992 / 1200 / 1400.
   NoByte maps these `nb-*` classes onto its own classes/Tailwind. */

/* ---- layout */
.nb-section { display: block; }
.nb-pad-none { padding: 0; }
.nb-pad-sm { padding: 16px; }
.nb-pad-md { padding: 32px; }
.nb-pad-lg { padding: 64px 32px; }
.nb-inner { margin-left: auto; margin-right: auto; }
.nb-w-wide { max-width: 1100px; }
.nb-w-narrow { max-width: 720px; }
.nb-cols { display: grid; gap: 20px; }
.nb-cols-2 { grid-template-columns: repeat(2, 1fr); }
.nb-cols-3 { grid-template-columns: repeat(3, 1fr); }
.nb-cols-4 { grid-template-columns: repeat(4, 1fr); }
.nb-va-start { align-items: start; }
.nb-va-center { align-items: center; }
.nb-va-end { align-items: end; }
.nb-row { display: flex; }
.nb-row.nb-wrap { flex-wrap: wrap; }
.nb-stack { display: flex; flex-direction: column; }
.nb-grid { display: grid; }
.nb-grid-2 { grid-template-columns: repeat(2, 1fr); }
.nb-grid-3 { grid-template-columns: repeat(3, 1fr); }
.nb-grid-4 { grid-template-columns: repeat(4, 1fr); }
.nb-gap-none { gap: 0; }
.nb-gap-sm { gap: 8px; }
.nb-gap-md { gap: 16px; }
.nb-gap-lg { gap: 32px; }
.nb-just-start { justify-content: flex-start; }
.nb-just-center { justify-content: center; }
.nb-just-end { justify-content: flex-end; }
.nb-just-between { justify-content: space-between; }
.nb-just-around { justify-content: space-around; }
.nb-just-evenly { justify-content: space-evenly; }
.nb-ai-start { align-items: flex-start; }
.nb-ai-center { align-items: center; }
.nb-ai-end { align-items: flex-end; }
.nb-ai-baseline { align-items: baseline; }
.nb-spacer { display: block; }
.nb-separator { border: 0; border-top: 1px solid #cbd5e1; margin: 24px auto; }
.nb-sep-wide { border-top-width: 2px; }
.nb-sep-dots { border: 0; text-align: center; height: auto; }
.nb-sep-dots::before { content: '···'; letter-spacing: 1em; color: #64748b; }

/* ---- text */
.nb-align-left { text-align: left; }
.nb-align-center { text-align: center; }
.nb-align-right { text-align: right; }
.nb-align-justify { text-align: justify; }
.nb-self-left, .nb-self-center, .nb-self-right { display: block; width: fit-content; }
.nb-self-left { margin-left: 0; margin-right: auto; }
.nb-self-center { margin-left: auto; margin-right: auto; }
.nb-self-right { margin-left: auto; margin-right: 0; }
.nb-heading { margin: 0 0 12px; line-height: 1.2; }
.nb-text { margin: 0 0 12px; }
.nb-fs-12 { font-size: .75rem; }
.nb-fs-14 { font-size: .875rem; }
.nb-fs-16 { font-size: 1rem; }
.nb-fs-18 { font-size: 1.125rem; }
.nb-fs-20 { font-size: 1.25rem; }
.nb-fs-24 { font-size: 1.5rem; }
.nb-fs-30 { font-size: 1.875rem; }
.nb-fs-36 { font-size: 2.25rem; }
.nb-fs-48 { font-size: 3rem; }
.nb-fs-60 { font-size: 3.75rem; }
.nb-fs-72 { font-size: 4.5rem; }
.nb-fs-96 { font-size: 6rem; }
.nb-fs-128 { font-size: 8rem; }
.nb-leading-none { line-height: 1; }
.nb-leading-tight { line-height: 1.25; }
.nb-leading-snug { line-height: 1.375; }
.nb-leading-normal { line-height: 1.5; }
.nb-leading-relaxed { line-height: 1.625; }
.nb-leading-loose { line-height: 2; }
.nb-tracking-tighter { letter-spacing: -.05em; }
.nb-tracking-tight { letter-spacing: -.025em; }
.nb-tracking-normal { letter-spacing: 0; }
.nb-tracking-wide { letter-spacing: .025em; }
.nb-tracking-wider { letter-spacing: .05em; }
.nb-tracking-widest { letter-spacing: .1em; }
.nb-list { margin: 0 0 12px; padding-left: 1.5em; }
.nb-quote { margin: 0 0 12px; padding-left: 16px; border-left: 4px solid #cbd5e1; color: #334155; }
.nb-quote p { margin: 0 0 8px; }
.nb-quote cite, .nb-pullquote cite { display: block; font-size: .875em; color: #64748b; font-style: normal; }
.nb-pullquote { margin: 16px 0; padding: 16px 0; border-top: 4px solid #0f172a; border-bottom: 4px solid #0f172a; text-align: center; font-size: 1.25em; }
.nb-pullquote blockquote { margin: 0; }
.nb-pullquote p { margin: 0 0 8px; }
.nb-code, .nb-preformatted, .nb-verse { margin: 0 0 12px; padding: 12px 16px; border-radius: 6px; overflow: auto; white-space: pre-wrap; }
.nb-code { background: #0f172a; color: #e2e8f0; font: 13px/1.6 ui-monospace, monospace; }
.nb-preformatted { background: #f1f5f9; font: 13px/1.6 ui-monospace, monospace; }
.nb-verse { font-family: Georgia, serif; }
.nb-details { margin: 0 0 12px; padding: 8px 12px; border: 1px solid #e2e8f0; border-radius: 6px; }
.nb-details summary { cursor: pointer; font-weight: 600; }
.nb-table { margin: 0 0 12px; overflow-x: auto; }
.nb-table table { border-collapse: collapse; width: 100%; }
.nb-table th, .nb-table td { border: 1px solid #e2e8f0; padding: 8px 12px; text-align: left; }
.nb-table th { background: #f8fafc; }
.nb-table figcaption, .nb-figure figcaption, .nb-video figcaption, .nb-audio figcaption, .nb-embed figcaption { margin-top: 6px; font-size: .875em; color: #64748b; text-align: center; }
.nb-html, .nb-shortcode { margin: 0 0 12px; }
.nb-shortcode { padding: 4px 8px; background: #f1f5f9; border-radius: 4px; font: 13px/1.5 ui-monospace, monospace; }

/* ---- buttons */
.nb-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.nb-buttons .nb-btn { margin: 0; }
.nb-btn { margin-top: 4px; padding: 10px 18px; border-radius: 6px; text-decoration: none; font-weight: 600; }
.nb-btn-primary { background: #0369a1; color: #fff; }
.nb-btn-secondary { background: #e2e8f0; color: #0f172a; }

/* ---- media */
.nb-image, .nb-figure img { display: block; }
.nb-image-link { display: block; }
.nb-figure { margin: 0 0 12px; }
.nb-rounded { border-radius: 12px; }
.nb-gallery { display: grid; gap: 8px; margin: 0 0 12px; }
.nb-gallery figure { margin: 0; }
.nb-gallery-2 { grid-template-columns: repeat(2, 1fr); }
.nb-gallery-3 { grid-template-columns: repeat(3, 1fr); }
.nb-gallery-4 { grid-template-columns: repeat(4, 1fr); }
.nb-audio, .nb-video { margin: 0 0 12px; }
.nb-audio audio, .nb-video video { width: 100%; }
.nb-placeholder { display: flex; align-items: center; justify-content: center; min-height: 72px; padding: 12px; background: #f1f5f9; border: 1px dashed #94a3b8; border-radius: 6px; color: #475569; font: 13px/1.5 ui-monospace, monospace; }
.nb-pick-btn { padding: 6px 14px; border: 1px solid #2563eb; border-radius: 6px; background: #fff; color: #2563eb; font: 600 13px/1.5 sans-serif; cursor: pointer; }
.nb-pick-btn:hover { background: #eff6ff; }
.nb-media-editor img { display: block; margin-bottom: 6px; }
.nb-cover { position: relative; display: flex; align-items: center; justify-content: center; padding: 32px; background-size: cover; background-position: center; background-color: #1e293b; color: #fff; margin: 0 0 12px; }
.nb-cover-overlay { position: absolute; inset: 0; }
.nb-cover-inner { position: relative; width: 100%; max-width: 720px; }
.nb-file { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; margin: 0 0 12px; border: 1px solid #e2e8f0; border-radius: 6px; }
.nb-file .nb-btn { margin: 0; }
.nb-media-text { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; margin: 0 0 12px; }
.nb-media-text .nb-mt-media { margin: 0; }
.nb-mt-right .nb-mt-media { order: 2; }

/* ---- embeds and widgets */
.nb-embed { margin: 0 0 12px; }
.nb-embed iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.nb-embed-link { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid #e2e8f0; border-radius: 6px; color: #0369a1; text-decoration: none; }
.nb-embed-link img { width: 96px; height: 54px; object-fit: cover; border-radius: 4px; }
.nb-embed-card { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: #f8fafc; border: 1px dashed #94a3b8; border-radius: 6px; font-size: 13px; }
.nb-embed-card img { max-width: 160px; border-radius: 4px; }
.nb-embed-card span { color: #64748b; word-break: break-all; }
.nb-social { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0 0 12px; padding: 0; }
.nb-social-link { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 999px; background: #e2e8f0; color: #0f172a; text-decoration: none; }

/* ---- misc */
.nb-callout { border-left: 4px solid #0369a1; background: #f0f9ff; padding: 12px 16px; margin: 12px 0; }
.nb-callout p { margin: 4px 0 0; }
.nb-callout-warn { border-color: #d97706; background: #fffbeb; }
.nb-callout-success { border-color: #15803d; background: #f0fdf4; }
.nb-demo, .nb-demo-block { background: #ede9fe; color: #5b21b6; border: 1px dashed #8b5cf6; border-radius: 4px; font: 12px/1.5 ui-monospace, monospace; }
.nb-demo { display: inline-block; padding: 0 4px; }
.nb-demo-block { display: block; padding: 8px 12px; margin: 8px 0; }

@media (max-width: 782px) {
    .nb-cols-2, .nb-cols-3, .nb-cols-4, .nb-grid-2, .nb-grid-3, .nb-grid-4, .nb-media-text { grid-template-columns: 1fr; }
    .nb-gallery-3, .nb-gallery-4 { grid-template-columns: repeat(2, 1fr); }
    .nb-mt-right .nb-mt-media { order: 0; }
}
@media (max-width: 576px) {
    .nb-pad-md { padding: 20px 16px; }
    .nb-pad-lg { padding: 32px 16px; }
}
