@import 'https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/base.min.css';
@import 'https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/components.min.css';
@import 'https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/utilities.min.css';

:root {
  color-scheme: light;
  --gct-ink: #17242e;
  --gct-muted: #5b6a75;
  --gct-blue: #2b6f9f;
  --gct-blue-hover: #235f89;
  --gct-blue-soft: #eaf4fa;
  --gct-border: #d9e2e8;
  --gct-border-strong: #c5d2db;
  --gct-canvas: #f4f7f9;
  --gct-paper: #ffffff;
  --gct-solar: #e3aa13;
  --gct-wind: #2d78bc;
  --gct-coal: #202522;
  --gct-radius: 5px;
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  max-width: 100%;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--gct-ink);
  background: var(--gct-canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

header {
  position: relative;
  z-index: 1000;
  border-bottom: 1px solid var(--gct-border);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none !important;
}

html.gct-auth-locked {
  overflow: hidden;
}

html.gct-auth-locked body > *:not(.gct-access-layer) {
  visibility: hidden;
}

.gct-access-layer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  grid-template-rows: minmax(min-content, 1fr) auto;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
  background: #eef5f9;
  opacity: 1;
  transition: opacity 160ms ease;
}

.gct-access-layer--leaving {
  opacity: 0;
}

.gct-access-card {
  width: min(100%, 460px);
  padding: 38px 40px 40px;
  border: 1px solid var(--gct-border-strong);
  border-radius: 7px;
  background: var(--gct-paper);
  box-shadow: 0 18px 50px rgba(31, 69, 94, 0.11);
}

.gct-access-eyebrow {
  margin: 0 0 8px;
  color: var(--gct-blue);
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.gct-access-card h1 {
  margin: 0;
  color: var(--gct-ink);
  font-size: clamp(1.8rem, 5vw, 2.35rem);
  font-weight: 740;
  line-height: 1.12;
}

.gct-access-copy {
  margin: 12px 0 28px;
  color: var(--gct-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.gct-access-form label {
  display: block;
  margin-bottom: 7px;
  color: #354652;
  font-size: 0.78rem;
  font-weight: 700;
}

.gct-access-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}

.gct-access-entry input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--gct-border-strong);
  border-radius: 5px;
  color: var(--gct-ink);
  background: #fff;
  font: inherit;
}

.gct-access-entry input:focus {
  border-color: var(--gct-blue);
  outline: 3px solid rgba(43, 111, 159, 0.16);
}

.gct-access-entry button {
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--gct-blue);
  border-radius: 5px;
  color: #fff;
  background: var(--gct-blue);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.gct-access-entry button:hover {
  background: var(--gct-blue-hover);
}

.gct-access-error {
  min-height: 20px;
  margin: 8px 0 0;
  color: #a43b32;
  font-size: 0.78rem;
}

.site-nav-shell {
  width: min(2200px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 12px 0 13px;
}

.site-brand-lockup {
  display: inline-grid;
  align-content: center;
  justify-items: start;
  min-width: min(570px, 54vw);
  color: inherit;
  text-decoration: none;
}

.site-brand-lockup__eyebrow,
.site-brand-lockup__title,
.site-brand-lockup__subtitle {
  display: block;
}

.site-brand-lockup__eyebrow {
  margin-bottom: 2px;
  color: var(--gct-blue);
  font-size: 0.61rem;
  font-weight: 780;
  letter-spacing: 0.075em;
  line-height: 1.2;
  text-transform: uppercase;
}

.site-brand-lockup__title {
  margin: 0;
  color: var(--gct-ink);
  font-size: 1.38rem;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.05;
}

.site-brand-lockup__subtitle {
  margin-top: 4px;
  color: var(--gct-muted);
  font-size: 0.76rem;
  line-height: 1.25;
}

header nav ul {
  align-items: center;
  gap: 0.2rem;
}

header nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px !important;
  border-radius: 4px !important;
  color: #47534d !important;
  background: transparent !important;
  transition: color 140ms ease, background-color 140ms ease;
}

header nav a:hover {
  color: var(--gct-ink) !important;
  background: #f0f3f1 !important;
}

