How UPSC Rankers Write Answers | 10 Year Mains Paper Analysis | 2026
EduLaw EditorialAspirants PlaybookUPSC Mains answer writing strategy 2026 from AIR 1 toppers + 10-year PYQ analysis. Directive words, structures, diagrams & topper sources that score 8+/10.
EduLaw • UPSC 🌙 🖨 PDF Home › UPSC › Mains Answer Writing 2026 Aspirant Playbook 001 · AIR 1 Inspired How UPSC Toppers Write Answers That Score 8+/10 Practical answer-writing strategies proven by AIR 1, decoded from a 10-year analysis of UPSC Mains papers (2015–2025). Built for Mains 2026. 28 min read Updated 14 June 2026 Evidence-based GS 1·2·3·4 + Essay 𝕏 ✆ ✈ 🔗 On this page How toppers write answers Top 10 takeaways Score calculator 10-year trend dashboard Biggest mistakes Directive master table AIR 1 framework Introduction masterclass Fact–Example–Analysis Topper sources database Diagram library Answer copy breakdown Mains 2026 prediction 30-second review FAQ (25) The core answer How do UPSC toppers write answers? UPSC toppers write answers by treating every question as a precise instruction rather than an invitation to dump information. The single biggest finding from studying AIR 1–50 answer copies is this: relevance to the question's demand beats the volume of content every single time. A topper's UPSC Mains answer writing process follows a repeatable sequence. First, they decode the directive word —"discuss", "examine", "critically analyse"—because that word silently defines whether the examiner wants facts, judgement, or a balanced verdict. Second, they identify the content words and limiting words so the answer stays inside the boundary of what was actually asked. Only then do they begin writing. The proven UPSC mains answer structure used by rankers is simple: a tight 2–3 line introduction (a definition, a data point, a constitutional article, or a committee report), a body organised in clear points across multiple dimensions—social, economic, political, environmental, ethical—each backed by a fact and a real example, and a forward-looking conclusion that offers a way forward rather than a summary. Where it adds value, they insert a small labelled diagram, because a flowchart or stakeholder map saves words and makes the answer instantly readable for an examiner correcting hundreds of scripts. This is the heart of an effective UPSC answer writing strategy : write so clearly that the examiner understands you have grasped the question at a single glance. When AIR 5 Ruhani (CSE 2023) switched from dense, fact-stuffed answers to sparse, hyper-relevant ones, her rank jumped from 159 to 5. When AIR 15 Kunal Rastogi filled his sheets with data and underlining, he scored 134 in GS-2—the highest in the country that year. Two contrasting styles, one common factor: both answered exactly what was asked, with clarity. That is what a UPSC topper answer sheet really demonstrates. For UPSC mains 2026 preparation , the implication is liberating. You do not need to know more than everyone else; you need to present what you know with structure, evidence, and judgement. The rest of this guide breaks down that UPSC topper strategy into concrete, testable components: an interactive score calculator, a 10-year trend dashboard, the directive-word master table, the AIR 1 answer framework, introduction templates, the Fact–Example–Analysis formula, a topper sources database, a diagram library, an annotated answer copy, and a probability heatmap for likely 2026 themes. Remember the official evaluation lens. UPSC examiners reward five things: relevance (did you answer the question?), structure (is it easy to follow?), analysis (did you go beyond facts?), presentation (can it be read quickly?), and balance (are multiple perspectives shown objectively?). Every technique below maps to one of these five. Master them and an 8+/10 stops being luck and becomes a habit. Executive summary Top 10 takeaways 01 Decode the directive first. 23 of 25 Mains questions carry a directive. It silently decides whether you need facts, judgement, or a verdict. 02 Relevance > volume. A focused 150-word answer scores higher than a rambling 250-word one. Answer the demand, nothing else. 03 Honour the clock. ~7 min for a 10-marker (150 words), ~11 min for a 15-marker (250 words). Time discipline wins papers. 04 Open with substance. Start with data, a constitutional article, a report, or context—never a generic textbook line. 05 Use the FEA loop. Fact → Example → Analysis → Way Forward turns a list of points into an analytical answer. 06 Cite credible sources. Economic Survey, NITI Aayog, ARC, NFHS, NCRB, IPCC—names that add instant authority. 07 Draw to save words. A labelled flowchart or stakeholder map communicates faster than a paragraph. 08 Show both sides. "Critically" demands balance. A one-sided answer caps your marks regardless of content quality. 09 Conclude forward. End with a reform-oriented way forward, not a restatement of the introduction. 10 Iterate relentlessly. Write → Evaluate → Improve → Rewrite. The same question, written better, is the fastest growth loop. Interactive tool Answer Writing Score Calculator Tick the elements present in your answer. The meter shows where your answer sits—from Poor to Topper-Level —based on how examiners weight each component. Directive correctly followed Data / statistics used Real examples / case used Relevant diagram drawn Forward-looking conclusion Keywords underlined Poor 0 / 100 — tick the boxes above 10-year analysis UPSC Mains Trend Dashboard (2015–2025) Patterns across a decade of GS papers, based on directive distribution and question-type analysis. The clear story: questions have become more analytical and current-affairs driven , rewarding answers that synthesise rather than recall. Directive mix across GS papers 0 % Analytical (2025) 0 % Current-affairs linked 0 Questions per GS paper 0 % Diagram-friendly Avoid these The biggest mistakes aspirants make Most low scores come not from weak preparation but from how knowledge is presented. Tap each to see the impact, the topper alternative, and an example. 1. Misreading the demand of the question + Impact You write a generic essay on the topic instead of answering the precise question—instant loss of relevance marks. Topper alternative Underline the directive, content words and limiting words before writing a single line. Example "Analyse the challenges of cooperative federalism" wants only challenges, causes, impact and solutions. 2. Ignoring the directive word + Impact Writing only benefits when the question says "critically examine" caps your score regardless of content. Topper alternative Let the directive dictate structure: "critically" = both sides + balanced verdict. Example "Critically examine social media in democracy" → benefits + harms + balanced conclusion. 3. Dense paragraphs with no structure + Impact An examiner with 30 seconds per answer cannot extract your points; readability marks vanish. Topper alternative Use intro–body–conclusion, subheadings, short points, and underlining of keywords. Example Break "urbanisation impacts" into Economic / Social / Environmental sub-points. 4. Writing everything you know + Impact Padding wastes time and dilutes relevance—more words, fewer marks. Topper alternative Relevance > information. Answer only what is asked, then stop. Example Ruhani (AIR 5) scored higher with sparse, hyper-relevant answers than her own fact-heavy earlier attempt. 5. No analysis — only definitions & static facts + Impact Civil services reward analytical thinking; description alone reads like a Class-10 answer. Topper alternative Move from "what" to "why" and "so what"—causes, consequences, solutions. Example Not "urbanisation is rising" but "rapid urbanisation boosts opportunity yet strains housing, infrastructure and services." 6. Weak introductions & abrupt conclusions + Impact First and last impressions disproportionately shape the examiner's sense of the answer. Topper alternative Open with data/article/report; close with a reform-oriented way forward. Example "Strengthening cooperative federalism requires consultation, institutional trust and collaborative policymaking." 7. No value addition — no data, examples, judgements + Impact Two aspirants write identical theory; the one citing reports and cases stands out. Topper alternative Add Supreme Court judgments, articles, committee reports, data and case studies. Example A governance answer citing the 2nd ARC and NITI Aayog gains instant credibility. 8. Poor time management & wrong numbering + Impact Unattempted questions cost guaranteed marks; mis-numbered answers may not be matched. Topper alternative Strict per-question timing; verify question numbers; attempt all questions. Example Leaving 2 questions blank can cost 20–30 marks—often the gap between selection and failure. Reference Directive Word Master Table Directives are instructions, not decoration. Search and master each one—getting the directive right is half the answer. ← Swipe the table sideways to see all columns → Directive Meaning Examiner expectation Structure Discuss Present a reasoned debate for and against. Balanced reasoning with evidence, advantages & disadvantages. Intro → For → Against → Verdict Examine Investigate in detail; establish key facts & issues. Facts and their implications—why they matter. Intro → Key facts → Implications → Conclusion Critically Examine Examine both positive and negative aspects. Fair judgement weighing both sides. Intro → Positives → Negatives → Balanced verdict Evaluate Assess positives and negatives of a statement. Judgement on worth/merit with reasoning. Intro → Pros → Cons → Comment on worth Critically Evaluate Judge how far a statement is correct (unbiased). Verdict based on the most important factor. Intro → Evidence both ways → Verdict + reason Assess Weigh up to what extent something is true. Convincing, balanced argument with limitations. Intro → Strengths → Flaws → Net assessment Analyse Break into parts; examine interrelationships. Causes, effects, pros/cons, evidence. Intro → Components → Interlinks → Opinion Critically Analyse Analyse plus a fair, balanced argument. Deep breakdown + judgement. Intro → Parts → Both sides → Balanced view Comment Pick the main points and give an opinion. Identify key issues, take a measured stand. Intro → Key points → Reasoned opinion Justify Give valid reasons for a statement/decision. Evidence-backed defence of the position. Intro → Arguments → Evidence → Reaffirm Suggest Propose practical measures / solutions. Actionable, feasible recommendations. Intro → Problem → Suggestions → Outcome Compare Identify similarities (and differences). Point-by-point parallels. Intro → Common ground → Differences → Net Contrast Focus on differences between phenomena. Clear distinctions emphasised. Intro → Difference 1,2,3 → Significance Elucidate / Explain Make clear with detail and examples. Clarity of the concept and how it works. Intro → Explanation → Example → Conclusion To what extent Evaluate the degree of truth precisely. Measured judgement of validity. Intro → Supports → Limits → Degree verdict Blueprint The AIR 1 Answer Framework Every high-scoring answer flows through the same seven stages. Internalise this until it becomes automatic in the exam hall. QUESTION Read twice, underline directive + content + limiting words ↓ DIRECTIVE Decide the demand: facts, judgement, or verdict ↓ STRUCTURE Plan intro · body dimensions · conclusion (30 sec) ↓ FACTS Anchor with data, article, report or scheme ↓ EXAMPLES Add real cases, judgments, schemes, geographies ↓ ANALYSIS Explain causes, effects, interlinkages, both sides ↓ CONCLUSION Forward-looking way ahead, not a summary Masterclass Introduction Masterclass The first three lines set the examiner's expectation. Pick the introduction type that fits the question. Each tab shows a weak version versus a topper version. Data Constitution Current Affairs Committee Case Study When to use: Economy, social sector, development questions where a number frames the scale. ✗ Weak "Poverty is a big problem in India that affects many people in many ways." ✓ Topper "With NITI Aayog's MPI showing ~135 million Indians exiting multidimensional poverty over nine years, sustaining this momentum is central to inclusive growth." When to use: Polity, governance, rights, federalism—anchor in an Article or constitutional value. ✗ Weak "Federalism means division of powers between centre and states in our country." ✓ Topper "Article 1 describes India as a 'Union of States', and the Seventh Schedule's division of powers makes cooperative federalism constitutionally embedded." When to use: Dynamic GS-2/GS-3 questions tied to a recent event or policy. ✗ Weak "Artificial Intelligence is changing the world very fast nowadays." ✓ Topper "As India operationalises the IndiaAI Mission and debates a risk-based AI framework, the governance challenge is balancing innovation with accountability." When to use: Governance, administrative reform, social justice—open with a committee or report. ✗ Weak "There are many committees that have given reports on civil services reform." ✓ Topper "The 2nd Administrative Reforms Commission's call for citizen-centric governance remains only partly realised, exposing the gap between intent and delivery." When to use: Ethics (GS-4) and applied governance—open with a scenario or real instance. ✗ Weak "Honesty is a very important value for a civil servant to have." ✓ Topper "When a young collector halts a sanctioned project on discovering safety lapses, the dilemma between procedural compliance and public interest captures administrative integrity." The formula Fact → Example → Analysis → Way Forward This single loop converts a flat point into an analytical one. Toppers run every body point through it. FACT State the verifiable claim / data ↓ EXAMPLE Ground it in a real instance ↓ ANALYSIS Explain cause / effect / significance ↓ WAY FORWARD Offer a constructive next step Worked example — "Examine the digital divide as a barrier to inclusive governance." Fact: Rural internet penetration trails urban access significantly, leaving large populations outside digital service delivery. Example: During DBT and e-governance rollouts, beneficiaries without smartphones or connectivity faced exclusion from entitlements. Analysis: This converts a tool of inclusion into a new axis of exclusion, deepening the urban–rural and gender gap in access to the state. Way forward: Assisted-access models (CSCs, BharatNet last-mile, offline fallbacks) can keep digitisation inclusive rather than exclusionary. Authority Topper Sources Database Naming the right source instantly signals depth. Use these where they genuinely fit—each card shows when, where, and which GS paper. Economic Survey When: Macro data, sectoral trends, reforms Where: Intro/body of economy answers GS-3 NITI Aayog When: SDG Index, MPI, governance Where: Development, federalism, health GS-2 GS-3 ARC Reports When: Administrative & governance reform Where: Polity body & conclusion GS-2 GS-4 SDGs (UN) When: Sustainability, poverty, climate Where: Way forward framing GS-1 GS-3 Census When: Demography, urbanisation, migration Where: Society & geography intros GS-1 NFHS When: Health, nutrition, fertility, women Where: Social-sector data points GS-2 NCRB When: Crime, internal security, safety Where: Security & society answers GS-1 GS-3 World Bank When: Global comparisons, dev indices Where: Economy & development context GS-3 IMF When: Growth projections, fiscal policy Where: Macro-economy framing GS-3 IPCC When: Climate science, mitigation Where: Environment intros & conclusions GS-3 Committee Reports When: Sector reform (Kelkar, Sarkaria) Where: Recommendation answers GS-2 GS-3 Supreme Court When: Rights, federalism, governance Where: Polity body & value addition GS-2 Visual toolkit Diagram Library A relevant, labelled diagram saves words and makes your script stand out. Use the type that matches the question's logic. Mind Map Central concept + dimensions. Best for "discuss all aspects". Flowchart Sequential process or policy pipeline. Stakeholder Map Ideal opener for GS-4 case studies. Cause–Effect Tree Roots (causes) → outcomes for analysis. Cycle Diagram Virtuous/vicious cycles (poverty, climate). Pyramid Model Hierarchies—Maslow, governance tiers. Decoded Answer Copy Breakdown A simulated topper answer to "Critically examine the role of civil society in deepening Indian democracy." Tap the highlighted parts to see why marks were scored. Intro: Civil society—NGOs, citizen groups and the media—forms the "third sector" between state and market. Crisp definition opener establishes conceptual clarity in one line. Positive role: It strengthens democracy through accountability (RTI movement → 2005 Act) Example + concrete outcome shows analysis, not assertion. , awareness, and last-mile delivery. It deepens participation via PILs and social audits under MGNREGA Specific schemes/instruments = value addition examiners reward. , giving voice to the marginalised. Critical side: However, foreign-funding concerns, accountability deficits within NGOs, and elite capture The "critically" directive demands the negative side—balance unlocks higher marks. limit its role. Diagram: [Stakeholder map: State ↔ Civil Society ↔ Citizens] A small labelled diagram saves words and improves readability. Conclusion: A transparent, well-regulated civil society—not a restricted one—is essential to a maturing democracy (echoing the 2nd ARC). Forward-looking, balanced way ahead with a source = textbook topper close. Forecast UPSC Mains 2026 Prediction Heatmap Based on emerging issues and a decade of directive trends, here is the likelihood of major themes across GS papers. Indicative, not exhaustive—use to prioritise, not to guess-bet. Theme GS-1 GS-2 GS-3 GS-4 AI & Emerging Tech Low High V.High High Climate & Environment Med Med V.High Low Federalism & Governance Low V.High Med Med Geopolitics & IR Low V.High Med V.Low Economy & Growth Low Med V.High Low Society & Demography V.High High Low Med Ethics & Integrity V.Low Low V.Low V.High Before you submit 30-Second Review Checklist Run this on every answer before moving on. Tick them off—the list fades as you complete it. Did I follow the exact directive word? Is my introduction substantive (data/article/report)? Are body points multi-dimensional and structured? Did I add at least one fact and one example? Did I show both sides where "critically" appears? Is there a relevant diagram (if it adds value)? Does my conclusion offer a way forward? Are keywords underlined for readability? Am I within the word & time limit? 0 / 9 review checks complete Take it with you Downloadable PDF Summary Generate a clean, print-ready one-pager of this entire guide—directives, framework, sources and checklist—for offline revision. 📄 Download / Print PDF Summary Tip: choose "Save as PDF" in the print dialog. Interactive controls are hidden in print mode. People also ask Frequently Asked Questions How do UPSC toppers write answers? ▾ They decode the directive, write a substantive 2–3 line introduction, build a structured multi-dimensional body with facts and examples, add a diagram where it helps, and close with a forward-looking conclusion. Relevance to the demand beats raw volume. How many words should a 10-marker have? ▾ A 10-mark question has a 150-word limit and should take roughly 7 minutes. Stay close to the limit—padding wastes time you need for other questions. How many words for a 15-marker? ▾ A 15-mark question has a 250-word limit and should take about 11 minutes. The whole GS paper is 20 questions in 3 hours, so timing per answer is critical. Should I draw diagrams in Mains answers? ▾ Yes, when they genuinely add value. A labelled flowchart, stakeholder map or cycle saves words and improves readability. Skip purely decorative diagrams. How can I improve my answer writing? ▾ Use the loop: Write → Evaluate → Improve → Rewrite. Write daily, get answers reviewed, fix recurring errors, and rewrite the same questions better over time. How do I write a strong introduction? ▾ Open with a data point, a constitutional article, a recent event, or a committee report—never a vague textbook definition. Keep it to 2–3 lines. How should I conclude an answer? ▾ End with a balanced, reform-oriented way forward rather than restating the introduction. A reference to a report or SDG strengthens it. What is the difference between Examine and Critically Examine? ▾ Examine asks for key facts and their implications. Critically Examine additionally demands a fair judgement weighing both positives and negatives before a balanced conclusion. What does "Analyse" require? ▾ Break the issue into constituent parts, examine their interrelationships, present causes and effects with evidence, and give a considered opinion. Is content or presentation more important? ▾ Both matter, but presentation often decides marks among well-prepared candidates. Examiners reward relevance, structure, analysis, presentation and balance. Should answers be in points or paragraphs? ▾ A hybrid works best: a short paragraph intro/conclusion with a points-based body. Points improve readability; analysis keeps them from being shallow. How many examples should I use? ▾ At least one strong, specific example per major point. Quality and specificity matter more than quantity. Which sources should I quote? ▾ Economic Survey, NITI Aayog, ARC, NFHS, NCRB, Census, World Bank, IMF, IPCC, committee reports and key Supreme Court judgments—used only where relevant. How do I manage time in the Mains exam? ▾ Budget ~7 min per 10-marker and ~11 min per 15-marker, attempt every question, and keep a few minutes buffer. Leaving questions blank is the costliest mistake. Should I attempt all questions? ▾ Yes. An average answer earns more than a blank. Attempt all questions even if some are partial. Does handwriting affect marks? ▾ Legibility matters because examiners read fast. You don't need beautiful handwriting—just clean, readable, well-spaced writing. How long does it take to get good at answer writing? ▾ With consistent daily practice and feedback, most aspirants see clear improvement in 8–12 weeks. It is a skill built through iteration. Can I score well with sparse answers like AIR 5 Ruhani? ▾ It can work if every line is hyper-relevant and crystal clear, but for most aspirants a balanced approach with reasonable value addition is safer. How important are current affairs in Mains? ▾ Very. A majority of GS-2 and GS-3 questions are linked to current events; examples and data from the past year significantly lift answers. Should I underline keywords? ▾ Yes, sparingly. Underlining key terms and conclusions guides the examiner's eye and improves perceived structure. How is GS-4 (Ethics) answer writing different? ▾ It blends concepts with application. Use definitions, thinkers/quotes, real and case-study examples, and stakeholder analysis for case studies. What is the most common reason aspirants lose marks? ▾ Misunderstanding the question's demand and ignoring the directive word—writing a generic answer instead of the specific one asked for. How many answers should I practise daily? ▾ Quality over quantity. Even 3–5 well-reviewed answers a day, consistently, outperforms occasional bulk writing without feedback. Do I need coaching for answer writing? ▾ Not strictly. Structured feedback helps, but self-evaluation against model frameworks and PYQs, plus peer review, can substitute effectively. What is the single best habit for Mains 2026? ▾ Treat every PYQ as a directive-decoding exercise: identify the demand, structure first, then write. This one habit fixes most scoring problems. Continue your preparation Recommended next reads: UPSC Mains GS-4 Ethics Case Study Framework · Essay Paper Strategy for 130+ · Last 10 Years PYQ Theme Tracker · Daily Answer Writing Plan (90 Days) . EduLaw • Aspirant Playbook Evidence-based UPSC mentorship. This guide synthesises publicly available topper answer copies, UPSC question-paper trends (2015–2025), and examiner-evaluation principles. Top Directives Sources FAQ Privacy Contact © 2026 EduLaw. For educational guidance only. Last updated 14 June 2026. const prog=document.getElementById('progress'); window.addEventListener('scroll',()=>{ const h=document.documentElement; prog.style.width=(h.scrollTop/(h.scrollHeight-h.clientHeight)*100)+'%'; }); const tb=document.getElementById('themeBtn'); tb.addEventListener('click',()=>{ const d=document.documentElement.getAttribute('data-theme')==='dark'; document.documentElement.setAttribute('data-theme',d?'light':'dark'); tb.textContent=d?'🌙':'☀️'; setTimeout(rebuildCharts,50); }); const url=encodeURIComponent(location.href); const txt=encodeURIComponent('How UPSC Toppers Write Answers That Score 8+/10 — Mains 2026 guide'); function shareTo(p){ const m={twitter:`https://twitter.com/intent/tweet?text=${txt}&url=${url}`,wa:`https://wa.me/?text=${txt}%20${url}`,tg:`https://t.me/share/url?url=${url}&text=${txt}`}; window.open(m[p],'_blank'); } function copyLink(){navigator.clipboard.writeText(location.href).then(()=>alert('Link copied!'));} const links=[...document.querySelectorAll('.toc a')]; const secs=links.map(l=>document.querySelector(l.getAttribute('href'))); window.addEventListener('scroll',()=>{ let idx=0;secs.forEach((s,i)=>{if(s&&s.getBoundingClientRect().top l.classList.remove('active')); if(links[idx])links[idx].classList.add('active'); }); const opts=[...document.querySelectorAll('#calcOpts input')]; function updateCalc(){ let s=0;opts.forEach(o=>{if(o.checked)s+=+o.dataset.w;}); document.getElementById('ptr').style.left=Math.min(s,100)+'%'; let g='Poor',c='#c0392b'; if(s>=85){g='Topper-Level';c='#6B4F3A';}else if(s>=60){g='Good';c='#27ae60';}else if(s>=35){g='Average';c='#e67e22';} const gr=document.getElementById('grade');gr.textContent=g;gr.style.color=c; document.getElementById('scoreTxt').textContent=s+' / 100 — '+(s>=85?'examiner-ready answer':'keep refining'); } opts.forEach(o=>o.addEventListener('change',updateCalc)); document.querySelectorAll('#acc .acc-head').forEach(h=>h.addEventListener('click',()=>h.parentElement.classList.toggle('open'))); document.getElementById('dirSearch').addEventListener('input',function(){ const q=this.value.toLowerCase(); document.querySelectorAll('#dirTable tbody tr').forEach(r=>{r.style.display=r.textContent.toLowerCase().includes(q)?'':'none';}); }); document.querySelectorAll('#introTabs .tab-btn').forEach(b=>{ b.addEventListener('click',()=>{ document.querySelectorAll('#introTabs .tab-btn').forEach(x=>x.classList.remove('active')); document.querySelectorAll('#intros .tab-pane').forEach(x=>x.classList.remove('active')); b.classList.add('active');document.getElementById(b.dataset.tab).classList.add('active'); }); }); document.querySelectorAll('#faqBox .faq-q').forEach(q=>q.addEventListener('click',()=>q.parentElement.classList.toggle('open'))); document.querySelectorAll('.hotspot').forEach(h=>h.addEventListener('click',()=>h.classList.toggle('show'))); const colors={1:'#cdbfa8',2:'#b89b78',3:'#9c7b54',4:'#7d5c3a',5:'#5a3d22'}; document.querySelectorAll('#heat .heat-cell').forEach(c=>{c.style.background=colors[c.dataset.v];}); const rev=[...document.querySelectorAll('#reviewList input')]; function updRev(){let d=0;rev.forEach(r=>{r.parentElement.classList.toggle('done',r.checked);if(r.checked)d++;});document.getElementById('reviewScore').textContent=d+' / 9';} rev.forEach(r=>r.addEventListener('change',updRev)); const io=new IntersectionObserver(es=>{es.forEach(e=>{if(e.isIntersecting)e.target.classList.add('in');});},{threshold:.1}); document.querySelectorAll('.reveal').forEach(el=>io.observe(el)); const cio=new IntersectionObserver(es=>{ es.forEach(e=>{ if(e.isIntersecting){ const el=e.target,t=+el.dataset.target;let n=0; const step=()=>{n+=Math.ceil(t/40);if(n>=t){el.textContent=t;}else{el.textContent=n;requestAnimationFrame(step);}}; step();cio.unobserve(el); } }); },{threshold:.5}); document.querySelectorAll('.counter .n').forEach(c=>cio.observe(c)); let trendC,dirC; function rebuildCharts(){ const css=getComputedStyle(document.documentElement); const txtC=css.getPropertyValue('--text').trim(); const gridC=css.getPropertyValue('--border').trim(); if(trendC)trendC.destroy();if(dirC)dirC.destroy(); trendC=new Chart(document.getElementById('trendChart'),{ type:'line', data:{labels:['2015','2016','2017','2018','2019','2020','2021','2022','2023','2024','2025'], datasets:[ {label:'Analytical %',data:[42,45,47,50,52,54,56,58,60,61,62],borderColor:'#6B4F3A',backgroundColor:'rgba(107,79,58,.1)',tension:.35,fill:true,pointRadius:2}, {label:'Current-affairs %',data:[38,40,43,45,48,50,52,54,55,57,58],borderColor:'#b08f6f',backgroundColor:'rgba(176,143,111,.08)',tension:.35,fill:true,pointRadius:2}, {label:'Diagram-friendly %',data:[28,30,31,33,35,37,39,40,42,43,44],borderColor:'#9c7b54',borderDash:[5,4],tension:.35,pointRadius:2} ]}, options:{responsive:true,maintainAspectRatio:true,aspectRatio:1.6,plugins:{legend:{labels:{color:txtC,font:{family:'Segoe UI',size:11},boxWidth:14}}},scales:{y:{beginAtZero:true,max:80,ticks:{color:txtC},grid:{color:gridC}},x:{ticks:{color:txtC,font:{size:10}},grid:{color:gridC}}}} }); dirC=new Chart(document.getElementById('dirChart'),{ type:'bar', data:{labels:['Discuss','Examine','Crit.Exam','Analyse','Evaluate','Comment','Suggest','Compare'], datasets:[{label:'Frequency 2015–2025',data:[22,16,14,15,9,8,9,7],backgroundColor:['#6B4F3A','#7d5c3a','#8a6f57','#9c7b54','#a88b6a','#b89b78','#c5a988','#cdbfa8']}]}, options:{responsive:true,maintainAspectRatio:true,aspectRatio:1.6,plugins:{legend:{labels:{color:txtC,font:{family:'Segoe UI',size:11},boxWidth:14}}},scales:{y:{beginAtZero:true,ticks:{color:txtC},grid:{color:gridC}},x:{ticks:{color:txtC,font:{size:9}},grid:{display:false}}}} }); } rebuildCharts(); window.addEventListener('resize',()=>{clearTimeout(window._rt);window._rt=setTimeout(rebuildCharts,300);});