/* Squared exercise-book look. */
html {
  background-color: #fbfaf6;
  background-image:
    linear-gradient(#e9eef5 1px, transparent 1px),
    linear-gradient(90deg, #e9eef5 1px, transparent 1px);
  background-size: 22px 22px;
}
body {
  margin: 0;
  color: #222;
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Hiragino Sans", "Yu Gothic", sans-serif;
}
a { color: #b7282e; }
.kt-masthead { padding: 20px 20px 6px; text-align: center; }
.kt-home { display: inline-flex; align-items: center; gap: 10px; color: #222; text-decoration: none; font-size: 28px; font-weight: 700; }
.kt-motto { margin: 2px 0 0; color: #666; }
.kt-switch { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; padding: 12px; position: sticky; top: 0; background: rgba(251, 250, 246, .94); z-index: 2; border-bottom: 1px solid #e3e0d6; }
.kt-switch button {
  font: inherit; padding: 6px 18px; cursor: pointer;
  border: 2px solid #222; border-radius: 999px; background: #fff;
}
.kt-switch button[aria-pressed="true"] { background: #222; color: #fff; }
.kt-latin { font-size: 15px; color: #555; }
.kt-layout { max-width: 900px; margin: 0 auto; padding: 16px; display: grid; gap: 18px; }
.kt-sheet { background: #fff; border: 1px solid #ddd6c8; border-radius: 3px; padding: 16px 18px 20px; box-shadow: 3px 3px 0 #ece6d8; }
.kt-sheet h2, .kt-article h1 { margin: 0 0 8px; font-size: 21px; }
.kt-article h2 { margin-top: 22px; font-size: 18px; }
.kt-hintline { color: #555; font-size: 15px; margin: 6px 0 10px; }
.kt-grid { border-collapse: collapse; width: 100%; table-layout: fixed; }
.kt-grid td { padding: 3px; height: 74px; }
.kt-cell {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px solid #ddd6c8; border-radius: 6px; background: #fffdf8; cursor: pointer; font: inherit; color: inherit;
}
.kt-cell:hover { border-color: #b7282e; }
.kt-cell[aria-pressed="true"] { background: #f1f7ec; border-color: #7aa267; }
.kt-glyph { font-size: 30px; line-height: 1.1; }
.kt-read { font-size: 14px; color: #666; }
.kt-wide .kt-glyph { font-size: 26px; }
.kt-practice { border-top: 6px solid #b7282e; }
.kt-streak { margin: 0 0 8px; color: #7a5a1e; }
.kt-quiz { text-align: center; }
.kt-progress { margin: 0; color: #888; font-size: 14px; }
.kt-ask { margin: 6px 0 14px; font-size: 76px; line-height: 1.1; }
.kt-answers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 460px; margin: 0 auto 12px; }
.kt-answer, .kt-next {
  font: inherit; padding: 10px 6px; border-radius: 8px; cursor: pointer;
  border: 1px solid #bbb; background: #fff;
}
.kt-answer.kt-yes { background: #dff0d6; border-color: #5d9147; }
.kt-answer.kt-no { background: #f8dcdc; border-color: #b7282e; }
.kt-next { background: #222; color: #fff; border-color: #222; padding: 8px 22px; }
.kt-score { font-size: 26px; margin: 8px 0; }
.kt-sources { margin: 0; padding-left: 20px; }
.kt-srcnote { color: #555; }
.kt-colophon { text-align: center; color: #555; font-size: 14px; padding: 8px 16px 28px; }
.kt-nojs { text-align: center; background: #fde9c8; margin: 0; padding: 10px; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #3b82f6; outline-offset: 2px; }
@media (max-width: 520px) {
  .kt-grid td { height: 62px; padding: 2px; }
  .kt-glyph { font-size: 24px; }
  .kt-read { font-size: 12px; }
  .kt-answers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kt-ask { font-size: 64px; }
}
