/* Lean */
.gm-lean { max-width: 640px; margin: 0 auto; }

.ln-ctx { margin: 0 0 14px; }
.ln-k { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--quiet); }
.ln-story { margin: 2px 0 0; font-size: 17px; font-weight: 600; }

.ln-pips { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 0 0 18px; padding: 0; }
.ln-pips li { display: flex; align-items: center; justify-content: center; height: 30px; border: 2px dashed var(--faint); border-radius: 4px;
  font-size: 14px; font-weight: 800; color: var(--faint); font-variant-numeric: tabular-nums; transition: background .25s var(--ease), border-color .25s var(--ease); }
.ln-pips li.cur { border-style: solid; border-color: var(--ink); color: var(--ink); }
.ln-pips li.hit { border: 2px solid var(--cite); background: var(--cite); color: #fff; animation: ln-pip .4s var(--ease); }
.ln-pips li.miss { border: 2px solid var(--ink); background: var(--paper); color: var(--ink);
  background-image: repeating-linear-gradient(135deg, transparent 0 5px, var(--rail) 5px 7px); animation: ln-pip .4s var(--ease); }
@keyframes ln-pip { 0% { transform: scale(.85); } 60% { transform: scale(1.06); } 100% { transform: none; } }

.ln-card, .ln-sum { border: 2px solid var(--ink); border-radius: 10px; padding: 22px 24px 24px; background: var(--paper); }
.ln-card.enter, .ln-sum.enter { animation: ln-in .35s var(--ease); }
@keyframes ln-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.ln-n { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--quiet); }
.ln-h { margin: 0 0 22px; font-size: clamp(23px, 5vw, 32px); line-height: 1.2; font-weight: 800; letter-spacing: -.015em; overflow-wrap: anywhere; }
.ln-h .q { color: var(--faint); }
.ln-ask { margin: 0 0 4px; font-size: 15px; color: var(--quiet); }

/* The switch: .spectrum.big from styles.css, with nothing picked until the reader taps. */
.ln-spec { margin: 0 4px; }
.ln-spec:not([data-v]) .handle { opacity: 0; }
.ln-spec .handle { transition: left .35s var(--ease), background .25s, opacity .2s; }
.ln-spec button { min-height: 44px; }
.ln-spec button span { display: inline-block; padding: 2px 2px; border-radius: 2px; }
.ln-spec.locked { cursor: default; }
.ln-spec.locked button { cursor: default; }
.ln-spec.locked button:hover { color: var(--quiet); }
.ln-spec.locked button[aria-checked="true"] { color: var(--ink); }
.ln-spec.locked button.ans, .ln-spec.locked button.ans:hover { color: var(--cite); }
.ln-spec.locked button.ans::before { background: var(--cite); border-color: var(--cite); }
.ln-spec.locked button.ans span { box-shadow: inset 0 -3px 0 var(--cite); }
.ln-spec.locked button.miss span { text-decoration: line-through; text-decoration-thickness: 3px; }
.ln-spec.ok .handle { background: var(--cite); }
.ln-spec.no .handle { background: var(--paper); border: 3px solid var(--ink); }

.ln-acts { display: flex; justify-content: flex-end; margin-top: 20px; }
.ln-acts .gm-btn { min-width: 170px; }
.ln-lock[disabled] { opacity: .3; }

.ln-reveal { margin-top: 22px; padding-top: 16px; border-top: 2px solid var(--ink); }
.ln-reveal[hidden] { display: none; }
.ln-reveal.pop { animation: ln-up .35s var(--ease); }
@keyframes ln-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ln-verdict { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.ln-mark { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 30px; height: 30px; border-radius: 50%;
  font-size: 17px; font-weight: 800; line-height: 1; }
.ok .ln-verdict .ln-mark, .ln-list .hit .ln-mark { background: var(--cite); color: #fff; }
.no .ln-verdict .ln-mark, .ln-list .miss .ln-mark { border: 2px solid var(--ink); color: var(--ink); }
.ln-who p { margin: 0 0 6px; font-size: 16px; }
.ln-who a { font-weight: 600; color: var(--cite); }
.ln-note { color: var(--quiet); font-size: 14px !important; }
.ln-rail { margin: 14px 0 0; }
.ln-ticks { height: 28px; }
.ln-ticks i { height: 40%; }
.ln-ticks i.on { height: 100%; width: 4px; margin-left: -2px; background: var(--cite); }
.ln-ends { display: flex; justify-content: space-between; margin-top: 4px; font-size: 12px; color: var(--quiet); }

.ln-sum h2 { margin: 0 0 14px; font-size: clamp(34px, 8vw, 48px); line-height: 1; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ln-sum h2 span { font-size: 20px; letter-spacing: -.01em; color: var(--quiet); font-weight: 600; }
.ln-sum h2:focus { outline: none; }
.ln-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.ln-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rail); }
.ln-list .ln-mark { margin-top: 2px; }
.ln-lh { display: block; font-size: 17px; line-height: 1.3; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.ln-lh:hover { text-decoration: underline; }
.ln-list p { margin: 4px 0 0; font-size: 14px; color: var(--quiet); }
.ln-list p b { color: var(--ink); }
.ln-you { color: var(--ink); }
.ln-cta { margin: 16px 0 0; font-weight: 600; }
.ln-cta a { color: var(--cite); }

.ln-dlg .ln-row { display: flex; gap: 6px; margin: 4px 0 0; }
.ln-dlg .ln-row span { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 4px; font-weight: 800; }
.ln-dlg .ln-row .hit { background: var(--cite); color: #fff; }
.ln-dlg .ln-row .miss { border: 2px solid var(--ink); background-image: repeating-linear-gradient(135deg, transparent 0 5px, var(--rail) 5px 7px); }

@media (max-width: 480px) {
  .ln-card, .ln-sum { padding: 18px 16px 20px; }
  .ln-acts .gm-btn { width: 100%; }
  .ln-spec { margin: 0 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .ln-card.enter, .ln-sum.enter, .ln-reveal.pop, .ln-pips li.hit, .ln-pips li.miss { animation: none; }
  .ln-spec .handle, .ln-pips li { transition: none; }
}
