/* "How AJO Decisioning works" snack-time page. Scoped under .treats; light theme like site.css. */
.treats {
  --surface: #ffffff; --ink: #0f172a; --muted: #475569; --line: #e2e8f0;
  --sky: #2f7bbf; --sky-soft: #e1eef9; --sun: #f2b234; --sun-soft: #fcf0d4;
  --leaf: #3a9657; --berry: #d6475a; --grape: #7a57be; --mango: #ee8a34; --melon: #6cb04a;
  --cracker: #d9ad6e; --face: #f1c9a2; --wood: #b98352;
  --kid: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  display: grid; gap: 3rem; padding-block: 2.5rem 4rem; color: var(--ink);
}
.treats > * { min-width: 0; }
.treats section { display: grid; gap: 1.1rem; }
.treats section > * { min-width: 0; }
.treats h2, .treats h3 { font-family: var(--kid); line-height: 1.15; margin: 0; text-wrap: balance; }
.treats h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); font-weight: 600; }
.treats h3 { font-size: 1.15rem; font-weight: 600; }
.treats p { margin: 0; max-width: 64ch; }
.treats a { color: var(--sky); }
.treats .waitlist-nudge { margin: 0 0 1.5rem; max-width: none; }
.treats .kicker { font: 600 0.8rem/1 var(--kid); letter-spacing: 0.06em; text-transform: uppercase; color: var(--sky); }
.treats .chip { display: inline-block; justify-self: start; font-weight: 600; font-size: 0.74rem; line-height: 1.6; padding: 0 0.6rem; border-radius: 99px; background: var(--sky-soft); color: var(--sky); white-space: nowrap; }
.treats svg.ill { display: block; width: 100%; height: auto; }

.treats .scene { background: var(--surface); border: 2px solid var(--line); border-radius: 22px; padding: 0.75rem; max-width: 640px; }

.treats .ready { display: grid; grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr)); gap: 1rem; }
.treats .rcard { background: var(--surface); border: 2px solid var(--line); border-radius: 18px; padding: 1.1rem; display: grid; gap: 0.7rem; align-content: start; }
.treats .rcard .pic { height: 130px; display: grid; place-items: center; background: var(--sky-soft); border-radius: 14px; }
.treats .rcard .pic svg { height: 112px; width: auto; max-width: 100%; }
.treats .rcard p { font-size: 0.97rem; }
.treats .card-tag, .treats .clip { background: var(--sun-soft); border-radius: 12px; padding: 0.6rem 0.8rem; font-size: 0.9rem; display: grid; gap: 0.15rem; }
.treats .card-tag b { font-family: var(--kid); font-weight: 600; }
.treats .clip ol { margin: 0; padding-left: 1.2rem; }

.treats .steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.3rem 1rem; counter-reset: s; }
.treats .steps > li { counter-increment: s; background: var(--surface); border: 2px solid var(--line); border-radius: 18px; padding: 1rem 1.1rem 1.1rem; display: grid; gap: 0.55rem; align-content: start; position: relative; }
.treats .steps > li::before { content: counter(s); position: absolute; top: -0.85rem; left: 1rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--sun); color: #2a1f05; font: 700 1rem/2rem var(--kid); text-align: center; }
.treats .steps .icon { height: 70px; display: flex; align-items: flex-end; margin-top: 0.4rem; }
.treats .steps .icon svg { height: 64px; width: auto; }
.treats .steps p { font-size: 0.96rem; }
.treats .checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; font-size: 0.92rem; }
.treats .checks li::before { content: "✓ "; color: var(--leaf); font-weight: 700; }

.treats .lineup { background: var(--surface); border: 2px solid var(--line); border-radius: 22px; padding: 1.2rem; display: grid; gap: 1.1rem; }
.treats .row { display: grid; gap: 0.5rem; }
.treats .row h3 { font-size: 1.02rem; }
.treats .who { color: var(--muted); font-size: 0.9rem; }
.treats .treat-row { display: flex; flex-wrap: wrap; gap: 0.6rem; min-height: 92px; }
.treats .treat { display: grid; justify-items: center; gap: 2px; width: 74px; padding: 6px 4px 8px; border-radius: 14px; border: 2px solid transparent; transition: opacity .2s, border-color .2s, background-color .2s; }
.treats .treat svg { width: 44px; height: 44px; }
.treats .treat .nm { font-size: 0.82rem; font-weight: 700; }
.treats .treat .st { font: 600 0.8rem var(--kid); color: var(--muted); font-variant-numeric: tabular-nums; }
.treats .treat.skip { opacity: 0.4; }
.treats .treat.skip .nm { text-decoration: line-through; }
.treats .treat.kept { border-color: var(--line); }
.treats .treat.won { border-color: var(--leaf); background: rgba(58, 150, 87, 0.12); }
.treats .treat.won .st { color: var(--leaf); }
.treats .final .treat:not(.won) { opacity: 0.55; }
.treats .groups { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1rem; }
.treats .hands { border: 2px dashed var(--sky); border-radius: 16px; padding: 0.9rem; display: grid; gap: 0.8rem; }
.treats .solo { border: 2px dashed var(--line); border-radius: 16px; padding: 0.9rem; display: grid; gap: 0.8rem; align-content: start; }
.treats .picker { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.treats .picker-label { font-weight: 700; }
.treats .picker button { font: 600 1rem var(--kid); width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; padding: 0; }
.treats .picker button[aria-pressed="true"] { background: var(--sun); border-color: var(--sun); color: #2a1f05; }
.treats .picker button:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.treats .moral { background: var(--sun-soft); border-radius: 14px; padding: 0.9rem 1.1rem; font-weight: 600; max-width: none; }

.treats .gloss { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.treats .gloss-part { display: grid; gap: 0.5rem; align-content: start; min-width: 0; }
.treats .gloss-part h3 { font-size: 1rem; }
.treats .tbl { overflow-x: auto; background: var(--surface); border: 2px solid var(--line); border-radius: 16px; }
.treats table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.treats th, .treats td { text-align: left; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.treats th { font: 600 0.85rem var(--kid); color: var(--muted); }
.treats tr:last-child td { border-bottom: 0; }
.treats td:first-child { font-weight: 700; }

.treats .treats-foot { border-top: 2px solid var(--line); padding-top: 1.2rem; color: var(--muted); font-size: 0.92rem; display: grid; gap: 0.5rem; }
.treats .treats-foot p { max-width: 80ch; }
.treats .treats-foot .more { font-weight: 600; font-size: 1rem; }

@media (max-width: 760px) {
  .treats .groups, .treats .gloss { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .treats .treat { transition: none; } }
