-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathacademic.html
More file actions
384 lines (370 loc) · 24.8 KB
/
academic.html
File metadata and controls
384 lines (370 loc) · 24.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Academic Journey — Dr. Sinchan Ghosh</title>
<meta name="description" content="PhD, MSc, BSc education, research experience timeline, teaching, awards, and memberships of Dr. Sinchan Ghosh, ecological modeller at IIASA.">
<link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap" rel="stylesheet">
<link href="https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,600,700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
</head>
<body>
<nav class="nav" id="main-nav">
<div class="nav__inner">
<a href="index.html" class="nav__brand">
<svg class="nav__logo" viewBox="0 0 36 36" fill="none" aria-hidden="true"><circle cx="18" cy="18" r="17" stroke="var(--color-primary)" stroke-width="1.5" opacity="0.35"/><path d="M9 27 Q13 18 18 16 Q23 14 27 9" stroke="var(--color-primary)" stroke-width="2" stroke-linecap="round" fill="none"/><circle cx="13" cy="22" r="2.5" fill="var(--color-primary)" opacity="0.8"/><circle cx="20" cy="15" r="2" fill="var(--color-accent)" opacity="0.8"/><circle cx="26" cy="10" r="1.5" fill="var(--color-gold)" opacity="0.8"/></svg>
<div><div class="nav__name">Dr. Sinchan Ghosh</div><div class="nav__title">Ecological Modeller · IIASA</div></div>
</a>
<nav class="nav__links">
<a href="index.html" class="nav__link">Home</a>
<a href="academic.html" class="nav__link nav__link--active">Academic Journey</a>
<a href="publications.html" class="nav__link">Publications</a>
<a href="apps.html" class="nav__link">Research Tools</a>
<a href="outreach.html" class="nav__link">Outreach</a>
</nav>
<div class="nav__actions">
<button class="nav__toggle nav__hamburger" data-hamburger aria-label="Open menu" aria-expanded="false" aria-controls="mobile-menu"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="3" y1="6" x2="21" y2="6"/><line x1="3" y1="12" x2="21" y2="12"/><line x1="3" y1="18" x2="21" y2="18"/></svg></button>
<button class="nav__toggle" data-theme-toggle aria-label="Switch theme"></button>
</div>
</div>
</nav>
<div class="mobile-menu" id="mobile-menu"><a href="index.html">Home</a><a href="academic.html" class="active">Academic Journey</a><a href="publications.html">Publications</a><a href="apps.html">Research Tools</a><a href="outreach.html">Outreach</a></div>
<header class="page-hero">
<div class="container">
<div class="page-hero__eyebrow"><span class="eyebrow">Academic Journey</span></div>
<h1 class="page-hero__title">Education, Experience & Recognition</h1>
<p class="page-hero__lead">From undergraduate training in zoology to doctoral research in agro-ecological modelling and a postdoctoral career at IIASA — a trajectory built on rigorous quantitative ecology.</p>
</div>
</header>
<!-- EDUCATION -->
<section class="section">
<div class="container">
<div class="eyebrow">Education</div>
<h2 class="section-title mb-8">Academic degrees</h2>
<!-- PhD -->
<div class="card card--accent-top mb-6">
<div style="display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; flex-wrap:wrap; margin-bottom: var(--space-4);">
<div>
<div style="font-size:var(--text-xs);text-transform:uppercase;letter-spacing:0.08em;color:var(--color-primary);font-weight:700;margin-bottom:0.4rem;">2018 – 2022</div>
<h3 style="font-family:var(--font-display);font-size:var(--text-xl);letter-spacing:-0.01em;">Ph.D. in Zoology</h3>
<div style="font-size:var(--text-base);color:var(--color-text-muted);margin-top:0.2rem;">Specialisation: Agro-Ecological Modelling</div>
</div>
<div style="text-align:right;">
<div style="font-weight:700;font-size:var(--text-sm);">Visva-Bharati University</div>
<div style="font-size:var(--text-xs);color:var(--color-text-muted);">Santiniketan, India</div>
<div style="margin-top:0.5rem;"><span class="badge badge--gold">CSIR-Funded</span></div>
</div>
</div>
<div class="quote-block">
<strong>Thesis:</strong> <em>The migratory pattern and identification of habitat patches with nesting success of Merops philippinus</em>
</div>
<p class="text-sm text-muted mb-4" style="line-height:1.7;">In the croplands of the Gangetic Delta, India, the Blue-tailed Bee-eater (<em>Merops philippinus</em>) nests during summer for breeding. Farmers seek to concretise river cliffs to prevent agricultural land loss — but this infrastructure destroys the birds' natural habitat and eliminates their critical role in natural pest control. My research identified where habitat corridors must be preserved during concretisation to maintain the bird population during breeding, integrating climate, soil, insect, and aquatic predictors with birds' nesting, breeding success, and demographic variables as latent and response variables. I used a hybrid combination of process-based and machine-learning models.</p>
<div style="display:grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-top: var(--space-4);">
<div>
<div style="font-size:var(--text-xs);text-transform:uppercase;letter-spacing:0.08em;color:var(--color-text-faint);margin-bottom:0.4rem;">Supervisors</div>
<div class="text-sm" style="line-height:1.7;">
<a href="https://sites.google.com/site/sabyaisi/home" target="_blank" rel="noopener" style="color:var(--color-slate);font-weight:600;">Prof. Sabyasachi Bhattacharya</a><br>
<span class="text-muted">Agricultural & Ecological Research Unit, Indian Statistical Institute, Kolkata</span><br><br>
<a href="https://sites.google.com/view/ecomodlabvb/santanu-ray" target="_blank" rel="noopener" style="color:var(--color-slate);font-weight:600;">Prof. Santanu Ray</a><br>
<span class="text-muted">Department of Zoology, Visva-Bharati University (Retired April 2022)</span>
</div>
</div>
<div>
<div style="font-size:var(--text-xs);text-transform:uppercase;letter-spacing:0.08em;color:var(--color-text-faint);margin-bottom:0.4rem;">Funding</div>
<div class="text-sm text-muted" style="line-height:1.7;">
<a href="https://www.csir.res.in/" target="_blank" rel="noopener" style="color:var(--color-slate);">Council of Scientific and Industrial Research (CSIR)</a><br>
Ministry of Science and Technology, Government of India<br>
<span class="badge badge--gold" style="margin-top:0.5rem;">JRF (2017, 2018) · SRF (2020)</span>
</div>
</div>
</div>
</div>
<!-- MSc -->
<div class="card card--accent-top mb-6" style="border-top-color: var(--color-accent);">
<div style="display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; flex-wrap:wrap; margin-bottom: var(--space-4);">
<div>
<div style="font-size:var(--text-xs);text-transform:uppercase;letter-spacing:0.08em;color:var(--color-primary);font-weight:700;margin-bottom:0.4rem;">2016 – 2018</div>
<h3 style="font-family:var(--font-display);font-size:var(--text-xl);letter-spacing:-0.01em;">M.Sc. in Zoology</h3>
<div style="font-size:var(--text-base);color:var(--color-text-muted);margin-top:0.2rem;">Specialisation: Ecological Modelling · Distinction</div>
</div>
<div style="text-align:right;">
<div style="font-weight:700;font-size:var(--text-sm);"><a href="https://visvabharati.ac.in/Zoology.html" target="_blank" rel="noopener" style="color:var(--color-slate);">Visva-Bharati University</a></div>
<div style="font-size:var(--text-xs);color:var(--color-text-muted);">Santiniketan, India</div>
</div>
</div>
<p class="text-sm text-muted"><strong>Thesis:</strong> <em>Ecological mechanism behind the decrease in migratory bird diversity</em><br>
<strong>Supervisor:</strong> Prof. Santanu Ray — Department of Zoology, Visva-Bharati University</p>
</div>
<!-- BSc -->
<div class="card card--accent-top" style="border-top-color: var(--color-border);">
<div style="display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; flex-wrap:wrap;">
<div>
<div style="font-size:var(--text-xs);text-transform:uppercase;letter-spacing:0.08em;color:var(--color-primary);font-weight:700;margin-bottom:0.4rem;">2013 – 2016</div>
<h3 style="font-family:var(--font-display);font-size:var(--text-xl);letter-spacing:-0.01em;">B.Sc. in Zoology (Honours)</h3>
<div style="font-size:var(--text-base);color:var(--color-text-muted);margin-top:0.2rem;">Minor: Botany · Chemistry · Environmental Science</div>
</div>
<div style="text-align:right;">
<div style="font-weight:700;font-size:var(--text-sm);"><a href="https://maulanaazadcollegekolkata.ac.in/zoology.php" target="_blank" rel="noopener" style="color:var(--color-slate);">Maulana Azad College</a></div>
<div style="font-size:var(--text-xs);color:var(--color-text-muted);"><a href="https://www.caluniv.ac.in/" target="_blank" rel="noopener" style="color:var(--color-text-faint);">University of Calcutta</a></div>
</div>
</div>
</div>
</div>
</section>
<hr class="divider">
<!-- RESEARCH EXPERIENCE -->
<section class="section">
<div class="container">
<div class="eyebrow">Research Experience</div>
<h2 class="section-title mb-8">Professional positions</h2>
<div class="timeline">
<div class="timeline__item">
<div class="timeline__date">Jan 2026 –<br>present</div>
<div class="timeline__body">
<div class="timeline__role">Guest Researcher</div>
<div class="timeline__org">International Institute for Applied Systems Analysis (IIASA) · Biodiversity and Natural Resources Programme</div>
<div class="timeline__detail">Laxenburg, Austria</div>
</div>
</div>
<div class="timeline__item">
<div class="timeline__date">Aug 2023 –<br>Dec 2025</div>
<div class="timeline__body">
<div class="timeline__role">Researcher (Post-doctoral)</div>
<div class="timeline__org">IIASA · Agriculture, Forestry and Ecosystems Services Group · Biodiversity and Natural Resources Programme</div>
<div class="timeline__detail">Laxenburg, Austria — wolf–ungulate dynamics, climate SDMs, forage energy meta-database</div>
</div>
</div>
<div class="timeline__item">
<div class="timeline__date">Jan 2023 –<br>Jun 2023</div>
<div class="timeline__body">
<div class="timeline__role">Scientist (Visiting)</div>
<div class="timeline__org">Agricultural and Ecological Research Unit, Indian Statistical Institute</div>
<div class="timeline__detail">Kolkata, India</div>
</div>
</div>
<div class="timeline__item">
<div class="timeline__date">Aug 2020 –<br>Aug 2022</div>
<div class="timeline__body">
<div class="timeline__role">Senior Research Fellow (Doctoral)</div>
<div class="timeline__org">Agricultural and Ecological Research Unit, Indian Statistical Institute</div>
<div class="timeline__detail">Kolkata, India · CSIR-NET SRF funded</div>
</div>
</div>
<div class="timeline__item">
<div class="timeline__date">Aug 2018 –<br>Aug 2020</div>
<div class="timeline__body">
<div class="timeline__role">Junior Research Fellow (Doctoral)</div>
<div class="timeline__org">Agricultural and Ecological Research Unit, Indian Statistical Institute</div>
<div class="timeline__detail">Kolkata, India · CSIR-NET JRF funded (×2)</div>
</div>
</div>
<div class="timeline__item">
<div class="timeline__date">Jun–Jul 2017</div>
<div class="timeline__body">
<div class="timeline__role">Intern</div>
<div class="timeline__org"><a href="http://www.jcbose.ac.in/division-of-molecular-medicine" target="_blank" rel="noopener">Division of Molecular Medicine, Jagadish Chandra Bose Institute</a></div>
<div class="timeline__detail">Kolkata, India</div>
</div>
</div>
<div class="timeline__item">
<div class="timeline__date">Jun–Jul 2015</div>
<div class="timeline__body">
<div class="timeline__role">Intern</div>
<div class="timeline__org">ICAR – Central Institute of Fisheries Education</div>
<div class="timeline__detail">Kolkata, India · Ornamental fish breeding programme</div>
</div>
</div>
</div>
</div>
</section>
<hr class="divider">
<!-- TEACHING -->
<section class="section section--alt">
<div class="container">
<div class="eyebrow">Teaching</div>
<h2 class="section-title mb-8">Academic instruction</h2>
<div style="display:flex; flex-direction:column; gap: var(--space-4);">
<div class="card">
<div style="display:flex; gap:var(--space-4); align-items:flex-start;">
<div style="min-width:80px; font-size:var(--text-xs); color:var(--color-text-faint); font-weight:700; padding-top:0.1rem;">2023</div>
<div>
<div style="font-weight:700; font-size:var(--text-sm);">Instructor — GIS in Species Distribution Modelling / Spatial Ecology Winter School</div>
<div class="text-sm text-muted">Indian Statistical Institute & Department of Science and Technology, India</div>
</div>
</div>
</div>
<div class="card">
<div style="display:flex; gap:var(--space-4); align-items:flex-start;">
<div style="min-width:80px; font-size:var(--text-xs); color:var(--color-text-faint); font-weight:700; padding-top:0.1rem;">2022</div>
<div>
<div style="font-weight:700; font-size:var(--text-sm);">Instructor — Statistical & Research Methodologies with R Workshop</div>
<div class="text-sm text-muted">Indian Statistical Institute & North Eastern Hill University, India</div>
</div>
</div>
</div>
<div class="card">
<div style="display:flex; gap:var(--space-4); align-items:flex-start;">
<div style="min-width:80px; font-size:var(--text-xs); color:var(--color-text-faint); font-weight:700; padding-top:0.1rem;">2022–23</div>
<div>
<div style="font-weight:700; font-size:var(--text-sm);">Adjunct Faculty — Community Ecology, Biostatistics, Epidemiology</div>
<div class="text-sm text-muted">Guru Nanak Institute of Pharmaceutical Science and Technology, Kolkata</div>
</div>
</div>
</div>
</div>
</div>
</section>
<hr class="divider">
<!-- AWARDS -->
<section class="section">
<div class="container">
<div class="eyebrow">Grants, Fellowships & Awards</div>
<h2 class="section-title mb-8">Recognition & competitive funding</h2>
<div class="award-list">
<div class="award-item">
<div class="award-icon"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9H4.5a2.5 2.5 0 0 1 0-5C7 4 7 7 7 7"/><path d="M18 9h1.5a2.5 2.5 0 0 0 0-5C17 4 17 7 17 7"/><path d="M4 22h16"/><path d="M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22"/><path d="M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22"/><path d="M18 2H6v7a6 6 0 0 0 12 0V2Z"/></svg></div>
<div class="award-text"><strong>AMARE-Med Competitive Grant (2024)</strong><span>Participation grant for the Advanced School on Multispecies Modelling for Marine Resource Management — OGS, Italy</span></div>
</div>
<div class="award-item">
<div class="award-icon"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"/><path d="M2 12h20"/></svg></div>
<div class="award-text"><strong>ISBE Congress Travel Grant (2022)</strong><span>International Society for Behavioral Ecology — Stockholm, Sweden</span></div>
</div>
<div class="award-item">
<div class="award-icon"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/></svg></div>
<div class="award-text"><strong>1st Place — SN Bose Science Fair (2021)</strong><span>Government of West Bengal — "Climate change impacts on migratory birds" — representing the Biological Sciences Division, Indian Statistical Institute</span></div>
</div>
<div class="award-item">
<div class="award-icon"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 10v6M2 10l10-5 10 5-10 5z"/><path d="M6 12v5c0 2 4 3 6 3s6-1 6-3v-5"/></svg></div>
<div class="award-text"><strong>CSIR-NET Senior Research Fellowship (2020)</strong><span>Council of Scientific and Industrial Research, Ministry of Science and Technology, Government of India</span></div>
</div>
<div class="award-item">
<div class="award-icon"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/></svg></div>
<div class="award-text"><strong>1st Place — Students' Paper Contest (2019)</strong><span>India Biodiversity Meet, Indian Statistical Institute — with Elsevier APC funding for open-access publication</span></div>
</div>
<div class="award-item">
<div class="award-icon"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 10v6M2 10l10-5 10 5-10 5z"/><path d="M6 12v5c0 2 4 3 6 3s6-1 6-3v-5"/></svg></div>
<div class="award-text"><strong>CSIR-NET Junior Research Fellowship x2 (2017, 2018)</strong><span>Council of Scientific and Industrial Research, Ministry of Science and Technology, Government of India</span></div>
</div>
</div>
</div>
</section>
<hr class="divider">
<!-- MEMBERSHIPS -->
<section class="section section--alt">
<div class="container">
<div class="eyebrow">Professional Memberships & Service</div>
<h2 class="section-title mb-6">Academic community</h2>
<div class="three-col">
<div class="card">
<div style="font-weight:700; margin-bottom:0.3rem;">European Geoscience Union</div>
<div class="text-xs text-muted">Member</div>
</div>
<div class="card">
<div style="font-weight:700; margin-bottom:0.3rem;">International Society for Behavioral Ecology</div>
<div class="text-xs text-muted">Member</div>
</div>
<div class="card">
<div style="font-weight:700; margin-bottom:0.3rem;">Calcutta Mathematical Society</div>
<div class="text-xs text-muted">Member</div>
</div>
</div>
<div style="margin-top: var(--space-8);">
<div class="eyebrow" style="margin-bottom: var(--space-4);">Editorial & Review Service</div>
<div class="two-col">
<div>
<div class="text-sm" style="font-weight:700; margin-bottom:0.5rem;">Peer Reviewer</div>
<div class="text-sm text-muted" style="line-height:1.9;"><em>Ecological Modelling</em> · <em>Ecological Indicators</em> · <em>Scientific Reports</em></div>
</div>
<div>
<div class="text-sm" style="font-weight:700; margin-bottom:0.5rem;">Editorial Service</div>
<div class="text-sm text-muted" style="line-height:1.9;"><em>NDC E-BIOS</em> (2023–present)<br><em>Bulletin of the Calcutta Mathematical Society</em> (2022–23)</div>
</div>
</div>
</div>
<div style="margin-top: var(--space-8);">
<div class="eyebrow" style="margin-bottom: var(--space-4);">Languages</div>
<div class="tags">
<span class="tag tag--primary">English (C1)</span>
<span class="tag tag--primary">Bengali (Native)</span>
<span class="tag tag--primary">Hindi (C1)</span>
<span class="tag">German (A2 → B1 in progress)</span>
</div>
</div>
</div>
</section>
<footer class="footer">
<div class="container">
<div class="footer__grid">
<div><div class="footer__brand-name">Dr. Sinchan Ghosh</div><div class="footer__brand-role">Ecological Modeller · IIASA</div><div class="footer__contact"><a href="mailto:gsinchanpostdoc@gmail.com">gsinchanpostdoc@gmail.com</a><a href="https://orcid.org/0000-0001-6407-383X" target="_blank">ORCID: 0000-0001-6407-383X</a></div></div>
<div><div class="footer__col-title">Portfolio</div><div class="footer__links"><a href="index.html">Home</a><a href="academic.html">Academic Journey</a><a href="publications.html">Publications</a><a href="apps.html">Research Tools</a><a href="outreach.html">Outreach</a></div></div>
<div><div class="footer__col-title">Profiles</div><div class="footer__links"><a href="https://scholar.google.com/citations?user=5dhoW-cAAAAJ&hl=en" target="_blank">Google Scholar</a><a href="https://orcid.org/0000-0001-6407-383X" target="_blank">ORCID</a><a href="https://github.com/gsinchanpostdoc" target="_blank">GitHub</a><a href="https://www.linkedin.com/in/sinchan-ghosh-b652941b7" target="_blank">LinkedIn</a></div></div>
<div><div class="footer__col-title">Languages</div><div class="footer__links"><a href="index.html">English (C1)</a><a href="index.html">Bengali (Native)</a><a href="index.html">Hindi (C1)</a><a href="index.html">German (A2→B1)</a></div></div>
</div>
<div class="footer__bottom"><div class="footer__copy">© 2026 Dr. Sinchan Ghosh</div><div class="footer__orcid">ORCID: <a href="https://orcid.org/0000-0001-6407-383X" target="_blank">0000-0001-6407-383X</a></div></div>
</div>
</footer>
<script src="nav.js"></script>
<script data-pplx-inline-edit>
(function(){
if(window===window.top)return;
function inlineAll(orig,clone){
if(orig.nodeType!==1)return;
try{
var cs=getComputedStyle(orig);
var t='';
for(var i=0;i<cs.length;i++){t+=cs[i]+':'+cs.getPropertyValue(cs[i])+';';}
clone.style.cssText=t;
}catch(e){}
var oc=orig.children,cc=clone.children;
for(var j=0;j<oc.length&&j<cc.length;j++){inlineAll(oc[j],cc[j]);}
}
function stripExternal(clone){
var imgs=clone.querySelectorAll('img');
for(var i=0;i<imgs.length;i++){
var s=imgs[i].getAttribute('src');
if(s&&!s.startsWith('data:'))imgs[i].removeAttribute('src');
}
var all=clone.querySelectorAll('*');
for(var i=0;i<all.length;i++){
var st=all[i].style.cssText;
if(st&&st.indexOf('url(')>=0){
all[i].style.cssText=st.replace(/url\(["']?(?!data:)[^)"']*["']?\)/gi,'none');
}
}
}
window.addEventListener('message',function(e){
if(!e.data||e.data.type!=='INLINE_EDIT_CAPTURE_REQUEST')return;
var scrollX=window.scrollX||window.pageXOffset||0;
var scrollY=window.scrollY||window.pageYOffset||0;
var w=window.innerWidth,h=window.innerHeight;
try{
var clone=document.documentElement.cloneNode(true);
var rm=clone.querySelectorAll('script,link[rel="stylesheet"],style');
for(var i=0;i<rm.length;i++){rm[i].remove();}
inlineAll(document.documentElement,clone);
stripExternal(clone);
var html=new XMLSerializer().serializeToString(clone);
var svg='<svg xmlns="http://www.w3.org/2000/svg" width="'+w+'" height="'+h+'">'
+'<foreignObject width="100%" height="100%">'
+'<div xmlns="http://www.w3.org/1999/xhtml" style="width:'+w+'px;height:'+h+'px;overflow:hidden">'
+'<div style="transform:translate(-'+scrollX+'px,-'+scrollY+'px);transform-origin:top left">'
+html+'</div></div></foreignObject></svg>';
var svgUrl='data:image/svg+xml;charset=utf-8,'+encodeURIComponent(svg);
var img=new Image();
img.onload=function(){
var c=document.createElement('canvas');c.width=w;c.height=h;
c.getContext('2d').drawImage(img,0,0);
window.parent.postMessage({type:'INLINE_EDIT_SCREENSHOT_RESULT',dataUrl:c.toDataURL('image/png'),scrollX:scrollX,scrollY:scrollY},'*');
};
img.onerror=function(){
window.parent.postMessage({type:'INLINE_EDIT_SCREENSHOT_RESULT',dataUrl:null,scrollX:scrollX,scrollY:scrollY},'*');
};
img.src=svgUrl;
}catch(err){
window.parent.postMessage({type:'INLINE_EDIT_SCREENSHOT_RESULT',dataUrl:null,scrollX:scrollX,scrollY:scrollY},'*');
}
});
})();
</script></body>
</html>