/* Shared site navigation. This file follows legacy page styles in the export. */
.cb-header.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1288px, calc(100% - 48px));
  height: auto;
  min-height: 70px;
  margin-inline: auto;
  padding: 12px 0;
  gap: 24px;
  overflow: visible;
  border-bottom: 1px solid var(--line);
}
.cb-header .brand { flex: 0 0 auto; }
.content-site .cb-header.content-header nav.cb-primary-nav,
.cb-header.content-header nav.cb-primary-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  width: auto;
  min-width: 0;
  gap: 24px;
  padding: 0;
  font-size: 13px;
  white-space: normal;
  overflow: visible;
}
.cb-header.content-header nav.cb-primary-nav > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 40px;
  padding: 8px 0;
  color: var(--muted);
  white-space: nowrap;
  text-align: center;
}
.cb-header.content-header nav.cb-primary-nav > a.is-active { color: var(--accent); }
.cb-header.content-header nav.cb-primary-nav > a.is-active::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--accent);
  box-shadow: none;
}
.cb-header .cb-header-utilities {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.cb-header .cb-header-utilities .language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
}
.cb-header .language-switcher > span { display: inline; }
.cb-header .cb-header-utilities .language-switcher a,
.cb-header .cb-header-utilities .language-switcher button {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 2px;
}
.cb-header .cb-header-utilities .reading-size-control { display: inline-flex; gap: 4px; }
.cb-header .reading-size-control button { min-width: 28px; min-height: 32px; }
.cb-header a:focus-visible,
.cb-header button:focus-visible,
.cb-home-tools a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.cb-home-tools { margin-bottom: 24px; }
.cb-home-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cb-home-heading h2 { margin: 0; color: var(--text); font-size: 17px; line-height: 1.5; }
.cb-home-heading a,
.cb-home-topics a { color: var(--accent); font-size: 13px; line-height: 1.6; }
.cb-home-topics { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.cb-home-filters { align-items: center; flex-wrap: wrap; }
.cb-home-filters > span { font-size: 12px; color: var(--muted); }

@media (max-width: 980px) {
  .cb-header.content-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 16px; }
  .cb-header .brand { grid-column: 1; grid-row: 1; justify-self: start; min-width: 0; }
  .cb-header .cb-header-utilities { grid-column: 2; grid-row: 1; justify-self: end; }
  .content-site .cb-header.content-header nav.cb-primary-nav,
  .cb-header.content-header nav.cb-primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1.8fr) minmax(0, 1fr);
    width: 100%;
    gap: 8px;
    justify-content: stretch;
    overflow: visible;
  }
  .cb-header.content-header nav.cb-primary-nav > a { min-width: 0; padding: 6px 3px; white-space: normal; line-height: 1.4; }
}
@media (max-width: 650px) {
  .cb-header.content-header { width: calc(100% - 28px); gap: 8px; padding: 12px 0 8px; min-height: 0; }
  .cb-header .brand-lockup { gap: 7px; }
  .cb-header .brand-icon { width: 30px; height: 30px; }
  .cb-header .brand-wordmark { font-size: 18px; }
  .cb-header .cb-header-utilities { gap: 8px; }
  .cb-header .cb-header-utilities .language-switcher { gap: 5px; font-size: 11px; }
  .content-site .cb-header.content-header nav.cb-primary-nav,
  .cb-header.content-header nav.cb-primary-nav { gap: 4px; font-size: 12px; }
  .cb-home-heading { flex-wrap: wrap; }
}
@media (max-width: 350px) {
  .cb-header .brand-icon { width: 26px; height: 26px; }
  .cb-header .brand-wordmark { font-size: 16px; }
  .cb-header .brand-lockup { gap: 5px; }
  .cb-header .cb-header-utilities { gap: 5px; }
  .cb-header .cb-header-utilities .language-switcher { gap: 3px; }
  .cb-header .reading-size-control button { min-width: 24px; }
}
