/* Learnwall flashcard topic pages (/pl/fiszki, /flashcards). On top of site.css + blog.css;
   generated by firebase/ops-dashboard/lib/pack-pages.mjs. No script needed: answers use <details>. */

.fc-crumbs {
  margin: 0 0 18px;
  color: var(--ink-2);
  font-size: 0.875rem;
}

.fc-crumbs a {
  color: var(--ink-2);
  font-weight: 600;
  text-decoration: none;
}

.fc-crumbs a:hover { color: var(--accent); }

.fc-hero { margin: 0 0 28px; }

.fc-scopes-label {
  margin: 0 0 8px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fc-scopes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.fc-scopes li {
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 0.875rem;
  line-height: 1.3;
}

.fc-hint {
  color: var(--ink-2);
}

.blog-body .fc-cards {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  counter-reset: fc;
}

.blog-body .fc-card {
  position: relative;
  margin: 0;
  padding: 18px 18px 14px 56px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--paper);
  counter-increment: fc;
}

.blog-body .fc-card::before {
  content: counter(fc);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: var(--heading);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 28px;
  text-align: center;
}

.blog-body .fc-q {
  margin: 0 0 10px;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.4;
}

.blog-body .fc-options {
  margin: 0 0 12px;
  padding-left: 1.5rem;
}

.blog-body .fc-options li {
  margin: 0 0 4px;
  color: var(--ink);
}

.blog-body .fc-options li::marker {
  color: var(--ink-2);
  font-weight: 600;
}

.fc-answer {
  border-top: 1px solid var(--divider);
  padding-top: 10px;
}

.fc-answer summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.fc-answer summary::-webkit-details-marker { display: none; }

.fc-answer summary::after {
  content: "+";
  font-size: 1.2rem;
  line-height: 1;
}

.fc-answer[open] summary::after { content: "\2212"; }

.fc-answer summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.blog-body .fc-answer p { margin: 6px 0 8px; }

.blog-body .fc-a strong { color: var(--success); }

.fc-label { color: var(--ink-2); }

.blog-body .fc-source {
  color: var(--ink-2);
  font-size: 0.875rem;
}

.blog-body .fc-more {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--success-soft);
  border: 1px solid var(--success-border);
}

.fc-sources { margin: 32px 0; }

.fc-license {
  color: var(--ink-2);
  font-size: 0.875rem;
}

.fc-hub {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.fc-hub li { margin: 0; }

@media (max-width: 480px) {
  .blog-body .fc-card { padding: 54px 16px 12px; }
  .blog-body .fc-card::before { left: 16px; top: 16px; }
  .blog-link-secondary { margin-left: 0; }
}

/* Quiz (js/flashcards.js): options as buttons, right/wrong at once, score at the end. */
.fc-progress {
  position: sticky;
  top: calc(var(--header-h) + 8px);
  z-index: 5;
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--border);
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 600;
}

.blog-body .is-quiz .fc-options {
  padding-left: 1.75rem;
}

.blog-body .is-quiz .fc-options li { margin: 0 0 8px; }

.fc-opt {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.fc-opt:hover:not(:disabled) {
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.fc-opt:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.fc-opt:disabled { cursor: default; }

.fc-opt.is-right {
  border-color: var(--success-border);
  background: var(--success-soft);
  color: var(--success);
  font-weight: 700;
}

.fc-opt.is-right::after { content: " \2713"; }

.fc-opt.is-wrong {
  border-color: #fda29b;
  background: #fef3f2;
  color: #b42318;
  font-weight: 700;
}

.fc-opt.is-wrong::after { content: " \2717"; }

.blog-body .fc-card.was-right { border-color: var(--success-border); }
.blog-body .fc-card.was-wrong { border-color: #fda29b; }

.is-quiz .fc-answer summary { display: none; }

.fc-result {
  margin: 4px 0 18px;
  padding: 22px 20px;
  border-radius: 18px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
}

.blog-body .fc-result-score {
  margin: 0 0 6px;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1.6rem;
}

.fc-retry {
  min-height: 44px;
  margin-left: 12px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 480px) {
  .fc-retry { margin-left: 0; }
}

.fc-progress[hidden],
.fc-result[hidden] { display: none; }
