:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --line: #dbe6f5;
  --text: #10213f;
  --muted: #64748b;
  --blue: #1d4ed8;
  --blue-deep: #10213f;
  --blue-soft: #e8f0ff;
  --green: #16a34a;
  --green-soft: #e8f6ef;
  --shadow: 0 18px 46px rgba(16, 40, 80, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-shell {
  min-height: 100vh;
}

.site-topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(16, 40, 80, 0.05);
}

.site-topbar-inner {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blue-deep);
}

.brand-logo {
  display: block;
  width: min(220px, 42vw);
  height: auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8, #0891b2);
  border-radius: 8px;
  font-weight: 900;
}

.brand-title {
  display: grid;
  gap: 2px;
}

.brand-name {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue-deep);
  background: #fff;
  font-weight: 700;
}

.top-nav a:hover,
.top-nav a.active {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: #bfd3ff;
  text-decoration: none;
}

.page {
  width: min(1180px, calc(100vw - 32px));
  margin: 32px auto 56px;
}

.hero {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.home-hero {
  position: relative;
  min-height: 310px;
  padding: 28px 28px 92px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.home-hero .lead,
.home-hero h1,
.home-hero .actions,
.home-hero .eyebrow {
  position: relative;
  z-index: 1;
}

.home-hero-logo {
  position: relative;
  z-index: 1;
  width: min(330px, 78vw);
  height: auto;
  margin-bottom: 6px;
}

.home-hero-watermark {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 94px;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0.20;
  pointer-events: none;
}

.eyebrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(30px, 4vw, 48px);
  max-width: 920px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 16px;
}

.lead {
  max-width: 860px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  overflow-wrap: anywhere;
}

.resource-grid,
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card,
.panel {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.card {
  display: grid;
  gap: 10px;
  min-height: 142px;
  padding: 20px;
}

.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 8px;
  font-weight: 900;
}

.card p,
.panel p {
  margin: 0;
  color: var(--muted);
}

.panel {
  padding: 22px;
  margin-top: 18px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  color: #166534;
  background: var(--green-soft);
  border: 1px solid #b8e4c7;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.term-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.term-list a {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.term-list strong,
.term-list span {
  display: block;
}

.term-list span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.definition-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.definition-list {
  display: grid;
  grid-template-columns: minmax(110px, 170px) 1fr;
  gap: 10px 16px;
  margin: 0;
}

.definition-list dt {
  color: var(--muted);
  font-weight: 800;
}

.definition-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.domain-list {
  display: grid;
  gap: 8px;
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.domain-list li {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  overflow-wrap: anywhere;
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

code {
  color: #17315f;
  background: #eef4ff;
  border: 1px solid #d6e5ff;
  border-radius: 6px;
  padding: 2px 5px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.json-block {
  max-height: 520px;
  overflow: auto;
  padding: 16px;
  color: #d6e7ff;
  background: #0b1730;
  border-radius: 8px;
  border: 1px solid #172a4f;
}

.json-block code {
  display: block;
  color: inherit;
  background: transparent;
  border: 0;
  padding: 0;
  white-space: pre;
  overflow-wrap: normal;
  word-break: normal;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue-deep);
  font-weight: 800;
}

.button.primary {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.button:hover {
  text-decoration: none;
  border-color: #bfd3ff;
  background: var(--blue-soft);
}

.button.primary:hover {
  color: #fff;
  background: #1e40af;
}

.footer {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 36px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.footer-contact {
  display: block;
  width: 100%;
  max-height: 54px;
  object-fit: contain;
  object-position: left center;
  margin-top: 16px;
}

@media (max-width: 900px) {
  .site-topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .resource-grid,
  .summary-grid,
  .term-list,
  .definition-grid {
    grid-template-columns: 1fr;
  }

  .definition-list {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: 360px;
    padding: 22px 18px 84px;
  }
}
