/* QAnon lesson. All rules scoped under .qan-* */
.qan-sc { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* Q's post, as the board showed it */
.qan-post { width: 100%; max-width: 360px; padding: 10px 12px 12px; border-radius: 6px; background: #1d1f21; border: 1px solid #34383c; box-shadow: 0 10px 30px rgba(0,0,0,.45); text-align: left; animation: qanIn .5s ease-out both; }
.qan-head { font: 600 12px var(--mono); color: #81a2be; margin-bottom: 6px; }
.qan-head b { color: #b5bd68; font-weight: 600; }
.qan-body { margin: 0; min-height: 7.2em; font: 600 14px/1.45 var(--mono); color: #d7dadc; }
.qan-small .qan-body { min-height: 0; font-size: 12px; line-height: 1.4; }
.qan-small { padding: 8px 10px; }
@keyframes qanIn { from { opacity: 0; translate: 0 10px; } }

/* the calendar */
.qan-cal { display: flex; gap: 6px; justify-content: center; width: 100%; }
.qan-day { position: relative; flex: 0 1 64px; min-width: 52px; min-height: 64px; padding: 6px 2px 4px; border-radius: 12px; background: var(--surface); border: 2px solid var(--line-strong); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; transition: background .25s, border-color .25s, opacity .3s, scale .25s; }
.qan-day:disabled { cursor: default; opacity: 1; color: var(--text); }
.qan-day span { font: 700 11.5px var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.qan-day b { font: 800 22px/1.1 var(--sans); }
.qan-day i { font: 800 11.5px/1.15 var(--sans); font-style: normal; color: var(--dim); text-align: center; min-height: 13px; }
.qan-mark { border-color: var(--gold); box-shadow: 0 0 14px rgba(252,192,80,.35); }
.qan-on { background: var(--raised); border-color: var(--violet-bright); scale: 1.08; }
.qan-x b { color: var(--faint); text-decoration: line-through; text-decoration-thickness: 2px; }
.qan-x.qan-mark { border-color: var(--line-strong); box-shadow: none; }
.qan-day.qan-hid { opacity: 0; }
.qan-storm .qan-day { flex-basis: 76px; }
.qan-yr { font: 800 13px var(--sans); color: var(--dim); letter-spacing: .1em; }

/* decode */
.qan-clue { width: 100%; max-width: 360px; padding: 8px 12px; border-radius: 6px; background: #1d1f21; border: 1px solid #34383c; text-align: left; }
.qan-clue span { display: block; font: 600 11.5px var(--mono); color: #b5bd68; }
.qan-clue b { font: 600 19px var(--mono); color: #d7dadc; }
.qan-heads { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 7px; }
.qan-hd { position: relative; width: 100%; min-height: 46px; padding: 6px 12px; border-radius: 12px; background: var(--surface); border: 1.5px solid var(--line-strong); text-align: left; display: flex; flex-direction: column; justify-content: center; transition: border-color .3s, background .3s; }
.qan-hd:disabled { cursor: default; color: var(--text); opacity: 1; }
.qan-hl { font: 700 15px/1.2 var(--sans); }
.qan-note { max-height: 0; overflow: hidden; font: 800 13px/1.2 var(--sans); color: var(--gold); transition: max-height .35s ease-out, margin .35s; }
.qan-fit { border-color: var(--gold); background: rgba(252,192,80,.08); }
.qan-fit .qan-note { max-height: 20px; margin-top: 3px; }
.qan-fine { font-size: 12.5px; color: var(--faint); text-align: center; max-width: 330px; }

/* the ban */
.qan-news { width: 100%; max-width: 330px; padding: 16px 18px; border-radius: 14px; background: var(--raised); border: 1px solid var(--line-strong); text-align: left; box-shadow: 0 12px 30px rgba(0,0,0,.4); animation: qanIn .5s ease-out both; }
.qan-news span { display: block; font: 700 12px var(--sans); color: var(--dim); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.qan-news b { font: 700 21px/1.25 var(--serif); }

@media (max-height: 700px) {
  .qan-body { font-size: 13px; min-height: 6.6em; }
  .qan-small .qan-body { font-size: 12px; }
  .qan-day { min-height: 58px; }
  .qan-hd { min-height: 44px; padding: 4px 10px; }
  .qan-hl { font-size: 14px; }
  .qan-heads { gap: 5px; }
  .qan-sc { gap: 8px; }
}
