*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background: #f8f8f6;
}

a {
  color: #0b57d0;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid #e0e0dc;
  padding: 0.75rem 1.5rem;
}

.site-header nav {
  max-width: 42rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-header .logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: #1a1a1a;
  margin-right: auto;
}

.site-header .logo:hover {
  text-decoration: none;
}

main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

main:has(.guide) {
  max-width: 48rem;
}

h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.lead {
  color: #555;
  margin: 0 0 2rem;
}

.lang-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lang-card {
  display: block;
  background: #fff;
  border: 1px solid #e0e0dc;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  color: #1a1a1a;
  transition: border-color 0.15s;
}

.lang-card:hover {
  border-color: #0b57d0;
  text-decoration: none;
}

.lang-card strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.lang-card span {
  color: #555;
  font-size: 0.9rem;
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.search-form input[type="search"] {
  flex: 1 1 12rem;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
}

.search-form select {
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
}

.search-form button {
  padding: 0.6rem 1.25rem;
  font-size: 1rem;
  background: #0b57d0;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.search-form button:hover {
  background: #0948ad;
}

.results-meta {
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.results-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.results-list li {
  background: #fff;
  border: 1px solid #e0e0dc;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.results-list a {
  display: block;
  padding: 0.75rem 1rem;
  color: inherit;
}

.results-list a:hover {
  background: #f0f4ff;
  text-decoration: none;
}

.result-title {
  font-weight: 600;
}

.result-path {
  font-size: 0.85rem;
  color: #777;
  margin-top: 0.15rem;
}

.result-description {
  font-size: 0.9rem;
  color: #444;
  margin-top: 0.15rem;
}

.entity-back {
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

.entity-qid {
  color: #777;
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
}

.entity-lead {
  font-size: 1.05rem;
  color: #333;
  margin: 0 0 1.5rem;
}

.profile-list {
  margin: 0 0 1.5rem;
}

.profile-list dt {
  font-weight: 600;
  color: #555;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-top: 1rem;
}

.profile-list dd {
  margin: 0.25rem 0 0;
}

.tag {
  display: inline-block;
  background: #eef2f8;
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  margin: 0 0.35rem 0.35rem 0;
  font-size: 0.9rem;
}

.entity-image {
  margin: 1.5rem 0;
}

.entity-image img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid #e0e0dc;
}

.entity-api {
  color: #777;
  font-size: 0.9rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0dc;
}

.prompt {
  color: #555;
}

.guide {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0dc;
}

.guide h2 {
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
}

.guide h3 {
  font-size: 1.1rem;
  margin: 2rem 0 0.5rem;
}

.guide h4 {
  font-size: 1rem;
  margin: 1.25rem 0 0.35rem;
  color: #333;
}

.guide p {
  margin: 0 0 0.75rem;
  color: #444;
}

.endpoint-list {
  margin: 0.5rem 0 1rem;
}

.endpoint-list dt {
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, monospace;
  font-size: 0.88rem;
  margin-top: 0.6rem;
}

.endpoint-list dt code {
  font-size: inherit;
}

.endpoint-list dd {
  margin: 0.15rem 0 0;
  color: #555;
  font-size: 0.92rem;
}

.guide-params {
  font-size: 0.92rem;
  color: #555;
}

.guide-param-list {
  margin: 0.25rem 0 1rem;
  padding-left: 1.25rem;
  color: #555;
  font-size: 0.92rem;
}

.guide-param-list li {
  margin-bottom: 0.25rem;
}

.guide-param-list code {
  font-size: 0.88rem;
}

.guide-code {
  background: #1e1e1e;
  color: #e8e8e8;
  border-radius: 6px;
  padding: 0.85rem 1rem;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0.5rem 0 1rem;
}

.guide-code code {
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, monospace;
  color: inherit;
  white-space: pre;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 0.75rem 0 1rem;
}

.guide-table th,
.guide-table td {
  text-align: left;
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid #e0e0dc;
  vertical-align: top;
}

.guide-table th {
  font-weight: 600;
  color: #555;
  font-size: 0.85rem;
}

.guide-table code {
  font-size: 0.85rem;
}

.guide-steps {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
  color: #444;
  font-size: 0.92rem;
}

.guide-steps li {
  margin-bottom: 0.35rem;
}

.guide-note {
  font-size: 0.9rem;
  color: #777;
  margin-top: 1rem;
}
