/* Platform chrome: UnderRevieu logos, the portal navigation and document headers. Journal additions live in journals.css. */
:root { --brand-ink:var(--ui-ink); --brand-header:rgb(255 255 255 / 86%); }
.underrev-brand { display:inline-flex; align-items:center; gap:10px; flex:0 0 auto; color:var(--brand-ink); text-decoration:none; }
.underrev-brand:hover { text-decoration:none; }
.underrev-logo { display:block; width:170px; max-width:100%; height:auto; object-fit:contain; }
.document-brand-header { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:22px max(28px,calc((100vw - 1280px)/2)); }
.document-brand-header .portal-brand-group { margin-right:0; }
.document-brand-header+.policy-page-container,.document-brand-header+.journal-masthead+.policy-page-container { padding-top:20px; }
.document-brand-header+.journal-masthead { margin-top:0; }
.document-brand-back { color:var(--ui-muted); font-size:.8125rem; font-weight:550; }
.portal-nav { position:sticky; top:0; z-index:100; display:flex; align-items:center; gap:28px; min-height:72px; padding:12px max(28px,calc((100vw - 1280px)/2)); background:var(--brand-header); backdrop-filter:blur(22px) saturate(160%); -webkit-backdrop-filter:blur(22px) saturate(160%); border-bottom:1px solid rgb(29 36 51 / 6%); }
.portal-brand { margin-right:auto; }
.portal-brand .underrev-logo { width:168px; }
.portal-menu { display:flex; align-items:center; gap:4px; }
.portal-menu a,.portal-logout-button { display:inline-flex; align-items:center; min-height:44px; padding:10px 14px; border:0; border-radius:10px; color:#555f72; background:transparent; font-size:.875rem; font-weight:550; text-decoration:none; white-space:nowrap; }
.portal-menu a:hover,.portal-logout-button:hover { color:var(--ui-ink); background:#eef1f5; text-decoration:none; }
.portal-menu a[aria-current="page"] { color:var(--ui-accent); background:var(--ui-accent-soft); font-weight:650; }
.portal-logout { margin:0 0 0 8px; padding:0 0 0 12px; border-left:1px solid var(--ui-line); }
.portal-logout-button { color:var(--ui-muted); }
.portal-profile-control { display:flex; align-items:center; gap:10px; position:relative; max-width:215px; padding:4px 6px; color:var(--ui-ink); border-radius:11px; text-decoration:none; }
.portal-profile-control:hover { background:#edf1f6; text-decoration:none; }
.portal-avatar { display:grid; place-items:center; flex:0 0 36px; width:36px; height:36px; border-radius:50%; background:#e7eef9; color:#335d9c; font-weight:650; font-size:.875rem; }
.portal-profile-label { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.8125rem; font-weight:600; }
.portal-profile-label small { display:block; color:var(--ui-muted); font-size:.6875rem; font-weight:400; line-height:1.4; }
.portal-notification-badge { position:absolute; top:0; left:30px; display:grid; place-items:center; min-width:18px; height:18px; padding:0 4px; border:2px solid #fff; border-radius:9px; background:#e24c64; color:#fff; font-size:.625rem; font-weight:700; }
.portal-menu-toggle { display:none; flex-direction:column; align-items:center; justify-content:center; gap:4px; width:44px; height:44px; padding:8px; border:1px solid var(--ui-line); background:#fff; border-radius:10px; }
.portal-menu-toggle span { display:block; width:17px; height:1.5px; background:var(--ui-ink); border-radius:2px; transition:transform 160ms ease,opacity 160ms ease; }
.portal-menu-toggle[aria-expanded="true"] span:first-child { transform:translateY(5.5px) rotate(45deg); }
.portal-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity:0; }
.portal-menu-toggle[aria-expanded="true"] span:last-child { transform:translateY(-5.5px) rotate(-45deg); }
@media(max-width:1100px) { .portal-nav { gap:14px; padding-inline:24px; } .portal-menu-toggle { display:flex; margin-left:auto; } .portal-profile-label { display:none; } .portal-menu { display:none; position:absolute; top:calc(100% + 8px); right:24px; width:min(300px,calc(100vw - 32px)); padding:8px; border:1px solid var(--ui-line); border-radius:16px; background:rgb(255 255 255 / 96%); box-shadow:0 16px 48px rgb(29 36 51 / 14%); backdrop-filter:blur(24px); transform-origin:top right; } .portal-menu.is-open { display:flex; flex-direction:column; align-items:stretch; } .portal-menu a,.portal-menu .portal-logout-button { width:100%; min-height:46px; } .portal-logout { margin:4px 0 0; padding:4px 0 0; border-left:0; border-top:1px solid var(--ui-line); } }
@media(max-width:600px) { .portal-nav { gap:8px; min-height:64px; padding:10px 16px; } .portal-brand .underrev-logo { width:140px; } .portal-menu { right:16px; } .portal-profile-control { padding:2px; } .portal-avatar { width:34px; height:34px; flex-basis:34px; } .document-brand-header { padding:18px 16px; gap:12px; } }
@media(max-width:400px) { .portal-nav--journal .portal-brand .underrev-logo { width:118px; } }
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more) { .portal-nav,.portal-menu { background:#fff; backdrop-filter:none; -webkit-backdrop-filter:none; } }
/* Dark colour scheme (prefers-color-scheme): tokens in design-system.css. */
@media(prefers-color-scheme:dark) {
  :where(html:not([data-color-scheme="light"])) body { --brand-ink:var(--ui-ink); --brand-header:color-mix(in srgb,var(--ui-surface) 86%,transparent); }
  :where(html:not([data-color-scheme="light"])) .portal-nav { border-bottom-color:var(--ui-line); }
  :where(html:not([data-color-scheme="light"])) .portal-menu a { color:#c3ccd9; }
  :where(html:not([data-color-scheme="light"])) .portal-menu a:hover,:where(html:not([data-color-scheme="light"])) .portal-logout-button:hover { background:var(--ui-hover); }
  :where(html:not([data-color-scheme="light"])) .portal-profile-control:hover { background:var(--ui-hover); }
  :where(html:not([data-color-scheme="light"])) .portal-avatar { background:#1f3247; color:#a9d2ff; }
  :where(html:not([data-color-scheme="light"])) .portal-notification-badge { border-color:var(--ui-surface); }
  :where(html:not([data-color-scheme="light"])) .portal-menu-toggle { background:var(--ui-surface); }
  @media(max-width:1100px) { :where(html:not([data-color-scheme="light"])) .portal-menu { background:color-mix(in srgb,var(--ui-surface) 96%,transparent); box-shadow:0 16px 48px rgb(0 0 0 / 45%); } }
  @media(prefers-reduced-transparency:reduce),(prefers-contrast:more) { :where(html:not([data-color-scheme="light"])) .portal-nav,:where(html:not([data-color-scheme="light"])) .portal-menu { background:var(--ui-surface); } }
}
/* Generated by dontuploadcl/dark-toggle-20261102/tools/scheme_blocks.py from the dark block above: the same rules when Dark is chosen in the profile (html[data-color-scheme="dark"]). Do not edit by hand. */
  :where(html[data-color-scheme="dark"]) body { --brand-ink:var(--ui-ink); --brand-header:color-mix(in srgb,var(--ui-surface) 86%,transparent); }
  :where(html[data-color-scheme="dark"]) .portal-nav { border-bottom-color:var(--ui-line); }
  :where(html[data-color-scheme="dark"]) .portal-menu a { color:#c3ccd9; }
  :where(html[data-color-scheme="dark"]) .portal-menu a:hover,:where(html[data-color-scheme="dark"]) .portal-logout-button:hover { background:var(--ui-hover); }
  :where(html[data-color-scheme="dark"]) .portal-profile-control:hover { background:var(--ui-hover); }
  :where(html[data-color-scheme="dark"]) .portal-avatar { background:#1f3247; color:#a9d2ff; }
  :where(html[data-color-scheme="dark"]) .portal-notification-badge { border-color:var(--ui-surface); }
  :where(html[data-color-scheme="dark"]) .portal-menu-toggle { background:var(--ui-surface); }
  @media(max-width:1100px) { :where(html[data-color-scheme="dark"]) .portal-menu { background:color-mix(in srgb,var(--ui-surface) 96%,transparent); box-shadow:0 16px 48px rgb(0 0 0 / 45%); } }
  @media(prefers-reduced-transparency:reduce),(prefers-contrast:more) { :where(html[data-color-scheme="dark"]) .portal-nav,:where(html[data-color-scheme="dark"]) .portal-menu { background:var(--ui-surface); } }
/* End of the generated copy. */
