/* Teaching Tips: the article pages (create-page.py, TEACHING TIPS). The
   header, footer, buttons and waitlist dialog come from styles.css; this
   file adds the reading column and the ten-frame figures, drawn in the
   app's lodge colors like the hero's make-ten scene. */
.tip{max-width:720px;margin:0 auto;padding:44px 20px 64px;color:var(--ink);font-size:18px;line-height:1.65}
.tip h1{font-size:clamp(30px,5vw,42px);line-height:1.15;letter-spacing:-.8px;margin:6px 0 18px}
.tip h2{font-size:24px;line-height:1.25;letter-spacing:-.3px;margin:40px 0 12px;color:#245c3e}
.tip p{margin:0 0 16px;color:var(--body)}
.tip .lede{font-size:20px;color:var(--ink)}
.tip strong{color:var(--ink)}
.tip-kicker{font-size:15px;font-weight:700;letter-spacing:.2px}
.tip .tip-date{margin:-8px 0 20px;font-size:15px}
.tip-kicker a{color:var(--green)}
.tip-kicker a:hover{text-decoration:underline}
.tip ul.tips{padding-left:22px;margin:0 0 16px}
.tip ul.tips li{margin:0 0 10px;color:var(--body)}

/* The facts as chips, like the app's zone guide. */
.fact-list{list-style:none;padding:0;margin:0 0 18px;display:flex;flex-wrap:wrap;gap:8px}
.fact-list li{padding:5px 12px;border-radius:12px;background:#fff;box-shadow:0 1px 3px #0000001f;font-weight:700;font-size:17px;color:#1f2937;white-space:nowrap}

/* The figures: one or more steps, each a stack of ten-frames. */
.tip-figure{margin:22px 0 26px;padding:22px 16px 16px;border-radius:20px;background:var(--mint)}
.steps{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap}
.step{display:flex;flex-direction:column;gap:10px}
.step-arrow{font-size:30px;font-weight:800;color:var(--green)}
.frame-wrap{display:flex;align-items:center;gap:10px}
.frame{display:grid;grid-template-columns:repeat(5,30px);grid-auto-rows:30px;gap:4px;padding:7px;border:3px solid #92400e;border-radius:12px;background:#fef3c7;box-shadow:0 3px 6px #0000001a}
.cell{width:30px;height:30px;border:2px solid #92400e;border-radius:6px;background:#92400eb3;display:grid;place-items:center}
.cell.on{background:#fff}
.cell.on img{width:20px;height:auto}
.cell.mover{border-color:#cf8d28;box-shadow:0 0 0 2px #f2b544}
.cell.left{background:#fff;border-style:dashed;opacity:.75}
.cell.faded img{opacity:.22}
.cell.faded{background:#fffaf0}
/* Three steps across take smaller frames, so the row fits the column. */
.steps-3{gap:8px}
.steps-3 .frame{grid-template-columns:repeat(5,22px);grid-auto-rows:22px;gap:3px;padding:5px}
.steps-3 .cell{width:22px;height:22px}
.steps-3 .cell.on img{width:15px}
.steps-3 .frame-label{font-size:18px}
.frame-label{min-width:28px;font-size:22px;font-weight:800;color:#1f2937}
.tip-figure figcaption{margin-top:14px;text-align:center;font-size:16px;color:var(--body)}

/* 'Practice it in Math Grove', at the end of every article. */
.tip-app{margin-top:44px;padding:26px 24px;border-radius:22px;background:var(--mint)}
.tip-app h2{margin-top:0}
.tip-app .waitlist-button{margin-top:4px}

/* 'More Teaching Tips', under every article. */
.tip-more{margin-top:36px}
.tip-more h2{font-size:20px;margin:0 0 10px}
.tip-more ul{padding-left:20px;margin:0}
.tip-more li{margin:0 0 8px}
.tip-more a{color:var(--green);text-decoration:underline;text-underline-offset:3px}

/* The Teaching Tips index. */
.tip-index{list-style:none;padding:0;margin:26px 0 0;display:grid;gap:16px}
.tip-index a{display:block;padding:20px 22px;border-radius:18px;background:#fff;box-shadow:0 2px 8px #0000001a}
.tip-index a:hover strong{color:var(--green)}
.tip-index strong{display:block;font-size:20px;line-height:1.3;margin-bottom:6px}
.tip-index span{color:var(--body);font-size:16px}

@media (max-width:520px){
  .tip{font-size:17px;padding-top:30px}
  .frame{grid-template-columns:repeat(5,24px);grid-auto-rows:24px;gap:3px;padding:5px}
  .cell{width:24px;height:24px}
  .cell.on img{width:16px}
  .steps{flex-direction:column;gap:6px}
  .step-arrow{transform:rotate(90deg)}
}
