/* Shared navigation and page geometry. Loaded after page-specific styles. */
:root {
  --site-header-height: 76px;
  --content-width: 1360px;
}
body { padding-top: var(--site-header-height); }
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 18;
  height: var(--site-header-height);
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 28px;
  background: #fbfcf9;
  border-bottom: 1px solid var(--line);
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--green);
  text-decoration: none;
  flex: 0 0 214px;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 24px;
}
.site-brand small { display: block; font: 10px/1.6 "Microsoft YaHei", sans-serif; color: var(--muted); letter-spacing: 1px; }
.site-mark { display: grid; place-items: center; width: 36px; height: 40px; border: 1px solid #79978b; font-size: 27px; }
.site-navigation { display: flex; align-self: stretch; align-items: stretch; gap: 8px; }
.site-navigation a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 3px solid transparent;
  color: #63736a;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
}
.site-navigation small { color: #8f9d93; font: 11px Georgia, serif; }
.site-navigation a:hover { background: #edf2eb; color: var(--green); }
.site-navigation a[aria-current="page"] { border-bottom-color: var(--green); color: var(--green); background: #edf2eb; font-weight: 600; }
.site-context { margin-left: auto; font-size: 11px; color: #76867c; white-space: nowrap; }
body .sidebar { top: var(--site-header-height); height: calc(100dvh - var(--site-header-height)); }
.sidebar .brand { font-family: "Microsoft YaHei", sans-serif; font-size: 17px; }
.sidebar .sidebar-intro { font-size: 17px; line-height: 1.8; padding: 20px 0; }
body .analytics-main, body .regions-main, body .workspace-main { max-width: var(--content-width); margin: 0 auto; padding: 0 36px; }
.workspace-heading { padding: 34px 0 18px; }
.workspace-heading h1 { margin: 8px 0 12px; }
.workspace-heading > p:last-child { color: var(--muted); font-size: 13px; line-height: 1.8; }
body .page-panel { width: 100%; height: auto; max-width: none; max-height: none; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 26px; margin: 20px 0 30px; }
.page-panel .dialog-header { margin-bottom: 20px; }
.page-panel .dialog-header h2 { font-family: "Microsoft YaHei", sans-serif; font-size: 20px; }
.page-panel .dialog-actions { position: static; margin-bottom: 0; padding-bottom: 0; }
.manage-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.manage-overview article { padding: 26px; background: #edf2eb; border: 1px solid #dce5db; border-radius: 10px; }
.manage-overview h2 { font-size: 25px; margin: 12px 0; }
.manage-overview p { line-height: 1.8; font-size: 13px; }
.page-sections { display: flex; gap: 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; margin: 0 0 30px; }
.page-sections a { text-decoration: none; color: var(--teal); font-size: 13px; }
#textbook-samples, #verified-policies, #method, #main { scroll-margin-top: calc(var(--site-header-height) + 20px); }
body .skip-link { z-index: 60; }
@media (max-width: 1180px) {
  .site-header { gap: 18px; padding: 0 20px; }
  .site-brand { flex-basis: 195px; }
  .site-navigation { gap: 0; }
  .site-navigation a { padding: 0 12px; }
  .site-context { display: none; }
}
@media (max-width: 800px) {
  :root { --site-header-height: 116px; }
  .site-header { display: grid; grid-template-columns: 1fr; grid-template-rows: 58px 58px; gap: 0; padding: 0 16px; }
  .site-brand { font-size: 21px; gap: 10px; }
  .site-brand > span:last-child { display: flex; align-items: baseline; gap: 12px; }
  .site-brand small { font-size: 10px; }
  .site-mark { width: 27px; height: 32px; font-size: 23px; }
  .site-navigation { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .site-navigation a { flex-direction: column; justify-content: center; gap: 4px; padding: 5px 2px; font-size: 11px; }
  .site-navigation small { font-size: 9px; }
  body .analytics-main, body .regions-main, body .workspace-main { padding: 0 16px; }
  body[data-page="search"] main { padding: 0 16px; }
  body .page-panel { padding: 16px; }
  .workspace-heading { padding-top: 26px; }
  .manage-overview { grid-template-columns: 1fr; gap: 12px; }
  .manage-overview article { padding: 20px; }
  .page-sections { gap: 18px; flex-wrap: wrap; }
  .page-sections a { font-size: 12px; }
}

.library-scope { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 12px 0 22px; font-size: 13px; }
.library-scope p { margin: 0; }

.site-filing { padding: 24px 16px; text-align: center; color: #667085; font-size: 13px; line-height: 1.7; }
.site-filing a { color: inherit; text-decoration: none; }
.site-filing a:hover { text-decoration: underline; }
