/* Post 1387 only: readable article text and the isolated flashcard engine. */
body.postid-1387 .drhc-content :is(p, li, blockquote, figcaption),
body.postid-1387 .dr-flashcard-engine {
  font-family: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.postid-1387 .drhc-content > :is(p, ul, ol, blockquote) {
  max-width: 68ch;
  font-size: clamp(1rem, 0.25vw + 0.96rem, 1.125rem);
  letter-spacing: 0.005em;
  line-height: 1.78;
}

body.postid-1387 .drhc-content > :is(ul, ol) { padding-inline-start: 1.35rem; }
body.postid-1387 .drhc-content li + li { margin-top: 0.4rem; }

body.postid-1387 .dr-flashcard-engine {
  --dr-fce-cyan: #73c6e2;
  --dr-fce-gold: #c6a256;
  --dr-fce-text: #eef7fb;
  --dr-fce-soft: #c8d7e0;
  --dr-fce-line: rgba(115, 198, 226, 0.2);
  --dr-fce-panel: rgba(255, 255, 255, 0.035);
  margin-top: 1.25rem;
  color: var(--dr-fce-text);
}

body.postid-1387 .dr-fce-modes,
body.postid-1387 .dr-fce-actions,
body.postid-1387 .dr-fce-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

body.postid-1387 .dr-fce-modes { margin-bottom: 0.85rem; }
body.postid-1387 .dr-fce-meta { justify-content: space-between; color: var(--dr-fce-gold); font: 600 0.72rem/1.25 Arial, sans-serif; letter-spacing: 0.15em; text-transform: uppercase; }
body.postid-1387 .dr-fce-panel { min-height: 17rem; padding: clamp(1rem, 3vw, 1.5rem); border: 1px solid var(--dr-fce-line); border-radius: 1rem; background: linear-gradient(135deg, rgba(95, 228, 255, 0.06), var(--dr-fce-panel)); }
body.postid-1387 .dr-fce-question { margin: 1.2rem 0; color: var(--dr-fce-text); font-family: "Playfair Display", Georgia, serif; font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.28; }
body.postid-1387 .dr-fce-question:focus { outline: none; }
body.postid-1387 .dr-fce-answer { margin: 1rem 0; padding: 0.9rem 1rem; border-left: 3px solid var(--dr-fce-gold); color: var(--dr-fce-soft); background: rgba(198, 162, 86, 0.08); }
body.postid-1387 .dr-fce-answer p { margin: 0.4rem 0 0; }

body.postid-1387 .dr-fce-mode,
body.postid-1387 .dr-fce-actions button,
body.postid-1387 .dr-fce-options button {
  min-height: 2.75rem;
  border: 1px solid var(--dr-fce-line);
  border-radius: 0.65rem;
  color: var(--dr-fce-text);
  background: rgba(6, 16, 24, 0.58);
  cursor: pointer;
  font: inherit;
}

body.postid-1387 .dr-fce-mode,
body.postid-1387 .dr-fce-actions button { padding: 0.55rem 0.85rem; }
body.postid-1387 .dr-fce-mode.is-active,
body.postid-1387 .dr-fce-actions .is-primary { border-color: rgba(198, 162, 86, 0.62); color: var(--dr-fce-gold); background: rgba(198, 162, 86, 0.12); }
body.postid-1387 .dr-fce-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
body.postid-1387 .dr-fce-options button { display: flex; gap: 0.65rem; align-items: center; padding: 0.75rem; text-align: left; color: var(--dr-fce-soft); }
body.postid-1387 .dr-fce-options button span { display: inline-grid; width: 1.5rem; height: 1.5rem; flex: 0 0 auto; place-items: center; border: 1px solid currentColor; border-radius: 50%; font: 700 0.72rem/1 Arial, sans-serif; }
body.postid-1387 .dr-fce-options button.is-selected { border-color: var(--dr-fce-cyan); color: var(--dr-fce-text); background: rgba(115, 198, 226, 0.13); }
body.postid-1387 .dr-fce-options button.is-correct { border-color: #86c69b; color: #dff5e5; background: rgba(134, 198, 155, 0.13); }
body.postid-1387 .dr-fce-options button.is-incorrect { border-color: #d58a72; color: #ffe1d7; background: rgba(213, 138, 114, 0.13); }
body.postid-1387 .dr-fce-feedback { min-height: 2.5rem; margin: 1rem 0; color: var(--dr-fce-soft); }
body.postid-1387 .dr-fce-feedback strong { color: var(--dr-fce-gold); }
body.postid-1387 .dr-fce-feedback p { margin: 0.35rem 0 0; }
body.postid-1387 .dr-fce-actions { justify-content: flex-end; margin-top: 1.2rem; }
body.postid-1387 .dr-fce-actions button:disabled { cursor: not-allowed; opacity: 0.45; }
body.postid-1387 .dr-flashcard-engine button:focus-visible { outline: 3px solid var(--dr-fce-cyan); outline-offset: 3px; }
body.postid-1387 .dr-fce-summary h3 { margin: 1rem 0 0.4rem; font-family: "Playfair Display", Georgia, serif; }

@media (max-width: 600px) {
  body.postid-1387 .drhc-content > :is(p, ul, ol, blockquote) { font-size: 1rem; line-height: 1.72; }
  body.postid-1387 .dr-fce-panel { min-height: 0; padding: 1rem; }
  body.postid-1387 .dr-fce-options { grid-template-columns: 1fr; }
  body.postid-1387 .dr-fce-actions button { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  body.postid-1387 .dr-flashcard-engine *, body.postid-1387 .dr-flashcard-engine *::before, body.postid-1387 .dr-flashcard-engine *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
