/* Kairotick Academy: lesson, course and hub pages. Builds on /assets/site.css tokens (ink, yellow, violet). */
.ac { max-width: 1180px; margin: 0 auto; padding: 28px 16px 80px; }
.ac .crumb { font-size: 14.5px; color: var(--graphite); margin: 0 0 18px; }
.ac .crumb a { color: var(--ink2); }
.ac-kick { margin: 0 0 10px; font-size: 13.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--a1); }
.ac h1 { font-size: clamp(32px, 5.2vw, 52px); line-height: 1.06; margin: 0 0 16px; max-width: 900px; }
.ac-dek { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.55; color: var(--ink2); max-width: 780px; margin: 0 0 14px; }
.ac .kt-by { margin: 0 0 6px; font-size: 14px; color: var(--graphite); }
.ac-dots { display: flex; gap: 6px; margin: 0 0 22px; max-width: 320px; }
.ac-dots i { flex: 1; height: 6px; border-radius: 6px; background: var(--rule2); }
.ac-dots i.done { background: #c9bfff; }
.ac-dots i.on { background: var(--grad); }

.ac-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; margin-top: 30px; }
@media (min-width: 1060px) { .ac-grid { grid-template-columns: minmax(0, 720px) 290px; justify-content: space-between; } }

/* reading column */
.ac-body { min-width: 0; }
.ac-body p, .ac-body li { font-size: 18px; line-height: 1.72; color: var(--ink2); }
.ac-body p { margin: 0 0 20px; }
.ac-body strong { color: var(--ink); font-weight: 650; }
.ac-body h2 { font-size: clamp(25px, 3.4vw, 33px); line-height: 1.15; margin: 56px 0 18px; scroll-margin-top: 84px; }
.ac-body h3 { font-size: 21px; line-height: 1.3; margin: 34px 0 12px; }
.ac-body ul, .ac-body ol { margin: 0 0 22px; padding-left: 24px; display: grid; gap: 8px; }
.ac-body a { color: var(--ink); text-decoration-color: var(--a1); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }

/* phone table of contents */
.ac-toc-m { margin: 0 0 28px; border: 1px solid var(--rule2); border-radius: 14px; background: var(--sheet); padding: 0 18px; }
.ac-toc-m summary { font-weight: 650; padding: 14px 0; }
.ac-toc-m ol { margin: 0 0 14px; padding-left: 22px; gap: 4px; }
.ac-toc-m li { font-size: 16px; }
@media (min-width: 1060px) { .ac-toc-m { display: none; } }

/* sticky side table of contents */
.ac-side { display: none; }
@media (min-width: 1060px) { .ac-side { display: block; } }
.ac-stick { position: sticky; top: 90px; }
.ac-side-t { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--graphite); }
.ac-side ol { list-style: none; margin: 0 0 22px; padding: 0 0 0 2px; border-left: 2px solid var(--rule2); display: grid; gap: 2px; }
.ac-side li a { display: block; padding: 7px 0 7px 14px; margin-left: -2px; border-left: 2px solid transparent; font-size: 15px; line-height: 1.35;
  color: var(--graphite); text-decoration: none; }
.ac-side li a:hover { color: var(--ink); }
.ac-side li a.on { color: var(--ink); font-weight: 650; border-left-color: var(--a1); }
.ac-next { display: flex; justify-content: center; gap: 8px; padding: 13px 18px; border-radius: 999px; background: var(--grad); color: #fff;
  font-weight: 650; text-decoration: none; }

