/* Common outer shell only: journal v3 fields and controls keep their own CSS. */
:root, html[data-theme="light"] {
  --primary: #164e78;
  --secondary: #142e45;
  --accent: #ffffff;
  --header-bg: #142e45;
  --header-color: #e4edf5;
  --header-branding-color: #ffffff;
  --header-link-color: #ffffff;
  --link-fg: #164e78;
  --link-hover-color: #28668f;
  --breadcrumbs-bg: #e9f0f5;
  --breadcrumbs-fg: #42596d;
  --breadcrumbs-link-fg: #164e78;
  --button-bg: #164e78;
  --button-hover-bg: #103d5f;
  --default-button-bg: #164e78;
  --default-button-hover-bg: #103d5f;
  --font-family-primary: "Segoe UI", Arial, sans-serif;
}
html[data-theme="dark"] {
  --link-fg: #91c8ef;
  --link-hover-color: #c4e4fb;
  --breadcrumbs-bg: #1d3447;
  --breadcrumbs-fg: #dde8f0;
  --breadcrumbs-link-fg: #b9ddf7;
}
#header { box-sizing: border-box; flex-wrap: wrap; gap: 18px; padding: 20px 32px 0; border-bottom: 4px solid #427b9b; }
#site-name { margin: 0; font-weight: 750; font-size: 21px; letter-spacing: 1px; }
.noticode-tagline { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; letter-spacing: 0; color: #c4d4e2; }
#user-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; margin: 0; }
#header .noticode-workspace { flex: 1 0 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; box-sizing: border-box; padding: 16px 0; border-top: 1px solid #476074; }
#header a.noticode-console { display: inline-block; padding: 10px 16px; border: 1px solid #9bb3c6; border-radius: 6px; color: #fff; font-weight: 600; text-decoration: none; }
#header a.noticode-console:hover { background: #23445f; }
.noticode-context { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 14px; color: #fff; }
.noticode-context-label { flex: 0 0 100%; color: #c4d4e2; font-size: 12px; }
#header a:focus-visible, #header button:focus-visible { outline: 3px solid #f2bd74; outline-offset: 4px; }
div.breadcrumbs { padding: 12px 32px; }
body.login #header { padding-bottom: 20px; }
@media (max-width: 767px) {
  #header { padding: 18px 16px 0; align-items: flex-start; }
  #branding { width: auto; }
  #user-tools { justify-content: flex-start; text-align: left; }
  #header .noticode-workspace { align-items: flex-start; gap: 12px; }
  div.breadcrumbs { padding: 12px 16px; }
}
@media print { #header, .breadcrumbs { display: none !important; } }
