/* Layout structure */
.np-page-renderer { width: 100%; }
.np-pr-section    { width: 100%; box-sizing: border-box; }
.np-pr-row        { box-sizing: border-box; }
.np-pr-col        { box-sizing: border-box; }
.np-pr-widget     { box-sizing: border-box; }

/* Heading */
.np-pr-heading,
.np-widget-heading { margin: 0 0 .5em; line-height: 1.25; }

/* Text */
.np-pr-text,
.np-widget-text   { line-height: 1.7; }
.np-pr-text p,
.np-widget-text p { margin: 0 0 1em; }

/* Image */
.np-pr-image,
.np-widget-image       { margin: 0; }
.np-pr-image img,
.np-widget-image img   { max-width: 100%; height: auto; display: block; border-radius: 4px; }

/* Button */
.np-pr-button-wrap,
.np-widget-button { display: flex; }
.np-pr-button,
.np-btn {
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 6px; padding: 10px 24px; text-decoration: none;
    font-weight: 600; cursor: pointer; transition: opacity .15s;
}
.np-pr-button:hover,
.np-btn:hover { opacity: .85; }
.np-pr-button--primary,
.np-btn--primary   { background: #6366f1; color: #fff; }
.np-pr-button--secondary,
.np-btn--secondary { background: #e5e7eb; color: #111; }
.np-pr-button--outline,
.np-btn--outline   { border: 2px solid #6366f1; color: #6366f1; background: transparent; }

/* List */
.np-pr-list,
.np-widget-list { padding-left: 1.5em; margin: 0; line-height: 1.7; }
.np-pr-list li,
.np-widget-list li { margin-bottom: .25em; }

/* Callout */
.np-pr-callout,
.np-widget-callout {
    display: flex; gap: 12px; padding: 14px 16px;
    border-left: 4px solid; border-radius: 4px; align-items: flex-start;
}
.np-pr-callout--info,
.np-callout--info    { border-color: #6366f1; background: #f5f3ff; }
.np-pr-callout--warning,
.np-callout--warning { border-color: #f59e0b; background: #fffbeb; }
.np-pr-callout--success,
.np-callout--success { border-color: #10b981; background: #ecfdf5; }
.np-pr-callout--error,
.np-callout--error   { border-color: #ef4444; background: #fef2f2; }
.np-pr-callout__icon,
.np-callout__icon    { font-size: 1.25rem; flex-shrink: 0; }
.np-pr-callout__body,
.np-callout__text    { line-height: 1.6; flex: 1; }

/* Divider */
.np-pr-divider,
.np-widget-divider {
    border: none; border-top-width: 2px; margin: 16px 0; border-color: #d1d5db;
}
.np-pr-divider--solid,
.np-divider--solid  { border-top-style: solid; }
.np-pr-divider--dashed,
.np-divider--dashed { border-top-style: dashed; }
.np-pr-divider--dotted,
.np-divider--dotted { border-top-style: dotted; }

/* Container */
.np-pr-container,
.np-widget-container { width: 100%; }

/* Unknown widget placeholder */
.np-widget-unknown {
    padding: 8px;
    background: #fef3c7;
    border: 1px dashed #f59e0b;
    border-radius: 4px;
    min-height: 24px;
}

/* Code Highlighter */
.np-widget-code {
    position: relative;
    width: 100%;
    padding: 10px;
    border: 1px solid #999;
    border-radius: 6px;
    background: #333;
}
.np-code-block  {
    margin: 0;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.6;
}
.np-code-block code {
    font-family: 'Fira Code', 'Cascadia Code', 'Consolas', 'Menlo', monospace;
    display: block;
}

/* Copy button */
.np-code-copy {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 500;
    color: #cbd5e1;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 5px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s, background .15s, color .15s;
    z-index: 2;
    white-space: nowrap;
    line-height: 1;
}
.np-widget-code:hover .np-code-copy {
    opacity: 1;
    pointer-events: auto;
}
.np-code-copy:hover {
    background: rgba(255,255,255,.16);
    color: #f1f5f9;
}
.np-code-copy--copied {
    color: #34d399 !important;
    border-color: rgba(52,211,153,.4) !important;
    background: rgba(52,211,153,.1) !important;
}
