/* Live-site additions on top of v2.css + lms.css: infographics, course cover,
   citation chips, catalogue rows, ad units. Same tokens: teal #00A0AA / #007C85,
   deep teal #005A61, orange #F4A234, ink #14202A, Inter. */

/* citations */
body.v2 .lms-cites { white-space: normal; }
body.v2 a.lms-cite { display: inline-block; margin: 0 0 0 3px; padding: 0 6px; border-radius: 9px; font-size: 11px; line-height: 17px; font-weight: 600;
  color: #005A61; background: #E5F4F5; text-decoration: none; vertical-align: 1px; }
body.v2 a.lms-cite:hover { background: #00A0AA; color: #fff; }
body.v2 .lms-sec table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
body.v2 .lms-sec th, body.v2 .lms-sec td { border: 1px solid #E3E9EC; padding: 8px 10px; text-align: left; vertical-align: top; }
body.v2 .lms-sec th { background: #F3F8F9; font-weight: 600; }
body.v2 .lms-sec ul, body.v2 .lms-sec ol { margin: 0 0 16px 20px; }
body.v2 .lms-sec li { margin: 0 0 6px; color: #3A4A55; line-height: 24px; font-size: 15px; }
body.v2 .lms-lead p { font-size: 17px; line-height: 28px; color: #14202A; }
body.v2 .lms-box ul { margin: 6px 0 0 18px; }
body.v2 .lms-box li { margin: 0 0 6px; font-size: 14.5px; line-height: 22px; }

/* infographics */
body.v2 .lms-ig { margin: 26px 0; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(20,32,42,.05), 0 10px 28px rgba(20,32,42,.08); border: 1px solid #E3EEF0; }
body.v2 .lms-ig-h { background: linear-gradient(120deg, #007C85 0%, #005A61 100%); color: #fff; padding: 16px 20px 14px; position: relative; }
body.v2 .lms-ig-h::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(244,162,52,.25); }
body.v2 .lms-ig-k { display: inline-block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: #14202A; background: #F4A234; border-radius: 10px; padding: 1px 8px; margin-bottom: 6px; }
body.v2 .lms-ig-h b { display: block; font-size: 18px; line-height: 24px; }
body.v2 .lms-ig-h > span:last-child:not(.lms-ig-k) { display: block; font-size: 13.5px; opacity: .88; margin-top: 2px; }
body.v2 .lms-ig figcaption { font-size: 12px; color: #6B7A84; padding: 0 20px 14px; }
body.v2 .lms-ig ol, body.v2 .lms-ig ul { list-style: none; margin: 0; padding: 18px 20px 10px; }

body.v2 .lms-ig-steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
body.v2 .lms-ig-steps li { counter-increment: s; background: #F3F9FA; border-radius: 10px; padding: 40px 14px 14px; position: relative; }
body.v2 .lms-ig-steps li::before { content: counter(s); position: absolute; left: 14px; top: 10px; width: 24px; height: 24px; border-radius: 50%; background: #F4A234; color: #14202A; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
body.v2 .lms-ig li b { display: block; font-size: 14.5px; line-height: 20px; color: #005A61; margin-bottom: 4px; }
body.v2 .lms-ig li span { display: block; font-size: 13.5px; line-height: 20px; color: #3A4A55; }

body.v2 .lms-ig-time li { position: relative; padding: 0 0 16px 30px; border-left: 2px solid #BFE3E6; margin-left: 8px; }
body.v2 .lms-ig-time li:last-child { border-color: transparent; }
body.v2 .lms-ig-time li::before { content: ""; position: absolute; left: -8px; top: 1px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid #00A0AA; }
body.v2 .lms-ig-time li:nth-child(even)::before { border-color: #F4A234; }

body.v2 .lms-ig-check { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 18px; }
body.v2 .lms-ig-check li { padding-left: 32px; position: relative; }
body.v2 .lms-ig-check li::before { content: ""; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 6px; background: #00A0AA url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.3l3 3L15 6.5' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

body.v2 .lms-ig-cmp { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; padding: 18px 20px 10px; }
body.v2 .lms-ig-col { border-radius: 10px; padding: 14px; background: #F3F9FA; border-top: 4px solid #00A0AA; }
body.v2 .lms-ig-col:nth-child(even) { background: #FFF6E9; border-top-color: #F4A234; }
body.v2 .lms-ig-col b { display: block; color: #14202A; font-size: 15px; margin-bottom: 6px; }
body.v2 .lms-ig-col span { font-size: 13.5px; line-height: 20px; color: #3A4A55; }

body.v2 .lms-ig-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; padding: 18px 20px 10px; }
body.v2 .lms-ig-fig { border-radius: 10px; padding: 14px; background: #F3F9FA; text-align: left; }
body.v2 .lms-ig-fig b { display: block; font-size: 26px; line-height: 30px; color: #007C85; font-weight: 700; }
body.v2 .lms-ig-fig .t { font-weight: 600; color: #14202A; font-size: 13.5px; }
body.v2 .lms-ig-fig span { display: block; font-size: 13px; line-height: 19px; color: #3A4A55; margin-top: 4px; }

/* course cover */
.lms-cover { width: 200px; height: auto; flex: 0 0 auto; filter: drop-shadow(0 12px 22px rgba(0,0,0,.25)); }
.lms-cover-t { font: 700 22px/27px Inter, sans-serif; color: #fff; letter-spacing: -.01em; }
body.v2 .lms-hub-top { display: flex; gap: 32px; align-items: center; }
body.v2 .lms-hub-top > div { flex: 1 1 auto; min-width: 0; }
@media (max-width: 760px) { body.v2 .lms-hub-top .lms-cover { display: none; } }
body.v2 .lms-ccard-cover .lms-ccard-img { display: block; background: linear-gradient(160deg, #EAF6F7, #FFF6E9); border-radius: 10px; padding: 14px 0; text-align: center; margin-bottom: 10px; }
body.v2 .lms-ccard-cover .lms-cover { width: 130px; }

/* home */
body.v2 .lms-hero-sub { color: #fff; opacity: .92; font-size: 17px; line-height: 26px; max-width: 640px; margin: -6px 0 18px; }
body.v2 .lms-hero-q .v2-hero-field input { width: 100%; height: 100%; min-height: 48px; border: 0; outline: 0; background: transparent; font: 500 15px Inter, sans-serif; padding: 0 14px; color: #14202A; }
body.v2 .lms-hero-q { grid-template-columns: 1fr auto; }
body.v2 .lms-how { list-style: none; counter-reset: h; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 0; padding: 0; }
body.v2 .lms-how li { counter-increment: h; background: #fff; border: 1px solid #E3E9EC; border-radius: 12px; padding: 18px 16px 16px 60px; position: relative; }
body.v2 .lms-how li::before { content: counter(h); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: #00A0AA; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
body.v2 .lms-how b { display: block; color: #14202A; margin-bottom: 4px; }
body.v2 .lms-how span { font-size: 14px; line-height: 21px; color: #3A4A55; }

/* catalogue */
body.v2 .lms-catq { display: flex; gap: 8px; max-width: 520px; margin-top: 12px; }
body.v2 .lms-catq input { flex: 1; height: 42px; border-radius: 8px; border: 0; padding: 0 12px; font: 500 15px Inter, sans-serif; }
body.v2 .lms-catn { font-size: 13px; font-weight: 500; color: #6B7A84; margin-left: 6px; }
body.v2 .lms-catlist { list-style: none; margin: 0 0 8px; padding: 0; border-top: 1px solid #E3E9EC; }
body.v2 .lms-catrow { display: flex; gap: 16px; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #E3E9EC; }
body.v2 .lms-catrow b { display: block; font-size: 15px; color: #14202A; line-height: 21px; }
body.v2 .lms-catrow b a { color: #007C85; }
body.v2 .lms-catrow > div > span { display: block; font-size: 13.5px; color: #5B6B76; line-height: 20px; margin-top: 2px; }
body.v2 .lms-catrow.is-ready { background: linear-gradient(90deg, #F0F9FA, transparent); }
body.v2 .lms-catrow-act { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: 0 0 auto; }
body.v2 .lms-catrow-off { font-size: 12px; color: #6B7A84; }
body.v2 .lms-catsec { margin-bottom: 26px; }
@media (max-width: 600px) { body.v2 .lms-catrow { flex-direction: column; align-items: flex-start; } body.v2 .lms-catrow-act { align-items: flex-start; flex-direction: row; } }

/* questions */
body.v2 .lms-fb-why li.is-key b { background: #12715A; color: #fff; }
body.v2 .lms-fb-why li.is-pick b { background: #B42318; color: #fff; }
body.v2 .lms-q.is-later { animation: lms-in .25s ease-out; }
@keyframes lms-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
body.v2 .lms-qdone { background: #E6F4EF; border-radius: 12px; padding: 16px; margin-top: 12px; }
body.v2 .lms-opt.is-picked { border-color: #007C85; background: #E5F4F5; }
body.v2 .lms-run-bar { display: flex; justify-content: space-between; font-size: 14px; color: #3A4A55; margin-bottom: 8px; font-weight: 600; }
body.v2 .lms-run .lms-bar { margin-bottom: 16px; }
body.v2 .lms-result-stats { margin-bottom: 18px; }
body.v2 .lms-weak { margin: 0 0 18px 18px; }
body.v2 .lms-weak span { color: #B42318; font-size: 13px; }
body.v2 .lms-review { margin: 0 0 18px 18px; }
body.v2 .lms-review li { margin-bottom: 8px; }
body.v2 .lms-review li.is-ok summary b { color: #12715A; }
body.v2 .lms-review li.is-bad summary b { color: #B42318; }
body.v2 .lms-review summary { cursor: pointer; line-height: 22px; }
body.v2 .lms-saved { margin: 0 0 0 18px; }

/* flashcard flip state set by script */
body.v2 .lms-flash.is-flipped .lms-flash-in { transform: rotateY(180deg); }

/* ad units: always labelled, never next to answer options */
body.v2 .lms-adu { margin: 22px 0; text-align: center; min-height: 100px; }
body.v2 .lms-adu.is-rail { margin: 0; min-height: 600px; }
body.v2 .lms-adu-l { display: block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #8A98A2; margin-bottom: 4px; }
body.v2 .lms-adslot:empty { display: none; }
body.v2 .v2-foot-ad:empty, body.v2 .v2-home-ad:empty { display: none; }
body.v2 .lms-prose h2 { margin-top: 26px; }

body.v2 .lms-hero-sub { margin-left: auto; margin-right: auto; text-align: center; }

/* feedback box */
body.v2 .lms-fbk { margin: 34px auto 6px; }
body.v2 .lms-fbk-in { background: #fff; border: 1px solid #E3E9EC; border-radius: 14px; padding: 18px 20px; max-width: 760px; margin: 0 auto; }
body.v2 .lms-fbk-q { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
body.v2 .lms-fbk h2 { font-size: 17px; margin: 0; color: #14202A; }
body.v2 .lms-fbk-votes { display: flex; gap: 8px; }
body.v2 .lms-fbk-votes button[aria-pressed="true"] { background: #007C85; color: #fff; border-color: #007C85; }
body.v2 .lms-fbk-form { display: grid; gap: 10px; margin-top: 14px; }
body.v2 .lms-fbk-form label { font-size: 13.5px; color: #3A4A55; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
body.v2 .lms-fbk-form select, body.v2 .lms-fbk-form textarea, body.v2 .lms-fbk-form input[type=email] { font: 15px Inter, sans-serif; border: 1px solid #CBD5DB; border-radius: 8px; padding: 9px 11px; width: 100%; box-sizing: border-box; }
body.v2 .lms-fbk-form label select { width: auto; }
body.v2 .lms-fbk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
body.v2 .lms-fbk-said { font-size: 14px; color: #12715A; margin-left: 10px; }
body.v2 .lms-fbk-said.is-bad { color: #B42318; }
body.v2 .lms-fbk-alt { margin: 10px 0 0; font-size: 13.5px; color: #5B6B76; }
body.v2 .lms-fbk-open { background: none; border: 0; color: #007C85; font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline; }

/* hero conversation bubbles (desktop and tablet) */
body.v2 .v2-hero { position: relative; }
.hero-chat { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-chat .hc-bubble { position: absolute; left: 0; top: 0; max-width: 240px; background: #fff; color: #2b3a4f;
  font: 450 13.5px/1.45 Inter, system-ui, sans-serif; letter-spacing: -.01em; padding: 10px 15px; border-radius: 14px;
  box-shadow: 0 10px 30px rgba(10,60,70,.18); opacity: 0; transform: translateY(10px) scale(.9); transform-origin: bottom left;
  animation: hcPop 44s infinite both; will-change: opacity, transform; }
.hero-chat .hc-bubble.hc-r { transform-origin: bottom right; }
.hero-chat .hc-bubble b { color: #14202A; font-weight: 650; }
.hero-chat .hc-bubble .hc-brand { color: #007C85; }
.hero-chat .hc-bubble::after { content: ""; position: absolute; left: 24px; bottom: -7px; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); }
.hero-chat .hc-bubble.hc-r::after { left: auto; right: 24px; }
.hero-chat .hc-bubble:nth-child(1) { animation-delay: 1.2s; }
.hero-chat .hc-bubble:nth-child(2) { animation-delay: 5.2s; }
.hero-chat .hc-bubble:nth-child(3) { animation-delay: 9.2s; }
.hero-chat .hc-bubble:nth-child(4) { animation-delay: 13.2s; }
.hero-chat .hc-bubble:nth-child(5) { animation-delay: 17.2s; }
.hero-chat .hc-bubble:nth-child(6) { animation-delay: 21.2s; }
.hero-chat .hc-bubble:nth-child(7) { animation-delay: 25.2s; }
.hero-chat .hc-bubble:nth-child(8) { animation-delay: 29.2s; }
.hero-chat .hc-bubble:nth-child(9) { animation-delay: 33.2s; }
.hero-chat .hc-bubble:nth-child(10) { animation-delay: 37.2s; }
.hero-chat .hc-bubble:nth-child(11) { animation-delay: 41.2s; }
@keyframes hcPop { 0% { opacity: 0; transform: translateY(10px) scale(.85); } 0.8% { opacity: 1; transform: none; } 8.2% { opacity: 1; transform: none; } 9% { opacity: 0; transform: translateY(-8px) scale(.92); } 100% { opacity: 0; } }
@media (max-width: 767px) { .hero-chat { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero-chat { display: none; } }

/* labelled chapter illustrations */
body.v2 .lms-ill { margin: 22px 0 26px; }
body.v2 .lms-ill-pic { position: relative; border-radius: 14px; overflow: hidden; background: #F3F9FA; box-shadow: 0 1px 2px rgba(20,32,42,.05), 0 10px 28px rgba(20,32,42,.08); }
body.v2 .lms-ill-pic img { display: block; width: 100%; height: auto; }
body.v2 .lms-ill-pin { position: absolute; transform: translate(-50%, -50%); width: 28px; height: 28px; border-radius: 50%; background: #F4A234; color: #14202A;
  font: 700 14px/28px Inter, sans-serif; text-align: center; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
body.v2 .lms-ill figcaption { padding: 12px 2px 0; }
body.v2 .lms-ill-cap { font-size: 14px; line-height: 21px; color: #3A4A55; margin: 0 0 8px; }
body.v2 .lms-ill-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
body.v2 .lms-ill-legend li { font-size: 14px; line-height: 21px; color: #3A4A55; padding-left: 32px; position: relative; }
body.v2 .lms-ill-n { position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: #F4A234; color: #14202A; font: 700 12px/22px Inter, sans-serif; text-align: center; }
body.v2 .lms-ill-legend b { color: #005A61; }
@media (max-width: 600px) { body.v2 .lms-ill-pin { width: 22px; height: 22px; font-size: 12px; line-height: 22px; border-width: 2px; } }

body.v2 .lms-steps-list { counter-reset: st; list-style: none; margin: 0 0 18px; padding: 0; }
body.v2 .lms-steps-list li { counter-increment: st; position: relative; padding: 0 0 12px 44px; font-size: 15px; line-height: 24px; color: #3A4A55; }
body.v2 .lms-steps-list li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: #00A0AA; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
body.v2 .lms-prose .lms-answer { margin-bottom: 22px; }
