/* 门户条 —— fin-tech.fun 的统一顶栏。规范见 ~/teaching-portal/PORTAL-BAR.md。

   **这是一份副本。** 权威版本是门户仓库的 tools/html/_portal/portal-bar.css，
   规范第五节允许项目自带副本，本课件树必须用副本而不是 /tools/_portal/…：

   · 本课件树里的所有路径都必须是相对路径。线上挂在
     /courseware/financial-institutions-markets-grad/ 下，而 sync-portal.py 会
     拒绝同步任何站点根路径引用 —— 那类引用挂上去是安静地 404（nginx 的
     location / 回退返回站点首页，状态码还是 200）。
   · 审校在本地 http://127.0.0.1:8899/ 上做，那里没有 /tools/。引绝对路径的话，
     每一次本地审校看到的都是一条没有样式的裸导航。
   · 教室断网也要能上课：这门课所有依赖都在本地，没有 CDN。

   代价是改配色要改三处（门户的 portal.css 令牌块、门户的 portal-bar.css、
   这一份）。sync-portal.py 会在同步前比对本文件与门户那一份的规则内容，
   不一致就告警，所以漂移会被发现，而不是靠记性。

   色值写死是规范的要求，不是漏掉的令牌化：本文件服务的页面不加载 MkDocs 的
   portal.css，var(--pt-*) 令牌层在这里根本不存在。返回链接必须是 #E8674E 而
   不是 #C4402B —— 后者在 #0A131C 上只有 3.67:1，不达 WCAG AA，前者 5.77:1。 */
.pt-portalbar {
  display: flex;
  align-items: center;
  gap: .6rem;
  height: 32px;
  padding: 0 .9rem;
  background: #0A131C;
  font-family: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  font-size: 11px;
  line-height: 1;
}
.pt-portalbar * { box-sizing: border-box; }
.pt-portalbar__seal { display: block; width: 18px; height: 18px; flex: none; }
.pt-portalbar__back {
  color: #E8674E;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  white-space: nowrap;
}
.pt-portalbar__back:hover { color: #F2EDE4; }
.pt-portalbar__sep { color: #3A5570; }
.pt-portalbar__here {
  color: #A6B4C2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pt-portalbar__dom { margin-left: auto; color: #5f7285; flex: none; }

@media (max-width: 520px) {
  .pt-portalbar { gap: .45rem; padding: 0 .6rem; font-size: 10px; }
  .pt-portalbar__dom { display: none; }
}
