/* Namespaced, responsive styling. Does not change Nightingale or Bulletin colours. */
.dcn-root { position: relative; z-index: 70; width: 100%; font-size: 16px; line-height: 1.5; font-family: inherit; }
.dcn-banner { --dcn-bg: #fff4ce; --dcn-border: #ffb81c; --dcn-ink: #212b32; background: var(--dcn-bg); color: var(--dcn-ink); border-bottom: 2px solid var(--dcn-border); }
.dcn-banner--info { --dcn-bg: #e8f4fb; --dcn-border: #005eb8; }
.dcn-banner--urgent { --dcn-bg: #fff1f0; --dcn-border: #d5281b; }
.dcn-banner--success { --dcn-bg: #eaf7ed; --dcn-border: #007f3b; }
.dcn-banner__inner { display: flex; align-items: flex-start; gap: 14px; margin: 0 auto; padding: 13px 20px 15px; max-width: 1200px; box-sizing: border-box; }
.dcn-banner__icon { display: inline-flex; align-items: center; justify-content: center; flex: none; font-weight: 800; font-family: system-ui, sans-serif; color: #fff; background: #334155; border-radius: 50%; width: 26px; height: 26px; margin-top: 2px; }
.dcn-banner--urgent .dcn-banner__icon { background: #d5281b; }
.dcn-banner--success .dcn-banner__icon { background: #007f3b; }
.dcn-banner__content { flex: 1; min-width: 0; }
.dcn-banner__heading { display: block; margin: 0 0 3px; color: inherit; font-size: 1rem; font-weight: 750; line-height: 1.4; }
.dcn-banner__summary { margin: 0; color: inherit; font-size: .95rem; }
.dcn-banner__details { margin: 7px 0 0; color: inherit; }
.dcn-banner__details summary { cursor: pointer; display: list-item; width: fit-content; color: #004b93; font-size: .94rem; text-decoration: underline; text-underline-offset: 2px; font-weight: 700; }
.dcn-banner__details summary:focus-visible, .dcn-banner__dismiss:focus-visible { outline: 3px solid #212b32; outline-offset: 3px; }
.dcn-banner__body { margin: 12px 0 4px; padding-top: 12px; border-top: 1px solid rgba(33,43,50,.25); font-size: 1rem; line-height: 1.5; }
/* Use a readable 16px base for unformatted text, even if an NHS theme
   applies larger global list/paragraph rules. Unlike v1.0.1, do NOT impose
   fixed sizes on editor-authored <span style="font-size: ..."> content.
   TinyMCE's Visual font-size dropdown writes these spans. List/paragraph
   font sizing is normalised only if the element has no explicit size of its
   own, allowing a hub editor to format individual words or full list lines. */
.dcn-root .dcn-banner__body p:not([style*="font-size"]),
.dcn-root .dcn-banner__body ul:not([style*="font-size"]),
.dcn-root .dcn-banner__body ol:not([style*="font-size"]),
.dcn-root .dcn-banner__body li:not([style*="font-size"]) { font-size: inherit !important; line-height: 1.5 !important; }
.dcn-root .dcn-banner__body p[style*="font-size"],
.dcn-root .dcn-banner__body ul[style*="font-size"],
.dcn-root .dcn-banner__body ol[style*="font-size"],
.dcn-root .dcn-banner__body li[style*="font-size"] { line-height: 1.5 !important; }
.dcn-root .dcn-banner__body p,
.dcn-root .dcn-banner__body ul,
.dcn-root .dcn-banner__body ol { margin: 0 0 12px; }
.dcn-root .dcn-banner__body ul,
.dcn-root .dcn-banner__body ol { padding-left: 1.5rem; }
.dcn-root .dcn-banner__body ul { list-style-type: disc; }
.dcn-root .dcn-banner__body ol { list-style-type: decimal; }
.dcn-root .dcn-banner__body li { margin-bottom: 6px; }
.dcn-root .dcn-banner__body li strong { font-size: inherit; }
.dcn-banner__body h2, .dcn-banner__body h3 { color: inherit; font-size: 1.05rem; margin: 14px 0 8px; line-height: 1.4; }
.dcn-banner__body a { text-decoration: underline; }
.dcn-banner__dismiss { cursor: pointer; flex: none; border: none; background: transparent; padding: 0 6px; color: inherit; font: 26px/1 system-ui, sans-serif; border-radius: 3px; }
.dcn-banner__dismiss:hover { background: rgba(0,0,0,.09); }
@media (max-width: 600px) { .dcn-banner__inner { padding: 11px 12px; gap: 10px; } .dcn-banner__icon { width: 22px; height: 22px; } .dcn-banner__dismiss { padding: 0 3px; } }
@media (prefers-reduced-motion: reduce) { .dcn-root * { scroll-behavior: auto !important; } }
