:root {
  --primary: #ce035f;
  --background: #14181b;
  --background-secondary: #1a1f24;
  --text: #ffffff;
  --text-muted: #9ca3af;
  --border: #2a2f35;
  --max-width: 720px;
}

* {
  box-sizing: border-box;
}

/* The [hidden] attribute drives language switching (lang.js toggles it on
   every [data-lang] element) and must always win over any display: rule
   below, no matter how specific -- otherwise a "hidden" language variant
   can render anyway (this happened on index.html's hub-grid cards: their
   `display: block` rule outranked the browser's own `[hidden] { display:
   none }`, so both languages showed stacked). */
[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover,
a:focus {
  text-decoration: underline;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px 64px;
}

header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

nav.crumbs {
  font-size: 13px;
  color: var(--text-muted);
  margin: 4px 0 24px;
}

nav.crumbs a {
  color: var(--text-muted);
}

/* Language switcher */
.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 28px;
}

.lang-switch button {
  background: var(--background-secondary);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

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

.lang-fallback-note {
  background: var(--background-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Page content */
h1 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 4px;
}

.subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 28px;
}

h2 {
  font-size: 19px;
  font-weight: 700;
  margin: 36px 0 10px;
  color: var(--primary);
}

h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 8px;
}

p {
  margin: 0 0 14px;
  color: #e5e7eb;
}

ul,
ol {
  margin: 0 0 14px;
  padding-left: 22px;
  color: #e5e7eb;
}

li {
  margin-bottom: 6px;
}

.card {
  background: var(--background-secondary);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 16px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  padding: 4px 0;
}

.faq-item summary::-webkit-details-marker {
  color: var(--primary);
}

.faq-item p {
  margin-top: 10px;
  color: var(--text-muted);
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.button {
  display: inline-block;
  background: var(--primary);
  color: #fff !important;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 999px;
  text-decoration: none !important;
  margin-top: 6px;
}

.button.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text) !important;
}

.meta {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.hub-grid {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.hub-grid a.card {
  display: block;
  color: var(--text) !important;
  text-decoration: none !important;
}

.hub-grid a.card .hub-title {
  display: block;
  font-weight: 700;
  font-size: 15px;
}

.hub-grid a.card .hub-desc {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 4px;
}

footer.site-footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 48px;
}

footer.site-footer a {
  color: var(--text-muted);
}
