/* Shared branding must not replace Django's automatic dark-theme colors. */
:root,html[data-theme="light"],html[data-theme="dark"]{--primary:#25304b;--secondary:#111b30;--accent:#e8be68;--header-color:#f3f0e8;--header-branding-color:#e8be68;--header-link-color:#fff;--breadcrumbs-fg:#e0e6f0;--breadcrumbs-link-fg:#fff;--breadcrumbs-bg:#25304b;--button-bg:#304c79;--button-hover-bg:#253c61;--default-button-bg:#705b31;--default-button-hover-bg:#584622}
html[data-theme="light"]{--link-fg:#324c87;--link-hover-color:#20345f;--selected-row:#eef1f9}
@media (prefers-color-scheme: light){:root:not([data-theme="dark"]){--link-fg:#324c87;--link-hover-color:#20345f;--selected-row:#eef1f9}}
body{font-size:16px;line-height:1.6}
#header{padding:20px 32px}#site-name{font-weight:600;letter-spacing:1px}.nc-admin-sub{font-size:15px;margin-left:12px}.nc-site-link{padding:8px 12px;border:1px solid #68738d;border-radius:5px}.module h2,.module caption{padding:12px;font-size:15px}.dashboard #content{max-width:1200px}#content h1{font-weight:600}textarea{max-width:95%;font:16px/1.7 ui-monospace,monospace}.form-row{padding:16px 12px}.help{line-height:1.8}.submit-row{padding:16px}.errorlist{line-height:1.7}#nav-sidebar{padding-top:8px}
/* Keep forms, lists and permission selectors comfortably readable. */
body td,body th,body label,body input,body select,body textarea,body .button,body input[type="submit"],body input[type="button"],body .help,body p.help,body form p.help,body div.help,body .form-row p,body #changelist .actions,body #changelist .actions select,body .selector,body .selector p{font-size:15px}
body input[type="checkbox"]{width:18px;height:18px;vertical-align:middle}
body :focus-visible{outline:3px solid var(--link-fg);outline-offset:3px}
:root .nc-overview{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:24px}:root .nc-overview a{display:flex;flex-direction:column;gap:8px;border:1px solid var(--hairline-color,#d5dbe6);border-top:3px solid #e8be68;padding:20px;min-width:130px;border-radius:7px;background:var(--body-bg,#fff)}:root .nc-overview strong{font-size:32px;color:var(--body-fg,#263551)}:root .nc-overview span{font-size:14px}
.inline-group{max-width:100%;overflow-x:auto}.field-markdown_link code{white-space:normal;overflow-wrap:anywhere;word-break:break-word}.field-markdown_link{max-width:380px}
