Advocate's Roadmap To Build A Successful Career: From Junior Counsel To Senior Advocate | EduLaw
EduLaw EditorialAdvocate PlaybookA practical, ethical, and legally sound career roadmap for young advocates in India — from law student to senior advocate level practice. Drafting, research, courtroom, niche, ethics and systems.
Advocate Playbook 037 EDULAW Playbook 037 · Career Roadmap Advocate's Roadmap To Build A Successful Career From junior counsel to senior advocate — the path, the practice, the ethics. Success at the Bar is not delivered by a single hearing or a viral post. It is built slowly through skill, discipline, ethics, courtroom learning, drafting, research, client handling and long term credibility . This playbook is written for law students, interns and junior advocates in India who want a serious, honest map of the years ahead. Updated 07 July 2026 18 min read For Indian Advocates Direct Answer A successful advocate's career in India is built in ten sequential stages — foundation, courtroom discipline, drafting, research, client handling, niche building, visibility, argument craft, systems, and finally a shift from junior work to strategy-led practice. The journey typically takes 10 to 15 years of consistent work, and depends more on drafting quality, ethical conduct and courtroom credibility than on fees or followers. The Roadmap In One View Seven career stations, one long walk. 01 Law Student 02 Intern 03 Junior Advocate 04 Briefing Counsel 05 Independent Practitioner 06 Specialist Counsel 07 Senior Level Practice On This Page Meaning of Success 1 · Foundation 2 · Courtroom Discipline 3 · Drafting 4 · Research 5 · Client Handling 6 · Niche 7 · Visibility 8 · Argument Craft 9 · Systems 10 · Senior Practice Common Mistakes 12 Month Plan Checklist FAQs The Real Meaning Of A Successful Legal Career Ask ten young lawyers what success means and most will say money, chamber size, cars or Instagram reach. These are outputs, not the career. A serious advocate measures success by things that survive a bad year. Success at the Bar is essentially the combination of reputation, trust, courtroom credibility, client confidence, legal depth, ethical conduct and consistency . A judge who reads your name on the cause list and expects a reliable presentation. A senior who trusts you with a complex brief. A client who returns after five years. That is career capital. Everything in this playbook is built to protect these seven anchors. If you lose them chasing shortcuts, no designation or fee will restore what is lost. What Success Actually Depends On Drafting quality Very high impact Procedural mastery Very high impact Ethical conduct Very high impact Consistency in court High impact Networking Moderate impact Social media presence Low impact Interactive Timeline The Ten Stages, Click Any Stage STAGE 01 Build your legal foundation Bare Acts, procedure, evidence, limitation, drafting basics. Read the bare Act before any commentary. Understand the CPC, CrPC (now BNSS), Indian Evidence Act (now BSA, 2023), Limitation Act, 1963, and the Constitution before you touch any specialised law. STAGE 02 Learn courtroom discipline Cause list, board movement, briefing, order noting. A junior who tracks the board, notes orders correctly, and knows when the item will be called is more valuable than one who argues loudly but misses the matter. STAGE 03 Master drafting Plaint, WS, bail, writ, affidavit, rejoinder. Drafting is the most durable skill. A well drafted plaint frames the case. A poorly drafted one loses it silently before any argument is heard. STAGE 04 Build research skills Issue identification, ratio, good law verification. Learn to distinguish ratio decidendi from obiter, and to verify whether a judgment is still good law before you cite it in court. STAGE 05 Client handling without losing ethics Facts, fees, confidentiality, expectations. Confidentiality is protected under Section 126 of the Indian Evidence Act (now Section 132 of the BSA, 2023). Every client conversation carries this weight. STAGE 06 Build your niche Choose two to three practice areas after 2–4 years. Generalists survive. Specialists compound. Choose your niche based on interest, mentor access, court exposure, and long term market shape. STAGE 07 Build visibility the right way Writing, teaching, networks — within BCI rules. Rule 36 of the BCI Rules restricts advertisement and solicitation. Build reputation through work, writing and speaking — not through claims of results. STAGE 08 Develop courtroom voice Facts, law, relief. Concede fairly. Argue briefly. The best advocates argue less, not more. Learn to compress a case into 2, 5 and 15 minute versions before you argue any of them. STAGE 09 Build systems, not chaos Cases, calendar, limitation, files, templates. A limitation diary is not optional. A missed limitation is one of the most avoidable and most damaging professional failures. STAGE 10 Senior level practice From task doer to strategy maker. Note that the "Senior Advocate" designation itself is conferred under Section 16 of the Advocates Act, 1961 by the Supreme Court or High Court. What follows here refers to a quality standard, not the formal title. Stage 01 Build Your Legal Foundation Every strong advocate you admire built the foundation quietly. There is no substitute. Before drafting, before arguments, before clients, a young advocate must be fluent in the primary architecture of Indian law. 01 Bare Act reading Read the section, the proviso, the explanation and the illustration in that order. Commentaries follow, not lead. 02 Case law reading Read the facts, the issue, the arguments, the ratio and the operative direction. Skip the paragraphs that only quote. 03 Procedural law CPC for civil, BNSS for criminal, along with special procedural rules of your court. Procedure decides most matters. 04 Court hierarchy Trial courts, District Courts, High Courts, Supreme Court, tribunals, appellate authorities. Know appeals and revisions. 05 Limitation The Limitation Act, 1963 governs most timelines. Special statutes carry their own. Always check both. 06 Evidence The Bharatiya Sakshya Adhiniyam, 2023 replaces the Indian Evidence Act. Learn burden, presumptions and admissibility. 07 Drafting basics Cause of action, parties, relief, verification, prayer. Start with short applications before larger pleadings. 08 Legal research Statute first, then binding precedent, then persuasive authority. Avoid citing everything you find. How Foundation Looks Across Practice Areas In a civil suit , foundation means knowing Order VI and VII of the CPC well enough to spot a defective plaint before filing. In a criminal matter , it means knowing which stage under the BNSS the case has reached and what bail provisions apply. In a writ petition , it means understanding Articles 226 and 32, alternative remedies, laches and maintainability. In a family case , it means grasping personal law, jurisdiction, and the Family Courts Act. In a commercial dispute , it means the Commercial Courts Act, 2015, its pre-institution mediation requirement, and the timelines it enforces. Stage 02 Learn Courtroom Discipline The first year of practice is not about arguments. It is about presence. A junior advocate learns by watching, listening, tracking and briefing. This is the least glamorous stage and the most important one. What courtroom discipline actually covers Observing court — sit through matters that are not yours. Watch how judges receive different styles. Cause list — read it the night before. Know your item number, court, coram and stage. Board movement — track which item is being called and when yours is likely to be reached. Briefing seniors — a brief must give the senior facts, stage, last order, and the ask, in under two minutes. Carrying files — pleadings, orders, list of dates, index, and the current application on top. Noting orders — dictate verbatim, then read back. Do not paraphrase court directions. Next dates — enter into diary and calendar the same day, with reminders three and one day prior. Judicial temperament — every judge has a preferred style. Note it. Adapt without losing dignity. First Year Junior Advocate — Daily Checklist Reach court 30 minutes before board Carry two copies of every order Highlight your item in the cause list Note next date and stage in diary immediately Never leave court without checking board again Brief senior with facts, stage and ask Review file the night before every hearing Keep a small notebook for judicial observations Stage 03 Master Drafting Drafting is the single most portable and permanent skill in litigation. A senior advocate looks at a junior's plaint before they look at anything else. Drafting cannot be taught by templates alone — it is built by reading old files, drafting, receiving corrections, and repeating. Draft Type Purpose Common Mistake Senior Approach Legal Notice State grievance, demand, and reserve rights before suit Vague demand, no timeline, no basis in law Precise facts, specific relief, statutory backing, defined response time Plaint Institute a civil suit stating cause of action Missing cause of action or valuation, weak prayer Order VI–VII compliance, clean parties, precise relief, limitation shown Written Statement Defend by admission, denial, and set-off Bare denial, no specific reply to each paragraph Para-wise reply, preliminary objections, counter-claim if warranted Bail Application Seek release under BNSS provisions Overloaded facts, no triple test analysis Crisp facts, offence gravity, flight risk, evidence tampering addressed Anticipatory Bail Pre-arrest protection under BNSS Section 482 Weak apprehension, no ground for custodial interrogation defence Clear apprehension, cooperation offer, precedent tailored to facts Writ Petition Enforce rights under Article 226/32 Alternative remedy ignored, laches, factual disputes raised Maintainability shown first, focused legal grounds, narrow prayer Affidavit Verify facts on oath Mixing legal argument with fact, defective verification Numbered facts only, personal knowledge stated, proper attestation Rejoinder Reply to opponent's reply Repeats plaint, introduces new case Point-wise response to reply only, no case expansion Interim Application Seek urgent protection No prima facie case shown, balance of convenience missing Three-test framework, urgency demonstrated, precise interim prayer Written Submissions Summarise argument for court Emotional narrative, too long, no citations mapped to issues Issue-wise, paragraph limit respected, citations pinned to points Drafting principle: The pleading must tell a court what happened, why it is wrong in law, and what you want done, without any wasted sentence. Cut every adjective that adds nothing. Stage 04 Build Research Skills Legal research is not "find any judgment that supports us". It is a discipline of asking the right question, framing the issue, finding the applicable statute, and verifying that the authority still holds. 01 Find the issue Convert the client's story into a legal question 02 Locate statute General law, then special law, then rules 03 Find precedent Supreme Court, then jurisdictional High Court 04 Isolate ratio The rule of law needed to decide the case 05 Verify good law Check for overruling, distinguishing, subsequent Constitution Bench 06 Write case note Facts, issue, ratio, relevance, paragraph reference Ratio versus observation The ratio decidendi is the principle of law on which the court decided the case — it binds. An obiter dictum is a legal observation not essential to the decision — it persuades, it does not bind. Confusing the two is one of the most common junior errors and is quickly noticed by any experienced judge. Is the judgment still good law? Before citing a judgment, check whether it has been overruled by a larger bench, distinguished on facts by later decisions, doubted by co-ordinate benches, or affected by a statutory amendment. A citation that is no longer good law damages credibility for the rest of the hearing. Stage 05 Learn Client Handling — Without Losing Ethics A client is neither a customer nor a friend. The relationship is fiduciary. It is defined by statute, by the Bar Council of India Rules under Section 49 of the Advocates Act, 1961, and by common professional practice. The first client meeting Listen more than you speak. Take facts in chronological order. Ask for documents. Do not commit to an outcome. A young advocate's first ethical failure is usually here — an over-confident answer given to appear knowledgeable. Core ethics in simple language No false promises. No advocate can guarantee an outcome. Predicting a specific verdict is professionally unsafe. Fee clarity. Discuss fees in writing where possible. Ambiguity damages the relationship and invites disputes. Confidentiality. Communication between advocate and client is privileged under Section 132 of the Bharatiya Sakshya Adhiniyam, 2023 (earlier Section 126, Indian Evidence Act, 1872), subject to defined exceptions. Documentation. Keep a signed vakalatnama, engagement note where used, and record of documents received and returned. Written communication. Where possible, confirm important instructions and advice by email. Memory is unreliable, litigation is long. Managing expectations. Tell the client what can go wrong, not just what can go right. That is honest counsel. No solicitation. Rule 36 of the BCI Rules restricts advertising and touting. Reputation is built on work. Practical guidance: If a client asks you to guarantee a bail order, a stay, or a decree, decline politely. Explain likelihoods, not certainties. Advocates who guarantee results usually lose both cases and clients. Stage 06 Build Your Niche Doing everything forever is a strategy for exhaustion. Sometime between year two and year four, most successful advocates begin to concentrate on two or three practice areas. Specialisation compounds — every case in that niche makes the next one faster and better. Below is an interactive niche map. Click any category to filter. The bars represent relative market demand , court exposure , and long term potential as of 2026 in Indian litigation practice — these are directional practical indicators, not statistical claims. All High Demand Heavy Courtroom Advisory Heavy Criminal Litigation Bail, trial, appeal, revision under BNSS & BNS Demand High Civil Disputes Suits, property, contract, injunction Demand Steady Family Law Matrimonial, custody, maintenance Demand High Commercial Litigation Commercial Courts Act, contract, corporate Demand Very High Arbitration Domestic & international under A&C Act, 1996 Demand Very High Insolvency IBC, 2016 practice before NCLT/NCLAT Demand High Tax Litigation Direct & indirect tax, GST, ITAT Demand High Constitutional Law Writ, PIL, fundamental rights Exposure Deep Consumer Law CPA, 2019 before District, State, National forums Entry Accessible Property Disputes Title, partition, tenancy, RERA Demand High Employment Law Industrial disputes, POSH, service law Demand Growing Cyber Law IT Act, data protection under DPDP Act, 2023 Future Strong The Niche Selection Matrix Factor Ask Yourself Why It Matters Interest Would I read on this for free? Litigation is decades long. Interest carries you. Market Demand Is there real work being filed in this area? Passion without demand is a hobby. Mentor Availability Can I find a senior working in this area? Structured learning cuts years off the curve. Court Exposure Will I actually go to court in this practice? Courtroom experience is career capital. Long Term Potential Will this niche grow over 10–15 years? You are building for the second decade, not the first. Stage 07 Build Visibility — The Right Way Visibility as an advocate is not marketing. It is professional presence. Under Rule 36 of the Bar Council of India Rules, an advocate cannot solicit work or advertise. But an advocate can write, speak, teach and build reputation within the boundaries of dignity. ✎ Writing articles Publish clean, honest legal commentary. Avoid client-specific claims and self-praise. § Case notes Summarise recent important judgments. Focus on ratio and practical impact. in LinkedIn presence Professional, factual, sober tone. No claims of success percentages. ▸ Speaking Bar association events, moots, university lectures, panel discussions. ✚ Legal education Teach young lawyers, students, interns. Teaching sharpens thinking. ✽ Networking Build peer relationships. Referrals in law are lifelong. Ethics reminder: Do not publish testimonials, claim success ratios, or share confidential case content for visibility. Rule 36 permits limited information — name, contact, enrolment, area of practice — subject to conditions. Public conduct must maintain the dignity of the profession. Stage 08 Develop Courtroom Voice And Argument Skills Junior advocates over-argue. Senior advocates under-argue. The gap between the two is craft — knowing what to say, in what order, and what to leave out. The core sequence Every oral argument, in every court, in every stage, follows the same underlying sequence — facts first, law second, relief third . Change the order and you lose the judge. Compress the facts too much and you lose the case. Expand them too much and you lose the argument. How to answer judges Answer directly. Do not evade a question by returning to prepared script. If you do not know, say so, and offer to address it after a moment. Concede fairly on points that do not affect your core case. Do not argue when the judge is expressing a view — listen, respond briefly, move on. Prepare three versions of every argument Learn to argue the same case in 2 minutes (for an urgent mention), 5 minutes (for interim orders) and 15 minutes (for main hearings). If you cannot compress it to 2 minutes, you have not understood it well enough. F Facts What happened, in the order it happened. I Issue The legal question the court must decide. L Law Statute or rule that governs the issue. P Precedent Binding authority on point. E Equity Balance of convenience, injustice, urgency. R Relief The precise order sought. Stage 09 Build Systems , Not Chaos A law practice is a workshop. Files, dates, orders, precedents and templates must live in a system that survives your memory and your assistants. The best predictor of a young advocate's ten-year career is the quality of their systems in year three. Advocate Office System Checklist Case tracker with next date, stage, court Calendar with three and one day reminders Dedicated limitation diary Client database with contact and file link Billing record for every matter Standardised file naming — Court_Number_Party_Year Research bank organised by statute and issue Template bank for repetitive drafts Judgment tracker with ratio and paragraph reference Weekly review of pending files Monthly review of limitation and appeal windows Physical and digital backup of every filed paper Non-negotiable: A limitation diary is not optional. Missed limitation is one of the most avoidable and most damaging failures in Indian litigation practice, and is frequently traceable to poor systems, not poor knowledge. Stage 10 From Junior Advocate To Senior Level Practice The transition from junior work to senior work is a shift of role, not just experience. Time alone does not create it. It is created by change in how you think about files, clients and courts. From Task doer ↓ Strategy maker From File carrier ↓ Argument builder From Case reader ↓ Case thinker From Court observer ↓ Court officer From Junior counsel ↓ Trusted counsel A note on designation: The formal title "Senior Advocate" is conferred by the Supreme Court or a High Court under Section 16 of the Advocates Act, 1961 , on advocates whose standing, experience and ability at the Bar merit such distinction. The current designation process broadly follows the framework laid down by the Supreme Court in Indira Jaising v. Supreme Court of India (2017) and subsequent modifications. In this playbook, "senior advocate level practice" is used as a career quality benchmark — the standard of work, thinking and courtroom conduct expected of that level — not as a reference to the formal title. Common Mistakes Young Advocates Must Avoid Ignoring procedure Substantive law without procedure is unusable in court. Copy paste drafting Every case is different. Templates need thinking, not replication. Not reading the file The client's story lives in the file. Never argue on memory alone. Over promising clients Predictions of outcome damage both trust and ethics. Not checking limitation One of the most damaging and most preventable failures. Poor court etiquette Interrupting, over-arguing, not standing. Small habits, large costs. Depending only on seniors Learning from seniors is essential. Hiding behind them is not. Not maintaining records Missing orders and lost files quietly destroy practices. Chasing fame before skill Reputation without substance collapses at the first hard case. Not building ethics early Ethics learned in year twelve is ethics learned too late. Practical 12 Month Roadmap For a junior advocate in the first year of practice. The following is a structured allocation. Real life will not fit neatly — the point is direction, not rigidity. Month 1 — 3 Court Observation & File Reading Attend court daily, observe matters Read three files a week from senior's chamber Learn cause list, board and item tracking Note orders verbatim, cross-check with typed copy Read one bare Act every two weeks Outcome: Fluent in court process and comfortable in courtroom presence. Month 4 — 6 Drafting & Research Draft two applications a week under supervision Prepare case notes on five recent Supreme Court judgments Learn plaint, WS, writ and bail formats Build a personal research bank organised by statute Rework drafts with senior's corrections Outcome: Independent first drafts, structured research habit. Month 7 — 9 Client Handling & Arguments Sit in every client meeting with senior Learn to take facts, prepare chronology, ask for documents Argue small applications with senior's approval Practise 2, 5 and 15 minute versions of a case Begin briefing seniors independently Outcome: First independent court appearances and structured client interaction. Month 10 — 12 Niche Building & Systems Identify two practice areas of interest Read leading judgments and statutes deeply in those areas Set up case tracker, limitation diary, template bank Write one legal article or case note Review year and plan year two goals Outcome: Directional clarity for years 2–3 and a working office system. Young Advocate Career Checklist Copy Checklist Read one bare Act every fortnight Attend court daily in the first year Maintain a personal judgment tracker Keep a dedicated limitation diary Draft two applications weekly under supervision Note every court order verbatim Read the file the night before every hearing Practise 2, 5 and 15 minute versions of arguments Brief seniors in under two minutes Never guarantee an outcome to a client Confirm important advice in writing Sign a vakalatnama for every matter Check whether every cited judgment is still good law Distinguish ratio from obiter before citing Prepare a chronology for every complex file Maintain a case tracker with next date and stage Set three and one day reminders for hearings Build a personal template bank Read one leading judgment a week in your niche Attend at least one Bar association event a month Write one legal article or case note per quarter Never solicit clients — comply with Rule 36 BCI Rules Maintain confidentiality of every client conversation Keep fees clear and documented from day one Review pending files weekly Review limitation and appeal windows monthly Back up all filed papers physically and digitally Choose two niche areas between year two and four Find a serious mentor, not just a senior Protect ethical conduct as a lifelong asset Frequently Asked Questions How long does it take to become a good advocate? Foundational competence in drafting, procedure and courtroom work usually develops over three to five years of consistent practice. Depth in a chosen niche typically takes seven to ten years of focused work. There is no shortcut — time under files is what compounds. Should a young lawyer join a senior chamber? Yes, in most cases. A structured chamber under an experienced advocate accelerates learning of drafting, court craft, client handling and ethics far more than working in isolation. The senior does not need to be famous — they need to teach. Is litigation financially difficult in the beginning? It usually is. Junior advocates in India typically earn modest stipends in the early years, and independent income takes time to stabilise. Financial planning, low fixed costs, and patience are essential. Litigation is a long compounding career, not a fast income career. How should a junior advocate get clients? Through referrals from seniors, quality briefing work, professional networks, consistent reliability and reputation built by writing and teaching. Direct solicitation of clients is restricted under Rule 36 of the Bar Council of India Rules framed under Section 49 of the Advocates Act, 1961. What should a junior advocate learn first? Procedural law, limitation, court hierarchy, cause list reading, basic drafting and file management. These are the skills a senior notices before any argument. Advanced argument technique comes only after these are second nature. How important is drafting? Drafting is the single most durable skill in litigation. A well drafted plaint, written statement or writ petition often decides the outcome of the case before oral arguments begin. Weak drafting cannot be fixed by strong arguments. Can advocates build a personal brand? Advocates may build professional visibility through writing, teaching and legal commentary, subject to the restrictions on advertising and solicitation in Rule 36 of the BCI Rules. Testimonials, claims of success ratios and undignified public conduct are not permitted. What is the difference between a senior lawyer and Senior Advocate designation? A "senior lawyer" is an informal reference to any experienced advocate. The "Senior Advocate" designation is a formal status conferred by the Supreme Court or a High Court under Section 16 of the Advocates Act, 1961, based on standing, experience and ability at the Bar. The current procedure is broadly guided by the framework laid down in the Supreme Court's decision in Indira Jaising v. Supreme Court of India (2017) and its later modifications. How should advocates choose a niche? Based on genuine interest, market demand, mentor availability, court exposure and long term potential. Niche selection is usually clearer after two to four years of general practice, when you have felt several areas from the inside. What is the biggest mistake young advocates make? Chasing visibility, fees and shortcuts before building drafting, procedural and courtroom competence — and neglecting professional ethics in early years. A career built on the wrong foundation cannot be repaired later without heavy cost. EDU LAW Legal intelligence for a serious profession. www.store.theedulaw.in Advocate Playbook 037 · Updated 07 July 2026 © 2026 EduLaw. All Rights Reserved. This blog is educational commentary and not legal advice. Statutory references are as understood as on the date of publication; readers should verify current law before relying on any specific provision. Intro Drafting 12 Months Checklist FAQ ↑ // Reading progress const progressBar = document.getElementById('progressBar'); const scrollTopBtn = document.getElementById('scrollTop'); window.addEventListener('scroll', () => { const h = document.documentElement; const scrolled = (h.scrollTop) / (h.scrollHeight - h.clientHeight) * 100; progressBar.style.width = scrolled + '%'; if (h.scrollTop > 500) scrollTopBtn.classList.add('show'); else scrollTopBtn.classList.remove('show'); }); scrollTopBtn.addEventListener('click', () => window.scrollTo({top:0, behavior:'smooth'})); // Roadmap toggle document.querySelectorAll('#roadmap .roadmap-item').forEach(item => { item.addEventListener('click', () => { const wasActive = item.classList.contains('active'); document.querySelectorAll('#roadmap .roadmap-item').forEach(i => i.classList.remove('active')); if (!wasActive) item.classList.add('active'); }); }); // Progress bars animate on view const meters = document.querySelectorAll('.progress-fill'); const meterObserver = new IntersectionObserver((entries) => { entries.forEach(e => { if (e.isIntersecting) { e.target.style.width = e.target.getAttribute('data-fill') + '%'; meterObserver.unobserve(e.target); } }); }, {threshold: 0.3}); meters.forEach(m => meterObserver.observe(m)); // Niche filter document.querySelectorAll('#nicheFilter .niche-btn').forEach(btn => { btn.addEventListener('click', () => { document.querySelectorAll('#nicheFilter .niche-btn').forEach(b => b.classList.remove('active')); btn.classList.add('active'); const filter = btn.getAttribute('data-filter'); document.querySelectorAll('#nicheGrid .niche-card').forEach(card => { const tags = card.getAttribute('data-tags') || ''; if (filter === 'all' || tags.includes(filter)) card.classList.remove('hidden'); else card.classList.add('hidden'); }); }); }); // FAQ accordion document.querySelectorAll('.faq-item').forEach(item => { item.querySelector('.faq-q').addEventListener('click', () => { item.classList.toggle('open'); }); }); // Checklist toggle document.querySelectorAll('#checklistGrid .check-item').forEach(item => { const cb = item.querySelector('input'); item.addEventListener('click', (e) => { if (e.target.tagName !== 'INPUT') cb.checked = !cb.checked; item.classList.toggle('done', cb.checked); }); }); // Copy checklist document.getElementById('copyChecklist').addEventListener('click', function() { const items = Array.from(document.querySelectorAll('#checklistGrid label')).map((l,i) => (i+1) + '. ' + l.textContent); const text = 'YOUNG ADVOCATE CAREER CHECKLIST — EduLaw\n\n' + items.join('\n'); navigator.clipboard.writeText(text).then(() => { this.textContent = 'Copied ✓'; this.classList.add('done'); setTimeout(() => { this.textContent = 'Copy Checklist'; this.classList.remove('done'); }, 2200); }).catch(() => { this.textContent = 'Press Ctrl+C'; setTimeout(() => { this.textContent = 'Copy Checklist'; }, 2200); }); }); // TOC active highlight const sections = document.querySelectorAll('.content section[id]'); const tocLinks = document.querySelectorAll('#toc a'); const tocObserver = new IntersectionObserver((entries) => { entries.forEach(entry => { if (entry.isIntersecting) { const id = entry.target.getAttribute('id'); tocLinks.forEach(a => { a.classList.toggle('active', a.getAttribute('href') === '#' + id); }); } }); }, {rootMargin: '-40% 0px -50% 0px'}); sections.forEach(s => tocObserver.observe(s));