/**
 * Owner/admin "preview" notice banner.
 *
 * Displayed at the top of a public book or chapter page when the content is
 * not yet published, so only the author or an administrator can see it.
 * Amber, calm and informative — clearly a status hint, not an error.
 */

.unpublished-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    padding: 12px 16px;
    border: 1px solid var(--color-warning, #f59e0b);
    border-radius: var(--radius-md, 10px);
    background: var(--color-warning-light, #fffbeb);
    color: var(--color-text, #1f2937);
}

.unpublished-notice__icon {
    display: inline-flex;
    flex-shrink: 0;
    color: var(--color-warning-dark, #b45309);
}

.unpublished-notice__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    line-height: 1.4;
}

.unpublished-notice__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-warning-dark, #b45309);
}

.unpublished-notice__message {
    font-size: 13px;
    color: var(--color-text-secondary, #6b7280);
}

/* Dark theme: soften the amber so it does not glare on a dark page. */
[data-theme="dark"] .unpublished-notice {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.12);
}

[data-theme="dark"] .unpublished-notice__icon,
[data-theme="dark"] .unpublished-notice__title {
    color: #fbbf24;
}
