:root {
  color-scheme: light;
  --ink: #141c24;
  --muted: #54595f;
  --accent: #6ec1e4;
  --accent-2: #f6a727;
  --surface: #ffffff;
  --paper: #ffffff;
  --line: rgba(15, 23, 42, 0.08);
  --code: #0b1220;
  --code-text: #e2e8f0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Roboto", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 10% 20%, rgba(110, 193, 228, 0.25) 0%, transparent 35%),
              radial-gradient(circle at 90% 10%, rgba(246, 167, 39, 0.15) 0%, transparent 40%),
              var(--paper);
  color: var(--ink);
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(248, 250, 252, 0.9);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6ec1e4, #61ce70);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-family: "Josefin Sans", sans-serif;
}

.badge-logo {
  background: linear-gradient(135deg, #6ec1e4, #61ce70);
  box-shadow: 0 10px 20px rgba(110, 193, 228, 0.25);
}

.badge-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(20, 28, 36, 0.15));
}

.header-text h1 {
  margin: 0;
  font-family: "Josefin Sans", sans-serif;
  font-size: 20px;
}

.header-text p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.header-actions {
  margin-left: auto;
  display: flex;
  gap: 12px;
}

.header-actions a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.doc-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.doc-shell h1 {
  font-family: "Josefin Sans", sans-serif;
  margin-top: 0;
}

.doc-shell h2,
.doc-shell h3,
.doc-shell h4 {
  font-family: "Josefin Sans", sans-serif;
  margin-top: 28px;
}

.doc-shell p {
  line-height: 1.7;
  color: var(--ink);
}

.doc-shell a {
  color: var(--accent);
}

.doc-shell ul,
.doc-shell ol {
  padding-left: 20px;
  line-height: 1.7;
}

.doc-shell blockquote {
  border-left: 4px solid var(--accent);
  margin: 20px 0;
  padding: 12px 18px;
  background: #f0fdfa;
  color: #0f172a;
}

.doc-shell code {
  background: rgba(15, 118, 110, 0.12);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.9em;
}

.doc-shell pre {
  background: var(--code);
  color: var(--code-text);
  padding: 16px;
  border-radius: 12px;
  overflow-x: auto;
}

.doc-shell table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.doc-shell th,
.doc-shell td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}

.doc-shell th {
  background: #f1f5f9;
  font-weight: 600;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 8px;
}

.tab {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab:hover {
  border-color: rgba(15, 118, 110, 0.4);
  color: var(--accent);
}

.tab.active {
  background: linear-gradient(135deg, #6ec1e4, #61ce70);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(110, 193, 228, 0.25);
}

.group-meta {
  margin-top: 14px;
}

.group-desc {
  color: var(--muted);
  margin: 6px 0 18px;
}

.index-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: var(--surface);
}

.index-card h3 {
  margin: 0 0 6px;
  font-family: "Josefin Sans", sans-serif;
}

.index-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.index-card a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions {
    margin-left: 0;
  }

  .doc-shell {
    padding: 22px;
  }
}