header nav a.gct-nav-active {
  color: var(--gct-blue) !important;
  background: var(--gct-blue-soft) !important;
}

header nav a:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(43, 111, 159, 0.26);
  outline-offset: 2px;
}

.site-main {
  width: min(2200px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 22px 0 32px;
}

.site-main--workspace {
  padding-top: 14px;
}

.site-main.site-main--workspace {
  padding-bottom: 8px;
}

.site-footer {
  flex: none;
  width: min(2200px, calc(100% - 40px));
  margin: auto auto 0;
  padding: 16px 0 20px;
  color: var(--gct-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-main--workspace + .site-footer {
  margin-top: 0;
  padding-top: 8px;
  padding-left: var(--dashboard-content-start, 0px);
  padding-right: var(--dashboard-content-end, 0px);
}

.gct-access-layer > .site-footer {
  width: min(100%, 460px);
  margin: 0;
  padding-bottom: 0;
}

.site-main--document {
  width: min(1680px, calc(100vw - 48px));
}

.about-page {
  width: min(2200px, calc(100vw - 40px));
}

.page-intro {
  padding: 3px 0 18px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--gct-blue);
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

#dashboard-root,
#root,
.MuiContainer-root,
.MuiGrid-item {
  min-width: 0;
  max-width: 100%;
}

.MuiTypography-root {
  overflow-wrap: break-word;
}

.site-main--document > h1 {
  margin: 6px 0 5px !important;
  color: var(--gct-ink) !important;
  font-size: clamp(2rem, 3vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.site-main--document > h1 + p {
  max-width: 1050px !important;
  margin-bottom: 22px !important;
  color: var(--gct-muted) !important;
  font-size: 1rem;
  line-height: 1.6;
}

main > section.bg-white,
.about-page > div.bg-white {
  border: 1px solid var(--gct-border);
  border-radius: var(--gct-radius) !important;
  background: var(--gct-paper);
  box-shadow: none !important;
}

main section h2 {
  color: var(--gct-ink) !important;
  letter-spacing: 0;
}

.methodology-page { display: block; }

.document-hero {
  display: block;
  padding: 23px 0 25px;
  border-bottom: 1px solid var(--gct-border);
}

.document-hero__lead {
  min-width: 0;
  padding-left: clamp(15px, 1.35vw, 24px);
  border-left: 2px solid var(--gct-blue);
}

.document-hero h1 {
  margin: 2px 0 8px !important;
  color: var(--gct-ink) !important;
  font-size: clamp(2.1rem, 3vw, 3.25rem);
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0;
}

.document-hero__lead > p:last-child {
  max-width: 1220px;
  margin: 0;
  color: var(--gct-muted);
  font-size: 0.96rem;
  line-height: 1.5;
}

.document-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
  border: 1px solid var(--gct-border);
  border-radius: var(--gct-radius);
  background: var(--gct-paper);
}

.document-summary__item {
  min-width: 0;
  padding: 13px 16px 14px;
}

.document-summary__item + .document-summary__item {
  border-left: 1px solid var(--gct-border);
}

.document-summary__label {
  display: block;
  margin-bottom: 3px;
  color: var(--gct-muted);
  font-size: 0.66rem;
  font-weight: 780;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.document-summary strong {
  display: block;
  color: var(--gct-ink);
  font-size: 0.88rem;
  font-weight: 680;
  line-height: 1.35;
}

.methodology-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  gap: clamp(16px, 1.5vw, 24px);
  padding-top: 24px;
}

.methodology-index {
  position: sticky;
  top: 22px;
  padding: 17px 18px 18px;
  border: 1px solid var(--gct-border);
  border-left: 3px solid var(--gct-blue);
  border-radius: var(--gct-radius);
  background: var(--gct-paper);
}

.methodology-index__label {
  margin: 0 0 11px;
  color: var(--gct-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.methodology-index ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.methodology-index a {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 6px;
  padding: 7px 0;
  color: #435149;
  font-size: 0.79rem;
  line-height: 1.35;
  text-decoration: none;
}

.methodology-index a span {
  color: var(--gct-blue);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.methodology-index a:hover { color: var(--gct-blue); }

.methodology-scope {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--gct-border);
}

.methodology-scope strong {
  color: var(--gct-ink);
  font-size: 0.78rem;
}

.methodology-scope p {
  margin: 6px 0 0;
  color: var(--gct-muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

.methodology-article {
  min-width: 0;
  padding: 0 20px;
  border: 1px solid var(--gct-border);
  border-radius: var(--gct-radius);
  background: var(--gct-paper);
}

.method-section {
  scroll-margin-top: 24px;
  padding: 25px 0 28px;
  border-bottom: 1px solid var(--gct-border);
}

.method-section:last-child { border-bottom: 0; }

.method-section h2 {
  margin: 0 0 14px !important;
  font-size: clamp(1.25rem, 1.7vw, 1.72rem);
  line-height: 1.25;
}

.method-section p,
.method-section li {
  max-width: 1120px;
  color: #46534d !important;
  line-height: 1.68;
}

.method-section ul { max-width: 1120px; }

.method-equation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 6px;
  max-width: 100%;
  margin: 18px 0;
  padding: 8px 0;
  color: var(--gct-ink);
  font-size: 1rem;
  line-height: 1.5;
}

.method-equation__term {
  min-width: 0;
  max-width: 100%;
  padding: 4px 0.25em 4px 0;
  overflow-x: auto;
}

.method-equation mjx-container {
  margin: 0 !important;
}

.method-equation__note {
  width: 100%;
  color: var(--gct-muted);
  font-size: 0.9rem;
  text-align: center;
}

.sources-page {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.sources-page > .document-hero,
.sources-page > .document-summary,
.sources-page > .source-panel--primary {
  grid-column: 1 / -1;
}

.sources-page .document-summary { margin-top: 0; }

.source-panel {
  min-width: 0;
  padding: 21px 22px 23px;
  border: 1px solid var(--gct-border);
  border-radius: var(--gct-radius);
  background: var(--gct-paper);
}

.section-heading {
  margin-bottom: 15px;
}

.section-heading .eyebrow {
  margin-bottom: 4px;
}

.section-heading h2 {
  margin: 0 !important;
  color: var(--gct-ink);
  font-size: 1.12rem;
  font-weight: 720;
  line-height: 1.25;
}

.sources-page .overflow-x-auto {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid var(--gct-border);
  border-radius: 4px;
}

.sources-page table {
  table-layout: auto;
  background: #fff;
}

.sources-page thead {
  background: #f6f8f7 !important;
}

.sources-page th {
  color: #35423c;
  font-size: 0.74rem;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sources-page th,
.sources-page td {
  padding: 12px 14px !important;
  vertical-align: top;
  line-height: 1.48;
}

.sources-page .source-panel:not(.source-panel--primary) li,
.sources-page .source-panel:not(.source-panel--primary) p {
  color: #46534d !important;
  font-size: 0.9rem;
  line-height: 1.62;
}

table tbody tr:hover {
  background: #f5f9fc;
}

.team-section {
  padding-top: 30px;
}

.section-heading--team {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 0;
}

.section-heading--team > p {
  max-width: 540px;
  margin: 0;
  color: var(--gct-muted);
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: right;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2vw, 34px);
  margin: 44px auto 0;
}

.team-card {
  min-width: 0;
}

.team-card > img {
  display: block;
  width: clamp(150px, 68%, 190px);
  aspect-ratio: 1;
  margin: 0 auto;
  object-fit: cover;
  object-position: center 24%;
  border-radius: 50%;
  background: #f1f4f2;
}

.team-card > img.team-card__photo--haoran { object-position: center 18%; }

.team-card > div:last-child {
  position: relative;
  max-width: 340px;
  margin: 0 auto;
  padding: 44px 0 0;
  text-align: center;
}

.team-card h3 {
  margin: 0;
  color: var(--gct-ink);
  font-size: 1.06rem;
  font-weight: 720;
  line-height: 1.3;
}

.team-card p {
  margin: 7px 0 0;
  color: var(--gct-muted);
  font-size: 0.82rem;
  line-height: 1.52;
}

.team-card > div > a:not(.team-card__profile-link) {
  display: inline-block;
  margin-top: 9px;
  color: var(--gct-blue);
  font-size: 0.76rem;
  font-weight: 650;
  text-underline-offset: 3px;
}

.team-card__profile-link {
  color: inherit;
  text-decoration: none;
}

.team-card__profile-link:hover {
  color: var(--gct-blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.team-card__role {
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  color: var(--gct-blue);
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 18px;
  letter-spacing: 0;
  text-transform: uppercase;
}

@media (min-width: 1700px) {
  .site-nav-shell,
  .site-main,
  .site-footer {
    width: min(2200px, calc(100vw - 56px));
  }

  .site-main--document {
    width: min(1780px, calc(100vw - 80px));
  }
}

@media (max-width: 1100px) {
  .site-brand-lockup { min-width: min(480px, 52vw); }
  .site-brand-lockup__subtitle { max-width: 440px; }

  .document-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .document-summary__item:nth-child(3) {
    border-left: 0;
  }

  .document-summary__item:nth-child(n + 3) {
    border-top: 1px solid var(--gct-border);
  }

  .sources-page {
    grid-template-columns: 1fr;
  }

  .methodology-layout { grid-template-columns: 1fr; gap: 24px; }
  .methodology-index {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
    gap: 22px;
    padding: 16px 18px;
    border: 1px solid var(--gct-border);
    border-left: 3px solid var(--gct-blue);
  }
  .methodology-index ol { grid-column: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .methodology-scope { grid-column: 2; grid-row: 1 / span 2; margin: 0; padding: 0 0 0 20px; border-top: 0; border-left: 1px solid var(--gct-border); }

  .sources-page > * {
    grid-column: 1 !important;
  }
}

@media (max-width: 640px) {
  .site-nav-shell,
  .site-main,
  .site-main--document,
  .site-footer {
    width: calc(100vw - 28px);
  }

  .site-nav-shell {
    padding: 11px 0;
  }

  .site-brand-lockup { min-width: 0; }
  .site-brand-lockup__title { font-size: 1.28rem; }
  .site-brand-lockup__subtitle { max-width: none; font-size: 0.72rem; }

  .gct-access-card {
    padding: 30px 25px 31px;
  }

  .gct-access-entry {
    grid-template-columns: 1fr;
  }

  .site-nav-shell nav ul {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 4px;
  }

  .site-nav-shell nav li {
    min-width: 0;
  }

  .site-nav-shell nav li + li {
    margin-left: 0 !important;
  }

  .site-nav-shell nav a {
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 0 4px !important;
    font-size: 0.75rem;
  }

  .site-main {
    padding: 18px 0 24px;
  }

  .page-intro {
    padding-top: 0;
  }

  .document-hero {
    padding: 14px 0 20px;
  }
  .document-hero h1 { font-size: 2rem; line-height: 1.12; overflow-wrap: break-word; }
  .document-summary { margin-top: 12px; }
  .document-summary__item { padding: 11px 12px 12px; }
  .methodology-layout { padding-top: 22px; }
  .methodology-index { display: block; }
  .methodology-index ol { display: grid; grid-template-columns: 1fr; }
  .methodology-scope { margin-top: 16px; padding: 16px 0 0; border-top: 1px solid var(--gct-border); border-left: 0; }

  .methodology-article { padding: 0 17px; }
  .method-equation { flex-direction: column; align-items: flex-start; gap: 4px; font-size: 0.9375rem; }
  .method-equation__note { text-align: left; }

  .section-heading--team {
    display: block;
  }

  .section-heading--team > p {
    margin-top: 6px;
    text-align: left;
  }

  .team-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; max-width: 400px; margin-top: 32px; }
  .team-card > img { width: min(100%, 164px); }
  .team-card > div:last-child { padding-top: 18px; }
  .team-card--pi > div:last-child { padding-top: 44px; }
  .team-card p { font-size: 0.86rem; }

  .source-panel { padding: 18px; }
  .sources-page table { min-width: 780px; }
  .MuiToggleButtonGroup-root {
    max-width: 100%;
    flex-wrap: wrap;
  }
}
