/* Brand monogram ------------------------------------------------------- */
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(155deg, var(--accent), var(--accent-ink));
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.brand-name {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  line-height: 1.2;
}

.brand-sub {
  display: block;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 11px;
  color: var(--text-muted);
}

/* Buttons --------------------------------------------------------------- */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--font-sans);
  padding: 10px 18px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-ink); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text-muted);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* Chips/pills ------------------------------------------------------------ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
}

.chip.is-active {
  background: var(--accent);
  color: #fff;
}

/* Cards ------------------------------------------------------------------ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  position: relative;
}

.card-accent::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--gcolor, var(--accent));
}

.stack > * + * {
  margin-top: 20px;
}

.card--image { --gcolor: var(--cat-image); }
.card--audio { --gcolor: var(--cat-audio); }
.card--video { --gcolor: var(--cat-video); }

.card h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 8px;
}

.card p {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.card-tag {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--gcolor, var(--text-muted));
  background: var(--surface-2);
  border-radius: 999px;
  padding: 3px 10px;
}

/* Info popover (native Popover API) --------------------------------------- */
.info-btn {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px;
}
.info-btn:hover { border-color: var(--accent); color: var(--accent); }

[popover].info-pop {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--surface);
  color: var(--text);
  padding: 16px 18px;
  max-width: 280px;
  font-size: 13px;
  line-height: 1.6;
}
[popover].info-pop::backdrop {
  background: rgba(10, 13, 19, .1);
}
[popover].info-pop ul {
  margin-top: 8px;
  padding-left: 0;
}
[popover].info-pop li {
  position: relative;
  padding-left: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}
[popover].info-pop li::before {
  content: "\2013";
  position: absolute;
  left: 0;
  color: var(--gcolor, var(--accent));
}

/* Nav ---------------------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
  padding: 0 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-2);
}
.nav-links a:hover {
  border-color: var(--accent);
  color: var(--text);
}
.nav-links a[aria-current="page"] {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.nav-links a.nav-home {
  padding: 8px 10px;
}
.nav-home svg {
  width: 16px;
  height: 16px;
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.lang-switch a {
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.lang-switch a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.hamburger {
  display: none;
}

[popover].nav-drawer {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--surface);
  padding: 10px;
  width: min(240px, 90vw);
  inset: unset;
  top: 60px;
  right: 16px;
  margin: 0;
}
[popover].nav-drawer::backdrop {
  background: rgba(10, 13, 19, .25);
}
.nav-drawer a {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.nav-drawer a:hover { background: var(--surface-2); }
.nav-drawer a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.nav-drawer a.nav-home svg { width: 16px; height: 16px; }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .hamburger { display: inline-flex; }
}
@media (min-width: 721px) {
  .hamburger { display: none !important; }
}

/* FAQ / glossary accordion ------------------------------------------------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  color: var(--text-muted);
  flex-shrink: 0;
}
.faq-list details[open] summary::after { content: "\2013"; }
.faq-list summary:hover { color: var(--accent-ink); }
.faq-list summary:hover::after { color: var(--accent); }
.faq-list .faq-body {
  padding: 0 20px 16px;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.65;
}

/* Empty-state pattern (reserved, unused in V1) ----------------------------- */
.empty-state {
  text-align: center;
  background: var(--surface-2);
  color: var(--text-muted);
  border-radius: var(--radius);
  padding: 34px;
}
