/* Skill-tree and plan pages (generated by scripts/site/build_site.py).
   Builds on /tools/tools.css; same tokens. */

.answer { max-width: 760px; }
.answer b { color: var(--ink); font-weight: 600; }
.updated { font-size: 13px; color: var(--ink-3); margin-top: 14px; }
.display.sub { font-size: clamp(30px, 4vw, 44px); margin: 12px 0 14px; }
.display.sub em { font-size: .62em; vertical-align: .18em; }
.note { font-size: 15.5px; margin-bottom: 26px; max-width: 760px; }

/* Skill page layout: ladder left, article right */
.guide { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: start; padding-bottom: 40px; }
.guide .article { padding-bottom: 0; }
.guide .article h2:first-child { margin-top: 0; }
.side { position: sticky; top: 88px; }
@media (max-width: 900px) { .guide { grid-template-columns: 1fr; } .side { position: static; } }

/* The tree as a ladder */
.ladder { list-style: none; position: relative; padding: 0; margin: 0; }
.ladder::before { content: ''; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: linear-gradient(var(--purple), rgba(168,107,255,.15)); }
.step { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding-bottom: 22px; }
.dot { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--night); color: #C9A6FF; border: 2px solid var(--purple); position: relative; z-index: 1; }
.step:first-child .dot { background: var(--purple); color: #fff; }
.step-body { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.step-tier { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.step h3 { font-family: var(--display); font-stretch: 82%; font-weight: 850; text-transform: uppercase; font-size: 26px; line-height: 1; margin-bottom: 12px; }
.step .chal { border: 1px solid rgba(168,107,255,.4); background: rgba(168,107,255,.08); border-radius: 12px; padding: 10px 12px; }
.step .chal small { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #7B45C9; margin-bottom: 2px; font-weight: 700; }
.step .chal b { display: block; font-size: 16px; }
.step .chal span { font-size: 14px; color: var(--ink-2); }
.opens { font-size: 13.5px; color: var(--ink-3); margin-top: 10px; }
.step details { margin-top: 12px; }
.step summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--red); }
.step summary:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 4px; }
.drills { list-style: none; margin-top: 10px; display: grid; gap: 10px; }
.drills li { font-size: 14.5px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 10px; }
.drills b { color: var(--ink); font-weight: 600; }
.drills span { color: var(--ink-3); margin-left: 6px; }
.drills small { display: block; font-size: 13.5px; margin-top: 2px; }

/* Reveal the tree node by node. No animation without motion preference
   support, and nothing is hidden unless the browser can bring it back. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: .35; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .step { animation: rise .5s ease both; animation-delay: calc(min(var(--i), 12) * 70ms); }
}

/* Plan pages */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 18px; margin-top: 26px; max-width: 860px; background: var(--card); }
.facts div { padding: 14px 16px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; }
.facts dt { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.facts dd { font-weight: 600; font-size: 15.5px; margin-top: 2px; }
@media (max-width: 700px) { .facts { grid-template-columns: 1fr 1fr; } .facts div:nth-child(3) { border-left: 0; } .facts div:nth-child(n+3) { border-top: 1px solid var(--line); } }
.sessions { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 30px; }
.session-card { background: var(--night); color: var(--cream); border-radius: 20px; padding: 20px; }
.session-card h3 { font-family: var(--display); font-stretch: 82%; font-weight: 850; text-transform: uppercase; font-size: 24px; margin-bottom: 10px; }
.session-card ol { list-style: none; display: grid; }
.session-card li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--night-line); font-size: 14.5px; }
.session-card li b { font-weight: 600; }
.session-card li span { color: rgba(240,230,211,.6); white-space: nowrap; }
.session-card .wc { font-size: 13px; color: rgba(240,230,211,.55); margin-top: 8px; }

/* App call to action */
.cta-card { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; background: var(--night); color: var(--cream); border-radius: 22px; padding: 20px 22px; margin-top: 32px; }
.cta-card .icon { width: 56px; height: 56px; border-radius: 13px; }
.cta-card > div { flex: 1; min-width: 200px; }
.cta-card b { font-size: 17px; }
.article .cta-card p { color: rgba(240,230,211,.75); font-size: 14.5px; margin: 2px 0 0; }
.cta-card .badge img { height: 45px; width: auto; }
