@import url("https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;500;600&family=Source+Sans+3:wght@400;600;700;800&display=swap");

:root {
  --grz-bg: #f4f7fb;
  --grz-panel: #ffffff;
  --grz-border: #dce5ef;
  --grz-text: #1f2f3f;
  --grz-muted: #63758a;
  --grz-accent: #2b6cb0;
  --grz-accent-strong: #1f4f86;
  --grz-code-bg: #f7fafd;
  --grz-table-head: #ecf3fb;
  --grz-shadow: 0 5px 20px rgba(30, 55, 80, 0.08);
}

body {
  font-family: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
  color: var(--grz-text);
  background: linear-gradient(180deg, #f7f9fc 0%, var(--grz-bg) 45%, var(--grz-bg) 100%);
  padding-top: 104px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #183047;
}

main h2 {
  border-bottom: 2px solid #e4ecf5;
  padding-bottom: 0.22rem;
  margin-top: 1.9rem;
}

a {
  color: var(--grz-accent);
}

a:hover {
  color: var(--grz-accent-strong);
}

.navbar {
  border-bottom: 1px solid var(--grz-border);
  box-shadow: 0 2px 10px rgba(18, 37, 56, 0.08);
  background: #ffffff !important;
  min-height: 82px;
}

.navbar .container {
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 0;
  line-height: 0;
  min-width: 68px;
  padding: 0.1rem 0;
}

.navbar-brand::before {
  content: "";
  width: 68px;
  height: 68px;
  background-image: url("logo.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.navbar .nav-text {
  display: none !important;
}

.navbar .navbar-collapse {
  align-items: center;
}

.navbar .navbar-nav {
  align-items: center;
}

.navbar .nav-link {
  display: flex;
  align-items: center;
  min-height: 40px;
  font-weight: 600;
}

.dropdown-menu {
  border: 1px solid var(--grz-border);
  border-radius: 11px;
  box-shadow: 0 12px 26px rgba(26, 48, 69, 0.13);
}

.template-home main,
.template-reference main,
.template-article main,
.template-articles main,
.template-news main {
  background: var(--grz-panel);
  border: 1px solid var(--grz-border);
  border-radius: 14px;
  box-shadow: var(--grz-shadow);
  padding: 1.6rem 2rem;
}

.template-home aside > div,
.template-reference aside > div,
.template-article aside > div,
.template-articles aside > div,
.template-news aside > div {
  background: var(--grz-panel);
  border: 1px solid var(--grz-border);
  border-radius: 12px;
  box-shadow: var(--grz-shadow);
  padding: 0.9rem 1rem;
  margin-bottom: 0.95rem;
}

.page-header .logo {
  width: 84px;
  height: auto;
}

code,
pre,
pre code,
.sourceCode {
  font-family: "Source Code Pro", Consolas, Menlo, monospace;
}

code {
  background: #eef4fa;
  color: #1f3a56;
  border-radius: 4px;
  padding: 0.12rem 0.3rem;
}

pre,
pre.sourceCode,
.sourceCode {
  background: var(--grz-code-bg);
  border: 1px solid var(--grz-border);
  border-radius: 11px;
}

pre code {
  background: transparent;
  padding: 0;
}

table.table {
  border: 1px solid var(--grz-border);
  border-radius: 11px;
  overflow: hidden;
  margin-top: 0.8rem;
}

table.table thead th {
  background: var(--grz-table-head);
  border-color: var(--grz-border);
  font-weight: 700;
}

table.table td,
table.table th {
  border-color: #e3ebf3;
  padding: 0.62rem 0.76rem;
}

table.table tbody tr:nth-child(even) td {
  background: #fbfdff;
}

blockquote {
  border-left: 4px solid var(--grz-accent);
  background: #f4f9ff;
  border-radius: 7px;
  margin: 1rem 0;
  padding: 0.72rem 1rem;
  color: #264563;
}

.pkgdown-footer-left,
.pkgdown-footer-right {
  color: var(--grz-muted);
}

@media (max-width: 992px) {
  body {
    padding-top: 88px;
  }

  .navbar {
    min-height: 68px;
  }

  .navbar-brand {
    min-width: 50px;
  }

  .navbar-brand::before {
    width: 50px;
    height: 50px;
  }

  .template-home main,
  .template-reference main,
  .template-article main,
  .template-articles main,
  .template-news main {
    padding: 1.25rem 1.1rem;
    border-radius: 11px;
  }
}
