/* One navigation contract for the news reader and the opinion pages. */
:root { --side: 232px; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: var(--side);
  padding: 28px 16px 24px;
  background: #fbfcfe;
  border: 0;
  border-right: 1px solid #dfe5ed;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
.sidebar .brand {
  display: flex;
  flex: none;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 0 12px;
  color: #18283f;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.6px;
  text-decoration: none;
}
.sidebar .brand > span:last-child { min-width: 0; white-space: nowrap; }
.sidebar .brand small {
  display: block;
  margin: 5px 0 0;
  color: #627186;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 1.5px;
}
.sidebar .brand-mark {
  width: 43px;
  height: 43px;
  flex: none;
  border-radius: 13px;
  border: 1px solid #23445e;
}
.sidebar nav {
  position: relative;
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  min-height: 0;
  margin: 0;
  padding: 3px 2px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #cbd6e4 transparent;
}
.sidebar nav a {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  flex-direction: row;
  gap: 11px;
  min-height: 52px;
  margin: 0;
  padding: 8px 19px 8px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #526177;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s, border-color .18s, color .18s;
}
.sidebar nav a:hover { background: #f0f4fa; border-color: #e0e7f0; }
.sidebar nav a.active,
.sidebar nav a[aria-current="page"] {
  background: #eaf1fb;
  border-color: #d5e2f3;
  color: #24558f;
  font-weight: 650;
}
.sidebar nav a.active::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 7px;
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: #6390c9;
  transform: translateY(-50%);
}
.sidebar nav a:focus-visible { outline: 2px solid #407ac5; outline-offset: -2px; }
.sidebar .nav-icon { width: 34px; height: 34px; flex: none; border-radius: 10px; line-height: 1; }
.sidebar .nav-icon > .icon { width: 26px; height: 26px; }
.sidebar nav a.active .nav-icon { border-color: var(--icon-tone); box-shadow: 0 2px 5px #23457013, inset 0 1px 0 #fff; }
.sidebar .nav-divider { display: block; flex: none; height: 1px; margin: 8px 12px; background: #dfe5ed; }
.sidebar .nav-label, .sidebar .nav-dot { display: none; }
@media (max-width: 1279px) and (min-width: 761px) {
  :root { --side: 212px; }
  .sidebar { padding: 25px 12px 22px; gap: 24px; }
  .sidebar .brand { padding: 0 8px; font-size: 21px; }
}
@media (max-width: 900px) and (min-width: 761px) {
  :root { --side: 196px; }
  .sidebar { padding: 24px 10px 20px; }
  .sidebar .brand { font-size: 19px; gap: 10px; }
  .sidebar .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
  .sidebar nav a { font-size: 12px; gap: 8px; padding-left: 7px; padding-right: 15px; }
}
@media (max-width: 760px) {
  :root { --side: 0px; }
  .sidebar {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    padding: 18px 0 0;
    border-right: 0;
    border-bottom: 1px solid #dfe5ed;
    overflow: visible;
  }
  .sidebar .brand { gap: 10px; padding: 0 20px; font-size: 21px; }
  .sidebar .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
  .sidebar .brand small { font-size: 9px; letter-spacing: 1.3px; margin-top: 4px; }
  .sidebar nav {
    flex-direction: row;
    gap: 7px;
    margin-top: 15px;
    padding: 3px 20px 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-padding-inline: 20px;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .sidebar nav::-webkit-scrollbar { display: none; }
  .sidebar nav a { min-height: 47px; gap: 7px; padding: 7px 10px; font-size: 12px; border-radius: 11px; background: #f4f7fb; border-color: #e7edf5; }
  .sidebar nav a.active, .sidebar nav a[aria-current="page"] { background: #e7f0fc; border-color: #b8cfe9; }
  .sidebar nav a.active::after, .sidebar .nav-divider { display: none; }
  .sidebar .nav-icon { width: 29px; height: 29px; border-radius: 9px; }
  .sidebar .nav-icon > .icon { width: 23px; height: 23px; }
}
@media (max-width: 374px) {
  .sidebar .brand { padding-inline: 14px; }
  .sidebar nav { padding-inline: 14px; scroll-padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .sidebar nav a { transition: none; }
}
