@charset "UTF-8";

/* Portal-only additions: the existing casework and Word canvas keep their styles. */
.nr-portal {
  --portal-tabs-height: 104px;
  --portal-ink: #153e66;
  --portal-blue: #14548d;
  --portal-line: #cfdae7;
  min-height: 100vh;
  background: #f0f3f8;
  color: #24364b;
}
.nr-portal .portal-header {
  border-top: 5px solid #103f72;
  background: #fff;
}
.nr-portal .portal-header-inner {
  max-width: 1520px;
  margin-inline: auto;
  padding: 24px 28px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nr-portal .portal-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--portal-ink);
  min-width: 0;
  text-decoration: none;
}
.nr-portal .portal-brand:hover { text-decoration: none; }
.nr-portal .portal-emblem {
  flex: 0 0 68px;
  width: 68px;
  height: 75px;
  display: grid;
  place-items: center;
  background: #103f72;
  border: 1px solid #234d78;
  border-radius: 4px;
  color: #fff;
  font-family: "SimSun", serif;
  font-size: 42px;
  font-weight: 700;
  box-shadow: inset 0 0 0 5px #ffffff0d;
}
.nr-portal .portal-brand small {
  display: block;
  color: #677c93;
  font-size: 15px;
  letter-spacing: 1px;
  line-height: 1.6;
}
.nr-portal .portal-brand h1 {
  margin: 3px 0 4px;
  color: var(--portal-ink);
  font-size: 33px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.45;
}
.nr-portal .portal-brand-description {
  display: block;
  color: #657990;
  font-size: 16px;
  line-height: 1.75;
}
.nr-portal .portal-header-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  color: #728296;
  font-size: 15px;
  white-space: nowrap;
}
.nr-portal .portal-region {
  color: #244f77;
  border: 1px solid #c8d8e9;
  border-radius: 3px;
  background: #f3f7fc;
  font-size: 16px;
  padding: 4px 13px;
}
.nr-portal .portal-nav {
  position: sticky;
  top: 0;
  z-index: 75;
  background: #103f72;
  border-bottom: 1px solid #cedbea;
  box-shadow: 0 5px 16px #183b6217;
}
.nr-portal .portal-tabs {
  max-width: 1520px;
  padding-inline: 28px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.nr-portal .portal-tab {
  min-width: 0;
  min-height: 102px;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 0;
  border-left: 1px solid #ffffff18;
  border-bottom: 4px solid transparent;
  border-radius: 0;
  background: transparent;
  padding: 18px 25px 16px;
  text-align: left;
  color: #ecf4ff;
  transition: background .15s;
}
.nr-portal .portal-tab:last-child { border-right: 1px solid #ffffff18; }
.nr-portal .portal-tab:hover { background: #1a5287; }
.nr-portal .portal-tab[aria-selected="true"] {
  color: #fff;
  background: #1d5d98;
  border-bottom-color: #c9dff6;
}
.nr-portal .portal-tab:focus-visible, .nr-portal .portal-brand:focus-visible {
  outline: 3px solid #e8c777;
  outline-offset: -5px;
}
.nr-portal .portal-tab-symbol {
  width: 44px;
  height: 46px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  background: #ffffff0e;
  border: 1px solid #ffffff20;
  border-radius: 4px;
  color: #d4e8ff;
}
.nr-portal .portal-tab-symbol svg { width: 25px; height: 25px; }
.nr-portal .portal-tab-copy { min-width: 0; }
.nr-portal .portal-tab-heading { display: flex; align-items: baseline; gap: 10px; }
.nr-portal .portal-tab-number { color: #9fc1e3; font-size: 14px; font-variant-numeric: tabular-nums; }
.nr-portal .portal-tab strong { font-size: 22px; line-height: 1.55; font-weight: 650; }
.nr-portal .portal-tab small { display: block; margin-top: 4px; font-size: 14px; color: #bfd3e9; line-height: 1.6; }
.nr-portal .portal-tab[aria-selected="true"] small { color: #d7e7f7; }
.nr-portal .portal-tab-indicator {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-left: auto;
  background: transparent;
}
.nr-portal .portal-tab[aria-selected="true"] .portal-tab-indicator { background: #c6e2ff; }
.nr-portal .portal-view { min-width: 0; }
.nr-portal .portal-view[hidden] { display: none !important; }

/* One heading treatment for the three business workspaces. */
.nr-portal .workbench-header {
  min-height: 108px;
  padding: 18px max(28px, calc((100% - 1524px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: #f9fbfe;
  border-bottom: 1px solid #d7e1ec;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}
.nr-portal .workbench-brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.nr-portal .workbench-brandmark {
  width: 42px;
  height: 46px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  background: #103f72;
  color: #fff;
  font: 700 28px/1 "SimSun", serif;
}
.nr-portal .workbench-header .workbench-title {
  margin: 0;
  color: #103f72;
  font-size: 25px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0;
}
.nr-portal .workbench-tools { display: flex; align-items: center; gap: 16px; min-width: 0; }
.nr-portal .workbench-tools .gov-utility { display: flex; align-items: center; gap: 14px; }
.nr-portal .workbench-tools .kb-library-stat { padding-left: 20px; }
.nr-portal .workbench-tools .kb-library-stat strong { font-size: 30px; line-height: 1.4; }
.nr-portal .workbench-tools .sp-demo-tools { display: flex; align-items: flex-end; flex-wrap: wrap; min-width: 0; gap: 10px; margin: 0; }
.nr-portal .workbench-tools .sp-demo-tools label { font-size: 14px; line-height: 1.4; }
.nr-portal .workbench-tools .sp-demo-tools select { width: 260px; font-size: 16px; }
.nr-portal .knowledge-workspace, .nr-portal .sp-workspace { max-width: none; padding: 0 0 48px; }
.nr-portal .kb-module-layout, .nr-portal .sp-workbench-layout { max-width: 1580px; margin: 0 auto; padding: 26px 28px; }
@media (max-width: 900px) {
  .nr-portal .workbench-header { flex-wrap: wrap; padding: 18px 20px; gap: 16px; }
  .nr-portal .workbench-tools { margin-left: auto; flex-wrap: wrap; }
  .nr-portal .kb-module-layout, .nr-portal .sp-workbench-layout { padding: 18px 16px; }
}
@media (max-width: 620px) {
  .nr-portal .workbench-header { padding: 16px; min-height: 90px; }
  .nr-portal .workbench-header .workbench-title { font-size: 22px; }
  .nr-portal .workbench-brand { gap: 12px; }
  .nr-portal .workbench-brandmark { width: 36px; height: 40px; flex-basis: 36px; font-size: 25px; }
  .nr-portal .workbench-tools { width: 100%; margin: 0; }
  .nr-portal .workbench-tools .gov-utility { flex-wrap: wrap; gap: 10px; }
  .nr-portal .workbench-tools .sp-demo-tools { width: 100%; }
  .nr-portal .workbench-tools .sp-demo-tools label { flex: 1 1 200px; }
  .nr-portal .workbench-tools .sp-demo-tools select { width: 100%; }
  .nr-portal .workbench-tools .kb-library-stat { border-left: 0; padding-left: 0; display: flex; text-align: left; gap: 10px; flex-wrap: wrap; }
}
@media print { .nr-portal .workbench-header { display: none !important; } }

/* The original full system title stays visible as this area's own header. */
.nr-portal .portal-view--assembly .gov-header {
  border-top: 0;
  padding-top: 19px;
  padding-bottom: 19px;
  background: #f9fbfe;
}
.nr-portal .portal-view--assembly .gov-brand .brandmark { width: 42px; height: 46px; flex-basis: 42px; font-size: 28px; }
.nr-portal .portal-view--assembly .gov-brand strong { font-size: 25px; letter-spacing: 0; }
.nr-portal .portal-view--assembly .gov-brand small { font-size: 15px; }
.nr-portal .portal-view--assembly .gov-nav { top: var(--portal-tabs-height); }
.nr-portal .portal-view--assembly .gov-section { scroll-margin-top: calc(var(--portal-tabs-height) + 86px); }

/* Shared, opt-in framing for the knowledge and spatial boards. */
.nr-portal .portal-board {
  width: 100%;
  max-width: 1520px;
  margin-inline: auto;
  padding: 28px 28px 42px;
  min-width: 0;
  font-size: 18px;
}
.nr-portal .portal-board-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 23px;
}
.nr-portal .portal-board-head h1, .nr-portal .portal-board-head h2 {
  margin: 0 0 7px;
  color: var(--portal-ink);
  font-size: 29px;
  line-height: 1.55;
}
.nr-portal .portal-board-head p { margin: 0; max-width: 1000px; color: #62758b; font-size: 17px; line-height: 1.9; }

@media (max-width: 1180px) {
  .nr-portal .portal-tab { padding-inline: 18px; gap: 11px; }
  .nr-portal .portal-tab-symbol { flex-basis: 38px; width: 38px; height: 42px; }
  .nr-portal .portal-tab strong { font-size: 20px; }
  .nr-portal .portal-tab-number, .nr-portal .portal-tab-indicator { display: none; }
  .nr-portal .portal-tab small { font-size: 13px; }
}
@media (max-width: 800px) {
  .nr-portal .portal-header-inner { padding: 20px; }
  .nr-portal .portal-header-meta { display: none; }
  .nr-portal .portal-brand { gap: 14px; }
  .nr-portal .portal-brand h1 { font-size: 28px; }
  .nr-portal .portal-emblem { width: 57px; height: 64px; flex-basis: 57px; font-size: 35px; }
  .nr-portal .portal-tabs { padding-inline: 0; }
  .nr-portal .portal-tab { min-height: 84px; padding: 13px 12px 11px; gap: 8px; }
  .nr-portal .portal-tab-symbol { display: none; }
  .nr-portal .portal-tab strong { font-size: 18px; }
  .nr-portal .portal-tab small { font-size: 12px; }
  .nr-portal .portal-view--assembly .gov-brand strong { font-size: 22px; }
  .nr-portal .portal-board { padding: 23px 20px 32px; }
  .nr-portal .portal-board-head { flex-direction: column; gap: 14px; }
}
@media (max-width: 520px) {
  .nr-portal .portal-header-inner { padding: 17px 15px 19px; }
  .nr-portal .portal-brand { gap: 12px; }
  .nr-portal .portal-brand small { font-size: 12px; letter-spacing: .3px; }
  .nr-portal .portal-brand h1 { margin-block: 4px; font-size: 24px; letter-spacing: 0; }
  .nr-portal .portal-brand-description { font-size: 12px; }
  .nr-portal .portal-emblem { width: 46px; height: 55px; flex-basis: 46px; font-size: 31px; }
  .nr-portal .portal-tab { min-height: 76px; justify-content: center; text-align: center; padding: 10px 6px 9px; }
  .nr-portal .portal-tab-heading { display: block; }
  .nr-portal .portal-tab strong { font-size: 16px; line-height: 1.5; }
  .nr-portal .portal-tab small { display: none; }
  .nr-portal .portal-view--assembly .gov-header { padding-block: 17px; }
  .nr-portal .portal-view--assembly .gov-brand .brandmark { display: none; }
  .nr-portal .portal-view--assembly .gov-brand strong { font-size: 20px; }
  .nr-portal .portal-board { padding: 21px 14px 30px; }
  .nr-portal .portal-board-head h1, .nr-portal .portal-board-head h2 { font-size: 25px; }
}
@media print {
  .nr-portal { background: #fff; }
  .nr-portal > .portal-header, .nr-portal > .portal-nav { display: none !important; }
  .nr-portal .portal-view--assembly .gov-nav { display: none !important; }
  .nr-portal .portal-view[hidden] { display: none !important; }
}

/* Long module menus must remain reachable under the fixed portal tabs. */
@media (min-width: 801px) {
  .nr-portal .sp-side-nav {
    max-height: calc(100dvh - var(--portal-tabs-height, 104px) - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }
}