/* illustrations, charts, tables */
.ac-art { margin: 30px 0 34px; }
.ac-art img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--rule); background: #fff; }
.ac-chart, .ac-table { margin: 28px 0 32px; }
.ac-chart figcaption, .ac-table figcaption { font-weight: 650; color: var(--ink); margin: 0 0 12px; font-size: 16.5px; }
.ac-bars { display: grid; gap: 12px; padding: 20px 18px; background: #fff; border: 1px solid var(--rule); border-radius: 18px; }
.ac-bar { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 12px; }
.ac-bar .cl { font-size: 15px; font-weight: 600; color: var(--ink2); text-align: right; white-space: nowrap; }
.ac-bar .tr { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ac-bar i { display: block; height: 22px; min-width: 4px; border-radius: 5px; background: var(--ink); flex: none; }
.ac-bar i.hi { background: var(--red); }
.ac-bar .cv { font-size: 15px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 420px) { .ac-bar { grid-template-columns: 92px minmax(0, 1fr); gap: 8px; } .ac-bar .cl, .ac-bar .cv { font-size: 14px; } }
.ac-chart-n { font-size: 14.5px !important; line-height: 1.5 !important; color: var(--graphite) !important; margin: 10px 0 0 !important; }
.ac-table td { font-variant-numeric: tabular-nums; }
.ac-table td b.neg { color: var(--red); }
.ac-table th, .ac-table td { white-space: normal; }

/* boxes */
.ac-box { margin: 26px 0 30px; padding: 20px 22px 4px; border-radius: 16px; background: var(--sheet); border: 1px solid var(--rule); }
.ac-box-t { font-size: 13px !important; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--graphite) !important; margin: 0 0 10px !important; }
.ac-ex { border-left: 5px solid var(--yellow); border-radius: 4px 16px 16px 4px; }
.ac-note { background: #fff; border-style: dashed; border-color: var(--rule2); }
.ac-mt5 { background: #f3f0ff; border-color: #ddd5ff; }
.ac-formula { background: var(--ink); border: 0; padding: 26px 24px 8px; }
.ac-formula p { color: #fff !important; font-size: clamp(19px, 2.6vw, 23px) !important; line-height: 1.45 !important; }
.ac-formula strong { color: #fff !important; }

/* key takeaways */
.ac-keys { margin: 52px 0 10px; padding: 26px 24px 8px; border-radius: 18px; border: 1px solid var(--rule2); border-top: 5px solid var(--ink); background: #fff; }
.ac-keys h2 { margin: 0 0 16px !important; font-size: 26px !important; }
.ac-keys ul.keys { list-style: none; padding: 0; gap: 12px; }
.ac-keys ul.keys li { position: relative; padding-left: 34px; }
.ac-keys ul.keys li::before { content: ""; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--yellow);
  -webkit-mask: radial-gradient(circle, #000 99%, transparent 100%); }
.ac-keys ul.keys li::after { content: ""; position: absolute; left: 6px; top: 10px; width: 6px; height: 10px; border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

/* questions */
.ac-faq { margin-top: 48px; }
.ac-faq details summary { font-size: 18px; }
.ac-faq details p { font-size: 17px; }

/* TradeWarden box */
.ac-tw { margin: 54px 0 26px; padding: 28px 26px 22px; border-radius: 22px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #3b2a8f 0%, #141a2e 55%); }
.ac-tw h2 { color: #fff; margin: 4px 0 12px !important; font-size: clamp(24px, 3.2vw, 30px) !important; }
.ac-tw p { color: #d9dcf0 !important; font-size: 17px !important; }
.ac-tw-k { font-size: 13px !important; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--yellow) !important; margin: 0 !important; }
.ac-tw-b { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 6px 0 16px; }
.ac-tw .btn { background: var(--yellow); color: var(--ink); }
.ac-tw .btn:hover { background: #ffd31a; }
.ac-tw-free { color: #fff !important; font-weight: 600; text-decoration-color: rgba(255,255,255,.5) !important; }
.ac-tw-s { font-size: 13.5px !important; color: #9ea4c4 !important; margin: 0 !important; }

/* prev / next and the course list */
.ac-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 30px 0; }
.ac-nav a, .ac-nav .soon { display: grid; gap: 4px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--rule2); text-decoration: none; color: var(--ink); }
.ac-nav a:hover { border-color: var(--a1); }
.ac-nav .k { font-size: 13px; color: var(--graphite); }
.ac-nav b { font-size: 16.5px; line-height: 1.3; }
.ac-nav-next { text-align: right; }
.ac-nav .soon { opacity: .6; }
.ac-nav .soon-t { font-size: 13px; color: var(--graphite); }
@media (max-width: 560px) { .ac-nav { grid-template-columns: 1fr; } .ac-nav-next { text-align: left; } }
.ac-course { margin: 36px 0 20px; padding: 22px 22px 8px; border-radius: 18px; background: var(--sheet); }
.ac-course h2 { font-size: 21px !important; margin: 0 0 12px !important; }
.ac-course ol { list-style: none; padding: 0; gap: 2px; }
.ac-course li { font-size: 16px !important; }
.ac-course li a { color: var(--ink2); text-decoration: none; }
.ac-course li.cur a { color: var(--ink); font-weight: 700; }
.ac-course li.soon { color: #98a0b3; }
.ac-course li.soon span { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; margin-left: 6px; }
.ac-risk { font-size: 13.5px !important; line-height: 1.55 !important; color: var(--graphite) !important; }

/* hub and course pages */
.ac-hub { max-width: 980px; }
.ac-hub > .btn { margin: 8px 0 28px; }
.ac-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 32px; }
.ac-card { display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: 20px; border: 1px solid var(--rule2); background: #fff; text-decoration: none; color: var(--ink2); }
a.ac-card:hover { border-color: var(--a1); box-shadow: 0 18px 50px rgba(30, 20, 80, .08); }
.ac-card b { font-size: 21px; line-height: 1.25; color: var(--ink); }
.ac-card .ac-kick { margin: 0; }
.ac-card-go { font-weight: 650; color: var(--a1); margin-top: 6px; }
.ac-card.soon { background: var(--sheet); border-style: dashed; }
.ac-lessons { list-style: none; margin: 10px 0 30px; padding: 0; display: grid; gap: 10px; }
.ac-lessons li a, .ac-lessons li.soon { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; padding: 14px 18px;
  border-radius: 16px; border: 1px solid var(--rule2); text-decoration: none; color: var(--ink); background: #fff; }
.ac-lessons li a:hover { border-color: var(--a1); }
.ac-lessons li.soon { background: var(--sheet); color: #8a92a6; border-style: dashed; }
.ac-lessons .n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--sheet); font-weight: 700; }
.ac-lessons li a .n { background: var(--yellow); }
.ac-lessons .m { font-size: 14px; color: var(--graphite); white-space: nowrap; }
.ac-lessons b { font-size: 17px; line-height: 1.3; }
