{"id":40917,"date":"2026-05-04T10:16:45","date_gmt":"2026-05-04T10:16:45","guid":{"rendered":"https:\/\/www.embl.org\/ells\/?post_type=teachingbase&#038;p=40917"},"modified":"2026-11-26T11:35:48","modified_gmt":"2026-11-26T11:35:48","slug":"decoding-the-epigenetic-clock","status":"publish","type":"teachingbase","link":"https:\/\/www.embl.org\/ells\/teachingbase\/decoding-the-epigenetic-clock\/","title":{"rendered":"Decoding the Epigenetic Clock"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hands-on resource on epigenetics<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<br>\n\n\n\n<div class=\"vf-banner vf-banner--alert vf-banner--info\">\n    <div class=\"vf-banner__content\">\n        <p class=\"vf-banner__text\">Thanks to the generous contributions of our EMBL colleagues, the teaching resource is now available to download in 13 languages from the &#8216;Resource package&#8217; section.<\/p>\n<p class=\"vf-banner__text\">&nbsp;<\/p>\n<p class=\"vf-banner__text\">&nbsp;<\/p>\n    <\/div>\n<\/div>                                                                                \n\n\n\n\n<br>\n\n\n\n<div class=\"vf-tabs\"><ul class=\"vf-tabs__list\" data-vf-js-tabs=\"true\"><li class=\"vf-tabs__item\"><a class=\"vf-tabs__link\" href=\"#vf-tabs__section-27ffedaf-023a-428c-9f2a-42faab6f66e4\" data-vf-js-location-nearest-activation-target=\"\">Introduction<\/a><\/li><li class=\"vf-tabs__item\"><a class=\"vf-tabs__link\" href=\"#vf-tabs__section-1b5ed71c-de16-47eb-bbab-bc645cfc4031\" data-vf-js-location-nearest-activation-target=\"\">Overview<\/a><\/li><li class=\"vf-tabs__item\"><a class=\"vf-tabs__link\" href=\"#vf-tabs__section-1079763a-d7ed-4eef-88af-c4b79ce9aec9\" data-vf-js-location-nearest-activation-target=\"\">Resource package<\/a><\/li><li class=\"vf-tabs__item\"><a class=\"vf-tabs__link\" href=\"#vf-tabs__section-8249b75f-972b-424f-9545-664bd91fd721\" data-vf-js-location-nearest-activation-target=\"\">Instructor slides<\/a><\/li><li class=\"vf-tabs__item\"><a class=\"vf-tabs__link\" href=\"#vf-tabs__section-cb44226d-100d-43a9-8530-187d70f42868\" data-vf-js-location-nearest-activation-target=\"\">Video guide on Activity 1<\/a><\/li><li class=\"vf-tabs__item\"><a class=\"vf-tabs__link\" href=\"#vf-tabs__section-bfbfda2c-74cf-4fba-a04c-e9604c5c220c\" data-vf-js-location-nearest-activation-target=\"\">Interactive Activity 1<\/a><\/li><\/ul><div class=\"vf-tabs-content\" data-vf-js-tabs-content=\"true\">\n<section class=\"vf-tabs__section\" id=\"vf-tabs__section-27ffedaf-023a-428c-9f2a-42faab6f66e4\"><h2>Introduction<\/h2>\n<p class=\"wp-block-paragraph\"><br>Although most cells in a multicellular organism have the same DNA, they can look and function very differently. This resource introduces students to epigenetics: reversible changes in gene activity that do not alter the DNA sequence itself. Students will learn about two key epigenetic mechanisms: histone modifications and DNA methylation. The primary focus of this resource is on how epigenetic changes, particularly DNA methylation patterns, can serve as powerful tools in ageing research. Through analysing simplified datasets, students will investigate epigenetic clocks and discover how these molecular patterns change predictably over time, allowing scientists to estimate biological age.<\/p>\n<\/section>\n\n\n\n<section class=\"vf-tabs__section\" id=\"vf-tabs__section-1b5ed71c-de16-47eb-bbab-bc645cfc4031\"><h2>Overview<\/h2>\n<p class=\"wp-block-paragraph\">This flexible resource is designed for secondary school teachers and students aged 16\u201319. It supports both traditional classroom teaching and flipped learning. It contains fact sheets on genetics and epigenetics, as well as student worksheets featuring data-driven activities and comprehensive teacher support materials.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Students can explore epigenetic mechanisms such as DNA methylation, analyse real-world datasets and develop their own epigenetic clock model. The resource reinforces basic knowledge of DNA and gene expression while developing data analysis skills. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Aligned with major curricula (GCSE, A-Level, IB and AP), it enables students to evaluate the role of epigenetics in understanding biological ageing.<\/p>\n<\/section>\n\n\n\n<section class=\"vf-tabs__section\" id=\"vf-tabs__section-1079763a-d7ed-4eef-88af-c4b79ce9aec9\"><h2>Resource package<\/h2>\n<p class=\"wp-block-paragraph\">Click the buttons below to access the PDF resource in your preferred language.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We welcome your and your students&#8217; feedback on the resource, so feel free to share it with us via email at teacher-training@embl.org.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<a target=\"_blank\" href=\"https:\/\/drive.google.com\/file\/d\/1xirsHe2FBDwj5OZ4kVvfez9-Qn6UJDBF\/view?usp=sharing\" class=\"wp-block-file__button vf-button vf-button--primary vf-button--pill vf-button--s wp-element-button\" download=\"\" aria-describedby=\"wp-block-file--media-ef85e28e-d631-41bf-92b5-56a345736fef\" style=\"margin:0 0 0 .75em;\" rel=\"noopener\">Decoding the Epigenetic Clock_ENGLISH<\/a>\n\n<br>\n<br>\n<hr style=\"border: 0; border-top: 2px solid #ccc; margin: 1.5em 0;\">\n<br>\n\n\n\n<!-- Bosnian-Croatian-Montenegrin-Serbian -->\n<a target=\"_blank\" href=\"https:\/\/drive.google.com\/file\/d\/16lqnbYKkzpUxwKxD6VGic7_nIoeG70fF\/view?usp=sharing\" class=\"wp-block-file__button vf-button vf-button--primary vf-button--pill vf-button--s wp-element-button\" download=\"\" aria-describedby=\"wp-block-file--media-ef85e28e-d631-41bf-92b5-56a345736fef\" style=\"margin:0 0 0 .75em;\" rel=\"noopener\">Decoding the Epigenetic Clock_BOSNIAN-CROATIAN-MONTENEGRIN-SERBIAN<\/a>\n<br>\n<br>\n\n<!-- Catalan -->\n<a target=\"_blank\" href=\"https:\/\/drive.google.com\/file\/d\/1Rxhjy-UrxdZw9A1vGsYByM245fsZU2aR\/view?usp=sharing\" class=\"wp-block-file__button vf-button vf-button--primary vf-button--pill vf-button--s wp-element-button\" download=\"\" aria-describedby=\"wp-block-file--media-ef85e28e-d631-41bf-92b5-56a345736fef\" style=\"margin:0 0 0 .75em;\" rel=\"noopener\">Decoding the Epigenetic Clock_CATALAN<\/a>\n<br>\n<br>\n\n<!-- Dutch -->\n<a target=\"_blank\" href=\"https:\/\/drive.google.com\/file\/d\/1taxJAVid9a4ikxX9HzWv3rmbzdfyjveW\/view?usp=sharing\" class=\"wp-block-file__button vf-button vf-button--primary vf-button--pill vf-button--s wp-element-button\" download=\"\" aria-describedby=\"wp-block-file--media-ef85e28e-d631-41bf-92b5-56a345736fef\" style=\"margin:0 0 0 .75em;\" rel=\"noopener\">Decoding the Epigenetic Clock_DUTCH<\/a>\n<br>\n<br>\n\n<!-- French -->\n<a target=\"_blank\" href=\"https:\/\/drive.google.com\/file\/d\/1GC_VN9M6VNN0Jzz7fpBQW6lIZ7m834iy\/view?usp=sharing\" class=\"wp-block-file__button vf-button vf-button--primary vf-button--pill vf-button--s wp-element-button\" download=\"\" aria-describedby=\"wp-block-file--media-ef85e28e-d631-41bf-92b5-56a345736fef\" style=\"margin:0 0 0 .75em;\" rel=\"noopener\">Decoding the Epigenetic Clock_FRENCH<\/a>\n<br>\n<br>\n\n<!-- German -->\n<a target=\"_blank\" href=\"https:\/\/drive.google.com\/file\/d\/1rY0xeVv6D2cOmP8IevqiNUBmiMR4DSvp\/view?usp=sharing\" class=\"wp-block-file__button vf-button vf-button--primary vf-button--pill vf-button--s wp-element-button\" download=\"\" aria-describedby=\"wp-block-file--media-ef85e28e-d631-41bf-92b5-56a345736fef\" style=\"margin:0 0 0 .75em;\" rel=\"noopener\">Decoding the Epigenetic Clock_GERMAN<\/a>\n<br>\n<br>\n\n<!-- Greek -->\n<a target=\"_blank\" href=\"https:\/\/drive.google.com\/file\/d\/16G_73o4aSmCnc33vr6JYM5z9eVO0wZPX\/view?usp=sharing\" class=\"wp-block-file__button vf-button vf-button--primary vf-button--pill vf-button--s wp-element-button\" download=\"\" aria-describedby=\"wp-block-file--media-ef85e28e-d631-41bf-92b5-56a345736fef\" style=\"margin:0 0 0 .75em;\" rel=\"noopener\">Decoding the Epigenetic Clock_GREEK<\/a>\n<br>\n<br>\n\n<!-- Italian -->\n<a target=\"_blank\" href=\"https:\/\/drive.google.com\/file\/d\/1ozaS4-FSV7lBw5_k1TWBgLn8nnUCzZkP\/view?usp=sharing\" class=\"wp-block-file__button vf-button vf-button--primary vf-button--pill vf-button--s wp-element-button\" download=\"\" aria-describedby=\"wp-block-file--media-ef85e28e-d631-41bf-92b5-56a345736fef\" style=\"margin:0 0 0 .75em;\" rel=\"noopener\">Decoding the Epigenetic Clock_ITALIAN<\/a>\n<br>\n<br>\n\n<!-- Latvian -->\n<a target=\"_blank\" href=\"https:\/\/drive.google.com\/file\/d\/1MbyOalltX2NjyaEnLg7E4qIwL4z6XfK4\/view?usp=sharing\" class=\"wp-block-file__button vf-button vf-button--primary vf-button--pill vf-button--s wp-element-button\" download=\"\" aria-describedby=\"wp-block-file--media-ef85e28e-d631-41bf-92b5-56a345736fef\" style=\"margin:0 0 0 .75em;\" rel=\"noopener\">Decoding the Epigenetic Clock_LATVIAN<\/a>\n<br>\n<br>\n\n<!-- Polish -->\n<a target=\"_blank\" href=\"https:\/\/drive.google.com\/file\/d\/1ZC9HndHzeUiDgRtzsV3bIYriOZYRSTXL\/view?usp=sharing\" class=\"wp-block-file__button vf-button vf-button--primary vf-button--pill vf-button--s wp-element-button\" download=\"\" aria-describedby=\"wp-block-file--media-ef85e28e-d631-41bf-92b5-56a345736fef\" style=\"margin:0 0 0 .75em;\" rel=\"noopener\">Decoding the Epigenetic Clock_POLISH<\/a>\n<br>\n<br>\n\n<!-- Portuguese -->\n<a target=\"_blank\" href=\"https:\/\/drive.google.com\/file\/d\/1_5pKaeJ0c20CxcZBQLH3u7q9gRrvmjFU\/view?usp=sharing\" class=\"wp-block-file__button vf-button vf-button--primary vf-button--pill vf-button--s wp-element-button\" download=\"\" aria-describedby=\"wp-block-file--media-ef85e28e-d631-41bf-92b5-56a345736fef\" style=\"margin:0 0 0 .75em;\" rel=\"noopener\">Decoding the Epigenetic Clock_PORTUGUESE<\/a>\n<br>\n<br>\n\n<!-- Slovak -->\n<a target=\"_blank\" href=\"https:\/\/drive.google.com\/file\/d\/117QB0UJtmYL-Bq_ZHbWB8ZZMA3BZcmXr\/view?usp=sharing\" class=\"wp-block-file__button vf-button vf-button--primary vf-button--pill vf-button--s wp-element-button\" download=\"\" aria-describedby=\"wp-block-file--media-ef85e28e-d631-41bf-92b5-56a345736fef\" style=\"margin:0 0 0 .75em;\" rel=\"noopener\">Decoding the Epigenetic Clock_SLOVAK<\/a>\n<br>\n<br>\n\n<!-- Spanish -->\n<a target=\"_blank\" href=\"https:\/\/drive.google.com\/file\/d\/1bdaRLOBgQFz8k7ch4MFpY4wQQ8KShhJu\/view?usp=sharing\" class=\"wp-block-file__button vf-button vf-button--primary vf-button--pill vf-button--s wp-element-button\" download=\"\" aria-describedby=\"wp-block-file--media-ef85e28e-d631-41bf-92b5-56a345736fef\" style=\"margin:0 0 0 .75em;\" rel=\"noopener\">Decoding the Epigenetic Clock_SPANISH<\/a>\n<br>\n<br>\n<\/section>\n\n\n\n<section class=\"vf-tabs__section\" id=\"vf-tabs__section-8249b75f-972b-424f-9545-664bd91fd721\"><h2>Instructor slides<\/h2>\n<p class=\"wp-block-paragraph\">We share an instructor slide deck to support your teaching and make lesson prep easier. <br>Originally developed by EMBL, please feel free to download, translate, and adapt them to fit your classroom&#8217;s needs\u2014we just ask that you credit EMBL as the source.<\/p>\n\n\n\n<a target=\"_blank\" href=\"https:\/\/docs.google.com\/presentation\/d\/1AzwdRV_b75lAsfiyEo9EglGlKgbkH4wXNW6fORzuaeA\/edit?slide=id.g3f757d7b7b0_0_0#slide=id.g3f757d7b7b0_0_0\" class=\"wp-block-file__button vf-button vf-button--primary vf-button--pill vf-button--s wp-element-button\" download=\"\" aria-describedby=\"wp-block-file--media-ef85e28e-d631-41bf-92b5-56a345736fef\" style=\"margin:0 0 0 .75em;\" rel=\"noopener\">Decoding the Epigenetic Clock_Instructor slides_EN<\/a>\n<\/section>\n\n\n\n<section class=\"vf-tabs__section\" id=\"vf-tabs__section-cb44226d-100d-43a9-8530-187d70f42868\"><h2>Video guide on Activity 1<\/h2>\n<p class=\"wp-block-paragraph\">Step-by-step video guide to Activity 1 of the &#8220;<strong>Decoding the Epigenetic Clock<\/strong>&#8221; resource. Watch in order as you work through the activity.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Access the video guide here: <a href=\"https:\/\/www.youtube.com\/playlist?list=PLaAV5NFyk3nM\">https:\/\/www.youtube.com\/playlist?list=PLaAV5NFyk3nM<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Disclaimer:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>YouTube Channel and External Video Links<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We operate a channel on YouTube and link to our videos from our website. YouTube is operated by Google Ireland Limited, Gordon House, Barrow Street, Dublin 4, Ireland (parent company: Google LLC, 1600 Amphitheatre Parkway, Mountain View, CA 94043, USA).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Links on Our Website: Our website only contains external links to YouTube; no data is transmitted to YouTube simply by visiting our website. Only when you click a link to visit YouTube are you redirected to YouTube&#8217;s platform, where Google&#8217;s privacy policy applies.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Data Processing on Our YouTube Channel: When you visit our YouTube channel or watch our videos on YouTube, Google processes your personal data (such as your IP address, device information, and viewing behaviour) to provide the platform, personalise content, and display advertising. We have no control over the extent of this data collection by Google, though we receive anonymised, aggregated statistics (YouTube Analytics) about how our videos perform.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Legal Basis &amp; Third-Country Transfer: We operate our YouTube channel based on our legitimate interest in public outreach and accessible video communication pursuant to Art. 6(1)(f) GDPR. Because Google LLC is based in the USA, data may be transferred to the United States. Google LLC is certified under the EU\u2013US Data Privacy Framework (DPF).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For full details on how YouTube\/Google processes your data and how to adjust your privacy settings, please see Google&#8217;s Privacy Policy: <a href=\"https:\/\/policies.google.com\/privacy\" target=\"_blank\" rel=\"noopener\">https:\/\/policies.google.com\/privacy<\/a>.<\/p>\n<\/section>\n\n\n\n<section class=\"vf-tabs__section\" id=\"vf-tabs__section-bfbfda2c-74cf-4fba-a04c-e9604c5c220c\"><h2>Interactive Activity 1<\/h2>    <section class=\"ells-interactive\" data-ells-interactive aria-labelledby=\"ells-interactive-1-title\">\n        <header class=\"ells-interactive__header\">\n            <h2 id=\"ells-interactive-1-title\">Build an epigenetic clock<\/h2>\n            <p data-activity-status aria-live=\"polite\"><\/p>\n            <nav aria-label=\"Activity steps\" data-activity-nav hidden>\n                                    <button type=\"button\" data-step=\"0\" aria-controls=\"ells-interactive-1-step-0\">Step 1<\/button>\n                                    <button type=\"button\" data-step=\"1\" aria-controls=\"ells-interactive-1-step-1\">Step 2<\/button>\n                                    <button type=\"button\" data-step=\"2\" aria-controls=\"ells-interactive-1-step-2\">Step 3<\/button>\n                                    <button type=\"button\" data-step=\"3\" aria-controls=\"ells-interactive-1-step-3\">Step 4<\/button>\n                            <\/nav>\n        <\/header>\n                    <div class=\"ells-interactive__panel\" id=\"ells-interactive-1-step-0\" data-activity-panel>\n                <h3 tabindex=\"-1\">Identify Age-Related CpG Loci<\/h3>\n                                                        <iframe data-activity-frame title=\"Identify Age-Related CpG Loci\" srcdoc=\"&lt;!DOCTYPE html&gt;\n&lt;html lang=&quot;en&quot;&gt;\n&lt;head&gt;&lt;meta http-equiv=&quot;Content-Security-Policy&quot; content=&quot;default-src &amp;#039;none&amp;#039;; script-src &amp;#039;unsafe-inline&amp;#039;; style-src &amp;#039;unsafe-inline&amp;#039;; img-src data:; font-src data:; connect-src &amp;#039;none&amp;#039;; frame-src &amp;#039;none&amp;#039;; object-src &amp;#039;none&amp;#039;; base-uri &amp;#039;none&amp;#039;; form-action &amp;#039;none&amp;#039;&quot;&gt;&lt;style&gt;html { overflow-y: hidden; }\nbody { min-height: 0; display: flow-root; }\nbutton:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid #2684c6; outline-offset: 2px; }\n.chip { font: inherit; }\n#plot-point { margin: 12px 0 0; background: #0a5032; color: white; }\n.plot-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; padding: 10px; }\n.plot-controls label { display: grid; gap: 4px; font-size: 14px; }\n.plot-controls input { width: 120px; padding: 8px; font: inherit; border: 1px solid #54585a; border-radius: 4px; }\n&lt;\/style&gt;\n  &lt;meta charset=&quot;UTF-8&quot;&gt;\n  &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;\n  &lt;title&gt;Step 1: Identify Age-Related CpG Loci&lt;\/title&gt;\n  &lt;style&gt;\n    * { box-sizing: border-box; margin: 0; padding: 0; }\n\n    body {\n      font-family: &#039;IBM Plex Sans&#039;, Helvetica, Arial, sans-serif;\n      background: transparent;\n      color: #373A36;\n      padding: 12px 24px;\n      max-width: 100%;\n      width: 100%;\n      margin: 0;\n      line-height: 1.45;\n    }\n\n    .instruction {\n      background: #fff;\n      border-left: 3px solid #18974C;\n      padding: 10px 20px;\n      margin-bottom: 10px;\n      font-size: 20px;\n      font-family: &#039;IBM Plex Sans&#039;, Helvetica, Arial, sans-serif;\n      color: #373A36;\n      border-radius: 0 6px 6px 0;\n      line-height: 1.6;\n    }\n\n    .table-wrapper {\n      overflow-x: auto;\n      margin-bottom: 10px;\n      border-radius: 8px;\n      box-shadow: 0 1px 4px rgba(0,0,0,0.08);\n    }\n\n    table {\n      width: 100%;\n      border-collapse: collapse;\n      font-size: 17px;\n      font-family: &#039;IBM Plex Sans&#039;, Helvetica, Arial, sans-serif;\n      background: #fff;\n      min-width: 680px;\n    }\n\n    th {\n      background: #0A5032;\n      color: #D0DEBB;\n      font-weight: 500;\n      font-size: 18px;\n      padding: 10px 8px;\n      text-align: center;\n      border: 1px solid #0A5032;\n      line-height: 1.3;\n    }\n\n    td {\n      border: 1px solid #D0D0CE;\n      padding: 9px 8px;\n      text-align: center;\n      vertical-align: middle;\n    }\n\n    .age-col {\n      background: #D0D0CE;\n      font-weight: 600;\n      color: #373A36;\n      font-size: 17px;\n    }\n\n    .data-cell {\n      background: #fff;\n      color: #373A36;\n    }\n\n    .dropdown-row td {\n      background: #fafaf8;\n      padding: 8px 6px;\n    }\n\n    .dropdown-label {\n      font-weight: 600;\n      font-size: 17px;\n      color: #54585A;\n      text-transform: uppercase;\n      letter-spacing: 0.04em;\n    }\n\n    select {\n      width: 100%;\n      font-size: 17px;\n      padding: 8px 6px;\n      border: 1px solid #A8A99E;\n      border-radius: 5px;\n      background: #fff;\n      color: #373A36;\n      cursor: pointer;\n      font-family: &#039;IBM Plex Sans&#039;, Helvetica, Arial, sans-serif;\n      appearance: auto;\n    }\n\n    select:focus {\n      outline: 2px solid #18974C;\n      outline-offset: 1px;\n    }\n\n    select.correct {\n      border-color: #18974C;\n      background: #D0DEBB;\n      color: #0A5032;\n      font-weight: 600;\n    }\n\n    select.wrong {\n      border-color: #D41645;\n      background: #fff;\n      color: #A6093D;\n    }\n\n    .col-pos { background: #E58F9E !important; }\n    .col-neg { background: #8BB8E8 !important; }\n\n    .btn-row {\n      display: flex;\n      gap: 12px;\n      align-items: center;\n      margin-top: 2px;\n    }\n\n    button {\n      padding: 12px 28px;\n      border: none;\n      border-radius: 6px;\n      font-size: 17px;\n      font-family: &#039;IBM Plex Sans&#039;, Helvetica, Arial, sans-serif;\n      cursor: pointer;\n      transition: background 0.15s, transform 0.1s;\n    }\n\n    button:active { transform: scale(0.98); }\n\n    .btn-check {\n      background: #18974C;\n      color: #fff;\n    }\n\n    .btn-check:hover { background: #0A5032; }\n\n    .btn-reset {\n      background: transparent;\n      border: 1px solid #A8A99E;\n      color: #54585A;\n    }\n\n    .btn-reset:hover { background: #D0D0CE; }\n\n    .feedback {\n      margin-top: 10px;\n      font-size: 18px;\n      font-family: &#039;IBM Plex Sans&#039;, Helvetica, Arial, sans-serif;\n      line-height: 1.7;\n      min-height: 24px;\n    }\n\n    .feedback ul {\n      margin: 8px 0 0 18px;\n    }\n\n    .feedback li {\n      margin-bottom: 4px;\n    }\n\n    .score-good { color: #0A5032; font-weight: 600; }\n    .score-bad { color: #A6093D; font-weight: 600; }\n\n    .summary-box {\n      margin-top: 16px;\n      background: #D0DEBB;\n      border: 1px solid #6CC24A;\n      border-radius: 6px;\n      padding: 16px 20px;\n      font-size: 18px;\n      font-family: &#039;IBM Plex Sans&#039;, Helvetica, Arial, sans-serif;\n      display: none;\n    }\n\n    .summary-box strong { color: #0A5032; }\n\n    @media (max-width: 760px) {\n      body { padding: 10px 14px; }\n      .instruction { font-size: 16px; padding: 8px 14px; }\n      table { font-size: 14px; min-width: 520px; }\n      th { font-size: 14px; padding: 7px 5px; }\n      td { padding: 6px 5px; }\n      .age-col, .data-cell { font-size: 13px; }\n      .dropdown-label { font-size: 12px; }\n      select { font-size: 13px; padding: 6px 4px; }\n      button { font-size: 14px; padding: 10px 18px; }\n      .feedback, .summary-box { font-size: 14px; }\n    }\n\n    @media (max-width: 480px) {\n      table { min-width: 440px; }\n      .btn-row { flex-wrap: wrap; }\n    }\n  &lt;\/style&gt;\n\n&lt;\/head&gt;\n&lt;body&gt;\n\n  &lt;div class=&quot;instruction&quot;&gt;\n    Look at each CpG locus (each column) and consider how methylation changes as age increases. Choose the correlation type for each locus. Then identify the &lt;strong&gt;two loci with the strongest positive correlation&lt;\/strong&gt; and the &lt;strong&gt;two with the strongest negative correlation&lt;\/strong&gt; &amp;mdash; these will form the basis of your epigenetic clock.\n  &lt;\/div&gt;\n\n  &lt;div class=&quot;table-wrapper&quot;&gt;\n    &lt;table id=&quot;main-table&quot;&gt;\n      &lt;thead&gt;\n        &lt;tr&gt;\n          &lt;th style=&quot;width:90px&quot;&gt;Age of mouse&lt;br&gt;(weeks)&lt;\/th&gt;\n          &lt;th&gt;CpG&lt;br&gt;Locus 1&lt;\/th&gt;\n          &lt;th&gt;CpG&lt;br&gt;Locus 2&lt;\/th&gt;\n          &lt;th&gt;CpG&lt;br&gt;Locus 3&lt;\/th&gt;\n          &lt;th&gt;CpG&lt;br&gt;Locus 4&lt;\/th&gt;\n          &lt;th&gt;CpG&lt;br&gt;Locus 5&lt;\/th&gt;\n          &lt;th&gt;CpG&lt;br&gt;Locus 6&lt;\/th&gt;\n          &lt;th&gt;CpG&lt;br&gt;Locus 7&lt;\/th&gt;\n          &lt;th&gt;CpG&lt;br&gt;Locus 8&lt;\/th&gt;\n        &lt;\/tr&gt;\n      &lt;\/thead&gt;\n      &lt;tbody&gt;\n        &lt;tr&gt;\n          &lt;td class=&quot;age-col&quot;&gt;1&lt;\/td&gt;\n          &lt;td class=&quot;data-cell&quot; data-col=&quot;1&quot;&gt;32&lt;\/td&gt;\n          &lt;td class=&quot;data-cell&quot; data-col=&quot;2&quot;&gt;0&lt;\/td&gt;\n          &lt;td class=&quot;data-cell&quot; data-col=&quot;3&quot;&gt;52&lt;\/td&gt;\n          &lt;td class=&quot;data-cell&quot; data-col=&quot;4&quot;&gt;50&lt;\/td&gt;\n          &lt;td class=&quot;data-cell&quot; data-col=&quot;5&quot;&gt;38&lt;\/td&gt;\n          &lt;td class=&quot;data-cell&quot; data-col=&quot;6&quot;&gt;58&lt;\/td&gt;\n          &lt;td class=&quot;data-cell&quot; data-col=&quot;7&quot;&gt;35&lt;\/td&gt;\n          &lt;td class=&quot;data-cell&quot; data-col=&quot;8&quot;&gt;74&lt;\/td&gt;\n        &lt;\/tr&gt;\n        &lt;tr&gt;\n          &lt;td class=&quot;age-col&quot;&gt;14&lt;\/td&gt;\n          &lt;td class=&quot;data-cell&quot; data-col=&quot;1&quot;&gt;46&lt;\/td&gt;\n          &lt;td class=&quot;data-cell&quot; data-col=&quot;2&quot;&gt;0&lt;\/td&gt;\n          &lt;td class=&quot;data-cell&quot; data-col=&quot;3&quot;&gt;30&lt;\/td&gt;\n          &lt;td class=&quot;data-cell&quot; data-col=&quot;4&quot;&gt;95&lt;\/td&gt;\n          &lt;td class=&quot;data-cell&quot; data-col=&quot;5&quot;&gt;58&lt;\/td&gt;\n          &lt;td class=&quot;data-cell&quot; data-col=&quot;6&quot;&gt;53&lt;\/td&gt;\n          &lt;td class=&quot;data-cell&quot; data-col=&quot;7&quot;&gt;14&lt;\/td&gt;\n          &lt;td class=&quot;data-cell&quot; data-col=&quot;8&quot;&gt;50&lt;\/td&gt;\n        &lt;\/tr&gt;\n        &lt;tr&gt;\n          &lt;td class=&quot;age-col&quot;&gt;27&lt;\/td&gt;\n          &lt;td class=&quot;data-cell&quot; data-col=&quot;1&quot;&gt;63&lt;\/td&gt;\n          &lt;td class=&quot;data-cell&quot; data-col=&quot;2&quot;&gt;0&lt;\/td&gt;\n          &lt;td class=&quot;data-cell&quot; data-col=&quot;3&quot;&gt;18&lt;\/td&gt;\n          &lt;td class=&quot;data-cell&quot; data-col=&quot;4&quot;&gt;100&lt;\/td&gt;\n          &lt;td class=&quot;data-cell&quot; data-col=&quot;5&quot;&gt;73&lt;\/td&gt;\n          &lt;td class=&quot;data-cell&quot; data-col=&quot;6&quot;&gt;92&lt;\/td&gt;\n          &lt;td class=&quot;data-cell&quot; data-col=&quot;7&quot;&gt;13&lt;\/td&gt;\n          &lt;td class=&quot;data-cell&quot; data-col=&quot;8&quot;&gt;100&lt;\/td&gt;\n        &lt;\/tr&gt;\n        &lt;tr&gt;\n          &lt;td class=&quot;age-col&quot;&gt;41&lt;\/td&gt;\n          &lt;td class=&quot;data-cell&quot; data-col=&quot;1&quot;&gt;82&lt;\/td&gt;\n          &lt;td class=&quot;data-cell&quot; data-col=&quot;2&quot;&gt;0&lt;\/td&gt;\n          &lt;td class=&quot;data-cell&quot; data-col=&quot;3&quot;&gt;10&lt;\/td&gt;\n          &lt;td class=&quot;data-cell&quot; data-col=&quot;4&quot;&gt;80&lt;\/td&gt;\n          &lt;td class=&quot;data-cell&quot; data-col=&quot;5&quot;&gt;76&lt;\/td&gt;\n          &lt;td class=&quot;data-cell&quot; data-col=&quot;6&quot;&gt;70&lt;\/td&gt;\n          &lt;td class=&quot;data-cell&quot; data-col=&quot;7&quot;&gt;8&lt;\/td&gt;\n          &lt;td class=&quot;data-cell&quot; data-col=&quot;8&quot;&gt;63&lt;\/td&gt;\n        &lt;\/tr&gt;\n        &lt;tr class=&quot;dropdown-row&quot;&gt;\n          &lt;td class=&quot;dropdown-label&quot;&gt;Correlation&lt;br&gt;type&lt;\/td&gt;\n          &lt;td&gt;&lt;select id=&quot;l1&quot; onchange=&quot;highlightCol(1,this.value)&quot;&gt;&lt;option value=&quot;&quot;&gt;Select...&lt;\/option&gt;&lt;option value=&quot;pos&quot;&gt;Positive&lt;\/option&gt;&lt;option value=&quot;neg&quot;&gt;Negative&lt;\/option&gt;&lt;option value=&quot;none&quot;&gt;No clear trend&lt;\/option&gt;&lt;\/select&gt;&lt;\/td&gt;\n          &lt;td&gt;&lt;select id=&quot;l2&quot; onchange=&quot;highlightCol(2,this.value)&quot;&gt;&lt;option value=&quot;&quot;&gt;Select...&lt;\/option&gt;&lt;option value=&quot;pos&quot;&gt;Positive&lt;\/option&gt;&lt;option value=&quot;neg&quot;&gt;Negative&lt;\/option&gt;&lt;option value=&quot;none&quot;&gt;No clear trend&lt;\/option&gt;&lt;\/select&gt;&lt;\/td&gt;\n          &lt;td&gt;&lt;select id=&quot;l3&quot; onchange=&quot;highlightCol(3,this.value)&quot;&gt;&lt;option value=&quot;&quot;&gt;Select...&lt;\/option&gt;&lt;option value=&quot;pos&quot;&gt;Positive&lt;\/option&gt;&lt;option value=&quot;neg&quot;&gt;Negative&lt;\/option&gt;&lt;option value=&quot;none&quot;&gt;No clear trend&lt;\/option&gt;&lt;\/select&gt;&lt;\/td&gt;\n          &lt;td&gt;&lt;select id=&quot;l4&quot; onchange=&quot;highlightCol(4,this.value)&quot;&gt;&lt;option value=&quot;&quot;&gt;Select...&lt;\/option&gt;&lt;option value=&quot;pos&quot;&gt;Positive&lt;\/option&gt;&lt;option value=&quot;neg&quot;&gt;Negative&lt;\/option&gt;&lt;option value=&quot;none&quot;&gt;No clear trend&lt;\/option&gt;&lt;\/select&gt;&lt;\/td&gt;\n          &lt;td&gt;&lt;select id=&quot;l5&quot; onchange=&quot;highlightCol(5,this.value)&quot;&gt;&lt;option value=&quot;&quot;&gt;Select...&lt;\/option&gt;&lt;option value=&quot;pos&quot;&gt;Positive&lt;\/option&gt;&lt;option value=&quot;neg&quot;&gt;Negative&lt;\/option&gt;&lt;option value=&quot;none&quot;&gt;No clear trend&lt;\/option&gt;&lt;\/select&gt;&lt;\/td&gt;\n          &lt;td&gt;&lt;select id=&quot;l6&quot; onchange=&quot;highlightCol(6,this.value)&quot;&gt;&lt;option value=&quot;&quot;&gt;Select...&lt;\/option&gt;&lt;option value=&quot;pos&quot;&gt;Positive&lt;\/option&gt;&lt;option value=&quot;neg&quot;&gt;Negative&lt;\/option&gt;&lt;option value=&quot;none&quot;&gt;No clear trend&lt;\/option&gt;&lt;\/select&gt;&lt;\/td&gt;\n          &lt;td&gt;&lt;select id=&quot;l7&quot; onchange=&quot;highlightCol(7,this.value)&quot;&gt;&lt;option value=&quot;&quot;&gt;Select...&lt;\/option&gt;&lt;option value=&quot;pos&quot;&gt;Positive&lt;\/option&gt;&lt;option value=&quot;neg&quot;&gt;Negative&lt;\/option&gt;&lt;option value=&quot;none&quot;&gt;No clear trend&lt;\/option&gt;&lt;\/select&gt;&lt;\/td&gt;\n          &lt;td&gt;&lt;select id=&quot;l8&quot; onchange=&quot;highlightCol(8,this.value)&quot;&gt;&lt;option value=&quot;&quot;&gt;Select...&lt;\/option&gt;&lt;option value=&quot;pos&quot;&gt;Positive&lt;\/option&gt;&lt;option value=&quot;neg&quot;&gt;Negative&lt;\/option&gt;&lt;option value=&quot;none&quot;&gt;No clear trend&lt;\/option&gt;&lt;\/select&gt;&lt;\/td&gt;\n        &lt;\/tr&gt;\n      &lt;\/tbody&gt;\n    &lt;\/table&gt;\n  &lt;\/div&gt;\n\n  &lt;div class=&quot;btn-row&quot;&gt;\n    &lt;button class=&quot;btn-check&quot; onclick=&quot;checkAnswers()&quot;&gt;Check answers&lt;\/button&gt;\n    &lt;button class=&quot;btn-reset&quot; onclick=&quot;resetAll()&quot;&gt;Reset&lt;\/button&gt;\n  &lt;\/div&gt;\n\n  &lt;div class=&quot;feedback&quot; id=&quot;feedback&quot;&gt;&lt;\/div&gt;\n\n  &lt;div class=&quot;summary-box&quot; id=&quot;summary&quot;&gt;\n    &lt;strong&gt;All correct!&lt;\/strong&gt; You now have loci that show a change in methylation with age, and can be used to create a clock equation.\n  &lt;\/div&gt;\n\n  &lt;script&gt;\n    var answers = { l1:&#039;pos&#039;, l2:&#039;none&#039;, l3:&#039;neg&#039;, l4:&#039;none&#039;, l5:&#039;pos&#039;, l6:&#039;none&#039;, l7:&#039;neg&#039;, l8:&#039;none&#039; };\n\n    var hints = {\n      l1: &#039;Locus 1: 32 &amp;rarr; 46 &amp;rarr; 63 &amp;rarr; 82. The amount of methylation increases steadily over time.&#039;,\n      l2: &#039;Locus 2: 0 &amp;rarr; 0 &amp;rarr; 0 &amp;rarr; 0. It\\&#039;s consistent, but it\\&#039;s not showing a change in methylation over time at all!&#039;,\n      l3: &#039;Locus 3: 52 &amp;rarr; 30 &amp;rarr; 18 &amp;rarr; 10. The percentage methylation at that locus just keeps decreasing.&#039;,\n      l4: &#039;Locus 4: 50 &amp;rarr; 95 &amp;rarr; 100 &amp;rarr; 80. This one may look like an increase, but what happens between 27 and 41 weeks?&#039;,\n      l5: &#039;Locus 5: 38 &amp;rarr; 58 &amp;rarr; 73 &amp;rarr; 76. Consistent increase &amp;mdash; looks good!&#039;,\n      l6: &#039;Locus 6: 58 &amp;rarr; 53 &amp;rarr; 92 &amp;rarr; 70. Up and down &amp;mdash; not very helpful data to build a clock with!&#039;,\n      l7: &#039;Locus 7: 35 &amp;rarr; 14 &amp;rarr; 13 &amp;rarr; 8. The decreases are small between the age groups, but it\\&#039;s still a decrease!&#039;,\n      l8: &#039;Locus 8: 74 &amp;rarr; 50 &amp;rarr; 100 &amp;rarr; 63. Dramatic changes, but not a clear correlation.&#039;\n    };\n\n    function highlightCol(col, val) {\n      document.querySelectorAll(&#039;[data-col=&quot;&#039; + col + &#039;&quot;]&#039;).forEach(function(cell) {\n        cell.classList.remove(&#039;col-pos&#039;, &#039;col-neg&#039;);\n        if (val === &#039;pos&#039;) cell.classList.add(&#039;col-pos&#039;);\n        else if (val === &#039;neg&#039;) cell.classList.add(&#039;col-neg&#039;);\n      });\n    }\n\n    function checkAnswers() {\n      var correct = 0;\n      var wrongHints = [];\n      var posCount = 0;\n      var negCount = 0;\n\n      Object.keys(answers).forEach(function(id) {\n        var sel = document.getElementById(id);\n        sel.classList.remove(&#039;correct&#039;, &#039;wrong&#039;);\n        if (sel.value === &#039;pos&#039;) posCount++;\n        if (sel.value === &#039;neg&#039;) negCount++;\n        if (!sel.value) { wrongHints.push(hints[id]); return; }\n        if (sel.value === answers[id]) { sel.classList.add(&#039;correct&#039;); correct++; }\n        else { sel.classList.add(&#039;wrong&#039;); wrongHints.push(hints[id]); }\n      });\n\n      var fb = document.getElementById(&#039;feedback&#039;);\n      var summary = document.getElementById(&#039;summary&#039;);\n\n      if (correct === 8) {\n        fb.innerHTML = &#039;&#039;;\n        summary.style.display = &#039;block&#039;;\n        return;\n      }\n\n      summary.style.display = &#039;none&#039;;\n      var overSelectionNotes = [];\n      if (posCount &gt; 2) overSelectionNotes.push(&#039;You have selected more than two loci as positive &amp;mdash; only select the &lt;strong&gt;two strongest positive correlations.&#039;);\n      if (negCount &gt; 2) overSelectionNotes.push(&#039;You have selected more than two loci as negative &amp;mdash; only select the &lt;strong&gt;two strongest negative correlations.&#039;);\n      if (posCount &lt; 2) overSelectionNotes.push(&#039;You have selected fewer than two loci as positive &amp;mdash; look again for the &lt;strong&gt;two strongest positive correlations.&#039;);\n      if (negCount &lt; 2) overSelectionNotes.push(&#039;You have selected fewer than two loci as negative &amp;mdash; look again for the &lt;strong&gt;two strongest negative correlations.&#039;);\n\n      var html = &#039;&#039;;\n      if (overSelectionNotes.length) {\n        html += &#039;&lt;div style=&quot;margin-bottom:10px;&quot;&gt;&#039; + overSelectionNotes.join(&#039;&lt;br&gt;&#039;) + &#039;&#039;;\n      }\n      html += &#039;&lt;span class=&quot;score-bad&quot;&gt;&#039; + correct + &#039;\/8 correct. Review the highlighted columns and consider these hints:&lt;ul&gt;&#039;;\n      wrongHints.forEach(function(h) { html += &#039;&lt;li&gt;&#039; + h + &#039;&#039;; });\n      html += &#039;&#039;;\n      fb.innerHTML = html;\n    }\n\n    function resetAll() {\n      Object.keys(answers).forEach(function(id) {\n        var sel = document.getElementById(id);\n        sel.value = &#039;&#039;;\n        sel.classList.remove(&#039;correct&#039;, &#039;wrong&#039;);\n      });\n      for (var i = 1; i &lt;= 8; i++) {\n        document.querySelectorAll(&#039;[data-col=&quot;&#039; + i + &#039;&quot;]&#039;).forEach(function(cell) {\n          cell.classList.remove(&#039;col-pos&#039;, &#039;col-neg&#039;);\n        });\n      }\n      document.getElementById(&#039;feedback&#039;).innerHTML = &#039;&#039;;\n      document.getElementById(&#039;summary&#039;).style.display = &#039;none&#039;;\n    }\n  &lt;\/script&gt;\n\n  \n\n&lt;script&gt;(function () {\n  &#039;use strict&#039;;\n  \/\/ Give legacy table controls accessible names without changing answer logic.\n  document.querySelectorAll(&#039;select, input&#039;).forEach(function (control) {\n    if (control.labels.length || control.hasAttribute(&#039;aria-label&#039;)) return;\n    var cell = control.closest(&#039;td&#039;);\n    var row = control.closest(&#039;tr&#039;);\n    var table = control.closest(&#039;table&#039;);\n    var heading = table &amp;&amp; cell ? table.querySelectorAll(&#039;thead th&#039;)[cell.cellIndex] : null;\n    control.setAttribute(&#039;aria-label&#039;, [heading &amp;&amp; heading.textContent.trim(), row &amp;&amp; row.cells[0].textContent.trim()].filter(Boolean).join(&#039; \u2014 &#039;) || control.id);\n  });\n  document.querySelectorAll(&#039;#feedback, #summary&#039;).forEach(function (element) {\n    element.setAttribute(&#039;aria-live&#039;, &#039;polite&#039;);\n  });\n  var scheduled = false;\n  var lastHeight = 0;\n  function measure() {\n    if (scheduled) return;\n    scheduled = true;\n    requestAnimationFrame(function () {\n      scheduled = false;\n      \/\/ Body content height can shrink, unlike documentElement.scrollHeight.\n      var height = Math.ceil(document.body.getBoundingClientRect().height) + 2;\n      if (height &gt; 2 &amp;&amp; height !== lastHeight) {\n        lastHeight = height;\n        window.parent.postMessage({type: &#039;ells:height&#039;, height: height}, &#039;*&#039;);\n      }\n    });\n  }\n  window.addEventListener(&#039;message&#039;, function (event) {\n    if (event.source === window.parent &amp;&amp; event.data &amp;&amp; event.data.type === &#039;ells:measure&#039;) {\n      lastHeight = 0;\n      measure();\n    }\n  });\n  new ResizeObserver(measure).observe(document.body);\n  window.addEventListener(&#039;load&#039;, measure);\n  window.addEventListener(&#039;resize&#039;, measure);\n  measure();\n})();\n&lt;\/script&gt;&lt;\/body&gt;\n&lt;\/html&gt;\n\" sandbox=\"allow-scripts\" referrerpolicy=\"no-referrer\" height=\"700\"><\/iframe>\n                            <\/div>\n                    <div class=\"ells-interactive__panel\" id=\"ells-interactive-1-step-1\" data-activity-panel>\n                <h3 tabindex=\"-1\">Align CpG Loci \u2014 Inversion Table<\/h3>\n                                                        <iframe data-activity-frame title=\"Align CpG Loci \u2014 Inversion Table\" srcdoc=\"&lt;!DOCTYPE html&gt;\n&lt;html lang=&quot;en&quot;&gt;\n&lt;head&gt;&lt;meta http-equiv=&quot;Content-Security-Policy&quot; content=&quot;default-src &amp;#039;none&amp;#039;; script-src &amp;#039;unsafe-inline&amp;#039;; style-src &amp;#039;unsafe-inline&amp;#039;; img-src data:; font-src data:; connect-src &amp;#039;none&amp;#039;; frame-src &amp;#039;none&amp;#039;; object-src &amp;#039;none&amp;#039;; base-uri &amp;#039;none&amp;#039;; form-action &amp;#039;none&amp;#039;&quot;&gt;&lt;style&gt;html { overflow-y: hidden; }\nbody { min-height: 0; display: flow-root; }\nbutton:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid #2684c6; outline-offset: 2px; }\n.chip { font: inherit; }\n#plot-point { margin: 12px 0 0; background: #0a5032; color: white; }\n.plot-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; padding: 10px; }\n.plot-controls label { display: grid; gap: 4px; font-size: 14px; }\n.plot-controls input { width: 120px; padding: 8px; font: inherit; border: 1px solid #54585a; border-radius: 4px; }\n&lt;\/style&gt;\n  &lt;meta charset=&quot;UTF-8&quot;&gt;\n  &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;\n  &lt;title&gt;Step 2: Align CpG Loci &amp;mdash; Inversion Table&lt;\/title&gt;\n  &lt;style&gt;\n    * { box-sizing: border-box; margin: 0; padding: 0; }\n\n    body {\n      font-family: &#039;IBM Plex Sans&#039;, Helvetica, Arial, sans-serif;\n      background: transparent;\n      color: #373A36;\n      padding: 12px 24px;\n      max-width: 100%;\n      width: 100%;\n      margin: 0;\n      line-height: 1.45;\n    }\n\n    .instruction {\n      background: #fff;\n      border-left: 3px solid #18974C;\n      padding: 8px 20px;\n      margin-bottom: 8px;\n      font-size: 20px;\n      font-family: &#039;IBM Plex Sans&#039;, Helvetica, Arial, sans-serif;\n      color: #373A36;\n      border-radius: 0 6px 6px 0;\n      line-height: 1.6;\n    }\n\n    .formula-line {\n      margin-top: 4px;\n      font-size: 20px;\n      font-weight: 600;\n      color: #0A5032;\n    }\n\n    .legend {\n      display: flex;\n      gap: 20px;\n      margin-bottom: 8px;\n      flex-wrap: wrap;\n      font-family: &#039;IBM Plex Sans&#039;, Helvetica, Arial, sans-serif;\n      font-size: 18px;\n    }\n\n    .legend-item {\n      display: flex;\n      align-items: center;\n      gap: 7px;\n    }\n\n    .legend-dot {\n      width: 14px;\n      height: 14px;\n      border-radius: 3px;\n      flex-shrink: 0;\n      border: 1px solid rgba(0,0,0,0.12);\n    }\n\n    .table-wrapper {\n      overflow-x: auto;\n      margin-bottom: 10px;\n      border-radius: 8px;\n      box-shadow: 0 1px 4px rgba(0,0,0,0.08);\n    }\n\n    table {\n      width: 100%;\n      border-collapse: collapse;\n      font-size: 17px;\n      font-family: &#039;IBM Plex Sans&#039;, Helvetica, Arial, sans-serif;\n      background: #fff;\n      min-width: 680px;\n    }\n\n    th {\n      background: #0A5032;\n      color: #D0DEBB;\n      font-weight: 500;\n      font-size: 18px;\n      padding: 8px 8px;\n      text-align: center;\n      border: 1px solid #000;\n      line-height: 1.3;\n    }\n\n    td {\n      border: 1px solid #000;\n      padding: 7px 8px;\n      text-align: center;\n      vertical-align: middle;\n    }\n\n    .age-col {\n      background: #D0D0CE;\n      font-weight: 600;\n      color: #373A36;\n      font-size: 17px;\n    }\n\n    .data-cell {\n      background: #fff;\n      color: #373A36;\n    }\n\n    .dropdown-row td {\n      background: #fafaf8;\n      padding: 8px 6px;\n    }\n\n    .dropdown-label {\n      font-weight: 600;\n      font-size: 17px;\n      color: #54585A;\n      text-transform: uppercase;\n      letter-spacing: 0.04em;\n    }\n\n    select {\n      width: 100%;\n      font-size: 17px;\n      padding: 8px 6px;\n      border: 1px solid #A8A99E;\n      border-radius: 5px;\n      background: #fff;\n      color: #373A36;\n      cursor: pointer;\n      font-family: &#039;IBM Plex Sans&#039;, Helvetica, Arial, sans-serif;\n      appearance: auto;\n    }\n\n    select:focus {\n      outline: 2px solid #18974C;\n      outline-offset: 1px;\n    }\n\n    select.correct {\n      border-color: #18974C;\n      background: #D0DEBB;\n      color: #0A5032;\n      font-weight: 600;\n    }\n\n    select.wrong {\n      border-color: #D41645;\n      background: #fff;\n      color: #A6093D;\n    }\n\n    .col-pos { background: #E58F9E !important; }\n    .col-neg { background: #8BB8E8 !important; }\n\n    \/* Activity 2 &amp;mdash; inversion table column themes *\/\n    th.th-inc, td.inc-col {\n      background: #F6D9DE;\n      color: #A6093D;\n    }\n    th.th-inc { background: #E58F9E; color: #fff; }\n\n    th.th-dec, td.raw-col {\n      background: #DCEAF9;\n      color: #193F90;\n    }\n    th.th-dec { background: #8BB8E8; color: #fff; }\n\n    td.raw-col { font-size: 15.5px; white-space: nowrap; }\n\n    th.th-inv-col { background: #0A5032; color: #D0DEBB; }\n    td.inv-col { background: #EAF3E3; }\n\n    th.th-clock { background: #0A5032; color: #D0DEBB; }\n    td.clock-col { background: #F7F7F5; color: #54585A; }\n\n    .clock-formula {\n      font-size: 13.5px;\n      white-space: nowrap;\n    }\n\n    .example-row td {\n      background: #FAFAF8;\n      color: #54585A;\n      font-style: italic;\n    }\n    .example-row .inc-col { background: #F6D9DE; color: #A6093D; font-style: normal; font-weight: 600; }\n    .example-row .raw-col { background: #DCEAF9; color: #193F90; font-style: normal; font-weight: 600; }\n    .example-row .inv-col { background: #EAF3E3; color: #0A5032; font-style: normal; font-weight: 700; }\n\n    .example-label {\n      font-weight: 600;\n      font-style: normal;\n      font-size: 13px;\n      text-transform: uppercase;\n      letter-spacing: 0.04em;\n      color: #54585A;\n    }\n\n    input[type=number] {\n      width: 62px;\n      padding: 7px 4px;\n      text-align: center;\n      border: 1px solid #A8A99E;\n      border-radius: 5px;\n      font-size: 17px;\n      background: #fff;\n      color: #0A5032;\n      font-family: &#039;IBM Plex Sans&#039;, Helvetica, Arial, sans-serif;\n    }\n\n    input[type=number]:focus {\n      outline: 2px solid #18974C;\n      outline-offset: 1px;\n    }\n\n    input.correct {\n      border-color: #18974C;\n      background: #D0DEBB;\n      color: #0A5032;\n      font-weight: 600;\n    }\n\n    input.wrong {\n      border-color: #D41645;\n      background: #fff;\n      color: #A6093D;\n    }\n\n    .btn-row {\n      display: flex;\n      gap: 12px;\n      align-items: center;\n      margin-top: 2px;\n    }\n\n    button {\n      padding: 12px 28px;\n      border: none;\n      border-radius: 6px;\n      font-size: 17px;\n      font-family: &#039;IBM Plex Sans&#039;, Helvetica, Arial, sans-serif;\n      cursor: pointer;\n      transition: background 0.15s, transform 0.1s;\n    }\n\n    button:active { transform: scale(0.98); }\n\n    .btn-check {\n      background: #18974C;\n      color: #fff;\n    }\n\n    .btn-check:hover { background: #0A5032; }\n\n    .btn-reset {\n      background: transparent;\n      border: 1px solid #A8A99E;\n      color: #54585A;\n    }\n\n    .btn-reset:hover { background: #D0D0CE; }\n\n    .feedback {\n      margin-top: 10px;\n      font-size: 18px;\n      font-family: &#039;IBM Plex Sans&#039;, Helvetica, Arial, sans-serif;\n      line-height: 1.7;\n      min-height: 24px;\n    }\n\n    .feedback ul {\n      margin: 8px 0 0 18px;\n    }\n\n    .feedback li {\n      margin-bottom: 4px;\n    }\n\n    .score-good { color: #0A5032; font-weight: 600; }\n    .score-bad { color: #A6093D; font-weight: 600; }\n\n    .summary-box {\n      margin-top: 16px;\n      background: #D0DEBB;\n      border: 1px solid #6CC24A;\n      border-radius: 6px;\n      padding: 16px 20px;\n      font-size: 18px;\n      font-family: &#039;IBM Plex Sans&#039;, Helvetica, Arial, sans-serif;\n      display: none;\n    }\n\n    .summary-box strong { color: #0A5032; }\n  &lt;\/style&gt;\n\n&lt;\/head&gt;\n&lt;body&gt;\n\n  &lt;div class=&quot;instruction&quot;&gt;\n    Loci 1 and 5 (&lt;strong&gt;increasing&lt;\/strong&gt;) are already aligned in Table 1. For Loci 3 and 7 (&lt;strong&gt;decreasing&lt;\/strong&gt;), invert the value using the equation below, and type your answer into the highlighted cells.\n    &lt;div class=&quot;formula-line&quot;&gt;100 &amp;minus; % methylation = inverted score&lt;\/div&gt;\n  &lt;\/div&gt;\n\n  &lt;div class=&quot;legend&quot;&gt;\n    &lt;div class=&quot;legend-item&quot;&gt;\n      &lt;div class=&quot;legend-dot&quot; style=&quot;background:#E58F9E;&quot;&gt;&lt;\/div&gt;\n      &lt;span style=&quot;color:#A6093D&quot;&gt;Increasing locus &amp;mdash; already aligned&lt;\/span&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;legend-item&quot;&gt;\n      &lt;div class=&quot;legend-dot&quot; style=&quot;background:#8BB8E8;&quot;&gt;&lt;\/div&gt;\n      &lt;span style=&quot;color:#193F90&quot;&gt;Decreasing locus &amp;mdash; raw value to invert&lt;\/span&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;legend-item&quot;&gt;\n      &lt;div class=&quot;legend-dot&quot; style=&quot;background:#D0DEBB; border-color:#6CC24A&quot;&gt;&lt;\/div&gt;\n      &lt;span style=&quot;color:#0A5032&quot;&gt;Your inverted answer&lt;\/span&gt;\n    &lt;\/div&gt;\n  &lt;\/div&gt;\n\n  &lt;div class=&quot;table-wrapper&quot;&gt;\n    &lt;table id=&quot;main-table&quot;&gt;\n      &lt;thead&gt;\n        &lt;tr&gt;\n          &lt;th style=&quot;width:80px&quot;&gt;Age of mouse&lt;br&gt;(weeks)&lt;\/th&gt;\n          &lt;th class=&quot;th-inc&quot;&gt;CpG Locus 1&lt;\/th&gt;\n          &lt;th class=&quot;th-inc&quot;&gt;CpG Locus 5&lt;\/th&gt;\n          &lt;th class=&quot;th-dec&quot; colspan=&quot;2&quot;&gt;CpG Locus 3 &lt;strong&gt;(inverted)&lt;\/strong&gt;&lt;\/th&gt;\n          &lt;th class=&quot;th-dec&quot; colspan=&quot;2&quot;&gt;CpG Locus 7 &lt;strong&gt;(inverted)&lt;\/strong&gt;&lt;\/th&gt;\n          &lt;th class=&quot;th-clock&quot;&gt;Clock&lt;br&gt;Score&lt;\/th&gt;\n        &lt;\/tr&gt;\n      &lt;\/thead&gt;\n      &lt;tbody&gt;\n        &lt;tr class=&quot;example-row&quot;&gt;\n          &lt;td class=&quot;age-col&quot;&gt;&lt;span class=&quot;example-label&quot;&gt;Example&lt;\/span&gt;&lt;\/td&gt;\n          &lt;td class=&quot;inc-col&quot;&gt;60&lt;\/td&gt;\n          &lt;td class=&quot;inc-col&quot;&gt;42&lt;\/td&gt;\n          &lt;td class=&quot;raw-col&quot;&gt;(100 &amp;minus; 17) =&lt;\/td&gt;\n          &lt;td class=&quot;inv-col&quot;&gt;83&lt;\/td&gt;\n          &lt;td class=&quot;raw-col&quot;&gt;(100 &amp;minus; 91) =&lt;\/td&gt;\n          &lt;td class=&quot;inv-col&quot;&gt;9&lt;\/td&gt;\n          &lt;td class=&quot;clock-col&quot;&gt;&lt;span class=&quot;clock-formula&quot;&gt;(60+42+83+9) &amp;divide; 4 = &lt;strong&gt;48.5&lt;\/strong&gt;&lt;\/span&gt;&lt;\/td&gt;\n        &lt;\/tr&gt;\n\n        &lt;tr&gt;\n          &lt;td class=&quot;age-col&quot;&gt;1&lt;\/td&gt;\n          &lt;td class=&quot;inc-col&quot;&gt;32&lt;\/td&gt;\n          &lt;td class=&quot;inc-col&quot;&gt;38&lt;\/td&gt;\n          &lt;td class=&quot;raw-col&quot;&gt;(100 &amp;minus; 52) =&lt;\/td&gt;\n          &lt;td class=&quot;inv-col&quot;&gt;&lt;input type=&quot;number&quot; id=&quot;r1a&quot; min=&quot;0&quot; max=&quot;100&quot; placeholder=&quot;?&quot;&gt;&lt;\/td&gt;\n          &lt;td class=&quot;raw-col&quot;&gt;(100 &amp;minus; 35) =&lt;\/td&gt;\n          &lt;td class=&quot;inv-col&quot;&gt;&lt;input type=&quot;number&quot; id=&quot;r1b&quot; min=&quot;0&quot; max=&quot;100&quot; placeholder=&quot;?&quot;&gt;&lt;\/td&gt;\n          &lt;td class=&quot;clock-col&quot;&gt;&amp;mdash;&lt;\/td&gt;\n        &lt;\/tr&gt;\n\n        &lt;tr&gt;\n          &lt;td class=&quot;age-col&quot;&gt;14&lt;\/td&gt;\n          &lt;td class=&quot;inc-col&quot;&gt;46&lt;\/td&gt;\n          &lt;td class=&quot;inc-col&quot;&gt;58&lt;\/td&gt;\n          &lt;td class=&quot;raw-col&quot;&gt;(100 &amp;minus; 30) =&lt;\/td&gt;\n          &lt;td class=&quot;inv-col&quot;&gt;&lt;input type=&quot;number&quot; id=&quot;r2a&quot; min=&quot;0&quot; max=&quot;100&quot; placeholder=&quot;?&quot;&gt;&lt;\/td&gt;\n          &lt;td class=&quot;raw-col&quot;&gt;(100 &amp;minus; 14) =&lt;\/td&gt;\n          &lt;td class=&quot;inv-col&quot;&gt;&lt;input type=&quot;number&quot; id=&quot;r2b&quot; min=&quot;0&quot; max=&quot;100&quot; placeholder=&quot;?&quot;&gt;&lt;\/td&gt;\n          &lt;td class=&quot;clock-col&quot;&gt;&amp;mdash;&lt;\/td&gt;\n        &lt;\/tr&gt;\n\n        &lt;tr&gt;\n          &lt;td class=&quot;age-col&quot;&gt;27&lt;\/td&gt;\n          &lt;td class=&quot;inc-col&quot;&gt;63&lt;\/td&gt;\n          &lt;td class=&quot;inc-col&quot;&gt;73&lt;\/td&gt;\n          &lt;td class=&quot;raw-col&quot;&gt;(100 &amp;minus; 18) =&lt;\/td&gt;\n          &lt;td class=&quot;inv-col&quot;&gt;&lt;input type=&quot;number&quot; id=&quot;r3a&quot; min=&quot;0&quot; max=&quot;100&quot; placeholder=&quot;?&quot;&gt;&lt;\/td&gt;\n          &lt;td class=&quot;raw-col&quot;&gt;(100 &amp;minus; 13) =&lt;\/td&gt;\n          &lt;td class=&quot;inv-col&quot;&gt;&lt;input type=&quot;number&quot; id=&quot;r3b&quot; min=&quot;0&quot; max=&quot;100&quot; placeholder=&quot;?&quot;&gt;&lt;\/td&gt;\n          &lt;td class=&quot;clock-col&quot;&gt;&amp;mdash;&lt;\/td&gt;\n        &lt;\/tr&gt;\n\n        &lt;tr&gt;\n          &lt;td class=&quot;age-col&quot;&gt;41&lt;\/td&gt;\n          &lt;td class=&quot;inc-col&quot;&gt;82&lt;\/td&gt;\n          &lt;td class=&quot;inc-col&quot;&gt;76&lt;\/td&gt;\n          &lt;td class=&quot;raw-col&quot;&gt;(100 &amp;minus; 10) =&lt;\/td&gt;\n          &lt;td class=&quot;inv-col&quot;&gt;&lt;input type=&quot;number&quot; id=&quot;r4a&quot; min=&quot;0&quot; max=&quot;100&quot; placeholder=&quot;?&quot;&gt;&lt;\/td&gt;\n          &lt;td class=&quot;raw-col&quot;&gt;(100 &amp;minus; 8) =&lt;\/td&gt;\n          &lt;td class=&quot;inv-col&quot;&gt;&lt;input type=&quot;number&quot; id=&quot;r4b&quot; min=&quot;0&quot; max=&quot;100&quot; placeholder=&quot;?&quot;&gt;&lt;\/td&gt;\n          &lt;td class=&quot;clock-col&quot;&gt;&amp;mdash;&lt;\/td&gt;\n        &lt;\/tr&gt;\n      &lt;\/tbody&gt;\n    &lt;\/table&gt;\n  &lt;\/div&gt;\n\n  &lt;div class=&quot;btn-row&quot;&gt;\n    &lt;button class=&quot;btn-check&quot; onclick=&quot;checkAnswers()&quot;&gt;Check answers&lt;\/button&gt;\n    &lt;button class=&quot;btn-reset&quot; onclick=&quot;resetAll()&quot;&gt;Reset&lt;\/button&gt;\n  &lt;\/div&gt;\n\n  &lt;div class=&quot;feedback&quot; id=&quot;feedback&quot;&gt;&lt;\/div&gt;\n\n  &lt;div class=&quot;summary-box&quot; id=&quot;summary&quot;&gt;\n    &lt;strong&gt;All inversions correct!&lt;\/strong&gt; Your table is now fully aligned &amp;mdash; every locus increases with age, ready to calculate the Clock Score in Step 3.\n  &lt;\/div&gt;\n\n  &lt;script&gt;\n    var answers = { r1a: 48, r1b: 65, r2a: 70, r2b: 86, r3a: 82, r3b: 87, r4a: 90, r4b: 92 };\n\n    function checkAnswers() {\n      var correct = 0;\n      var total = Object.keys(answers).length;\n      var incomplete = 0;\n\n      Object.keys(answers).forEach(function(id) {\n        var el = document.getElementById(id);\n        el.classList.remove(&#039;correct&#039;, &#039;wrong&#039;);\n        if (el.value === &#039;&#039;) { incomplete++; return; }\n        var val = Number(el.value);\n        if (val === answers[id]) { el.classList.add(&#039;correct&#039;); correct++; }\n        else { el.classList.add(&#039;wrong&#039;); }\n      });\n\n      var fb = document.getElementById(&#039;feedback&#039;);\n      var summary = document.getElementById(&#039;summary&#039;);\n\n      if (correct === total) {\n        fb.innerHTML = &#039;&#039;;\n        summary.style.display = &#039;block&#039;;\n        return;\n      }\n\n      summary.style.display = &#039;none&#039;;\n      var msg = &#039;&lt;span class=&quot;score-bad&quot;&gt;&#039; + correct + &#039;\/&#039; + total + &#039; correct. &#039;;\n      if (incomplete &gt; 0) {\n        msg += &#039;Fill in every highlighted cell, &#039;;\n      }\n      msg += &#039;and remember the formula: &lt;strong&gt;100 &amp;minus; raw value = inverted score.&#039;;\n      fb.innerHTML = msg;\n    }\n\n    function resetAll() {\n      Object.keys(answers).forEach(function(id) {\n        var el = document.getElementById(id);\n        el.value = &#039;&#039;;\n        el.classList.remove(&#039;correct&#039;, &#039;wrong&#039;);\n      });\n      document.getElementById(&#039;feedback&#039;).innerHTML = &#039;&#039;;\n      document.getElementById(&#039;summary&#039;).style.display = &#039;none&#039;;\n    }\n  &lt;\/script&gt;\n\n  \n\n&lt;script&gt;(function () {\n  &#039;use strict&#039;;\n  \/\/ Give legacy table controls accessible names without changing answer logic.\n  document.querySelectorAll(&#039;select, input&#039;).forEach(function (control) {\n    if (control.labels.length || control.hasAttribute(&#039;aria-label&#039;)) return;\n    var cell = control.closest(&#039;td&#039;);\n    var row = control.closest(&#039;tr&#039;);\n    var table = control.closest(&#039;table&#039;);\n    var heading = table &amp;&amp; cell ? table.querySelectorAll(&#039;thead th&#039;)[cell.cellIndex] : null;\n    control.setAttribute(&#039;aria-label&#039;, [heading &amp;&amp; heading.textContent.trim(), row &amp;&amp; row.cells[0].textContent.trim()].filter(Boolean).join(&#039; \u2014 &#039;) || control.id);\n  });\n  document.querySelectorAll(&#039;#feedback, #summary&#039;).forEach(function (element) {\n    element.setAttribute(&#039;aria-live&#039;, &#039;polite&#039;);\n  });\n  var scheduled = false;\n  var lastHeight = 0;\n  function measure() {\n    if (scheduled) return;\n    scheduled = true;\n    requestAnimationFrame(function () {\n      scheduled = false;\n      \/\/ Body content height can shrink, unlike documentElement.scrollHeight.\n      var height = Math.ceil(document.body.getBoundingClientRect().height) + 2;\n      if (height &gt; 2 &amp;&amp; height !== lastHeight) {\n        lastHeight = height;\n        window.parent.postMessage({type: &#039;ells:height&#039;, height: height}, &#039;*&#039;);\n      }\n    });\n  }\n  window.addEventListener(&#039;message&#039;, function (event) {\n    if (event.source === window.parent &amp;&amp; event.data &amp;&amp; event.data.type === &#039;ells:measure&#039;) {\n      lastHeight = 0;\n      measure();\n    }\n  });\n  new ResizeObserver(measure).observe(document.body);\n  window.addEventListener(&#039;load&#039;, measure);\n  window.addEventListener(&#039;resize&#039;, measure);\n  measure();\n})();\n&lt;\/script&gt;&lt;\/body&gt;\n&lt;\/html&gt;\n\" sandbox=\"allow-scripts\" referrerpolicy=\"no-referrer\" height=\"700\"><\/iframe>\n                            <\/div>\n                    <div class=\"ells-interactive__panel\" id=\"ells-interactive-1-step-2\" data-activity-panel>\n                <h3 tabindex=\"-1\">Calculate the Clock Score<\/h3>\n                                                        <iframe data-activity-frame title=\"Calculate the Clock Score\" srcdoc=\"&lt;!DOCTYPE html&gt;\n&lt;html lang=&quot;en&quot;&gt;\n&lt;head&gt;&lt;meta http-equiv=&quot;Content-Security-Policy&quot; content=&quot;default-src &amp;#039;none&amp;#039;; script-src &amp;#039;unsafe-inline&amp;#039;; style-src &amp;#039;unsafe-inline&amp;#039;; img-src data:; font-src data:; connect-src &amp;#039;none&amp;#039;; frame-src &amp;#039;none&amp;#039;; object-src &amp;#039;none&amp;#039;; base-uri &amp;#039;none&amp;#039;; form-action &amp;#039;none&amp;#039;&quot;&gt;&lt;style&gt;html { overflow-y: hidden; }\nbody { min-height: 0; display: flow-root; }\nbutton:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid #2684c6; outline-offset: 2px; }\n.chip { font: inherit; }\n#plot-point { margin: 12px 0 0; background: #0a5032; color: white; }\n.plot-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; padding: 10px; }\n.plot-controls label { display: grid; gap: 4px; font-size: 14px; }\n.plot-controls input { width: 120px; padding: 8px; font: inherit; border: 1px solid #54585a; border-radius: 4px; }\n&lt;\/style&gt;\n  &lt;meta charset=&quot;UTF-8&quot;&gt;\n  &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;\n  &lt;title&gt;Step 3: Calculate the Clock Score&lt;\/title&gt;\n  &lt;style&gt;\n    * { box-sizing: border-box; margin: 0; padding: 0; }\n\n    body {\n      font-family: &#039;IBM Plex Sans&#039;, Helvetica, Arial, sans-serif;\n      background: transparent;\n      color: #373A36;\n      padding: 12px 24px;\n      max-width: 100%;\n      width: 100%;\n      margin: 0;\n      line-height: 1.45;\n    }\n\n    .instruction {\n      background: #fff;\n      border-left: 3px solid #18974C;\n      padding: 8px 20px;\n      margin-bottom: 8px;\n      font-size: 20px;\n      font-family: &#039;IBM Plex Sans&#039;, Helvetica, Arial, sans-serif;\n      color: #373A36;\n      border-radius: 0 6px 6px 0;\n      line-height: 1.6;\n    }\n\n    .formula-line {\n      margin-top: 4px;\n      font-size: 20px;\n      font-weight: 600;\n      color: #0A5032;\n    }\n\n    .legend {\n      display: flex;\n      gap: 20px;\n      margin-bottom: 8px;\n      flex-wrap: wrap;\n      font-family: &#039;IBM Plex Sans&#039;, Helvetica, Arial, sans-serif;\n      font-size: 18px;\n    }\n\n    .legend-item {\n      display: flex;\n      align-items: center;\n      gap: 7px;\n    }\n\n    .legend-dot {\n      width: 14px;\n      height: 14px;\n      border-radius: 3px;\n      flex-shrink: 0;\n      border: 1px solid rgba(0,0,0,0.12);\n    }\n\n    .table-wrapper {\n      overflow-x: auto;\n      margin-bottom: 10px;\n      border-radius: 8px;\n      box-shadow: 0 1px 4px rgba(0,0,0,0.08);\n    }\n\n    table {\n      width: 100%;\n      border-collapse: collapse;\n      font-size: 17px;\n      font-family: &#039;IBM Plex Sans&#039;, Helvetica, Arial, sans-serif;\n      background: #fff;\n      min-width: 760px;\n    }\n\n    th {\n      background: #0A5032;\n      color: #D0DEBB;\n      font-weight: 500;\n      font-size: 17px;\n      padding: 8px 8px;\n      text-align: center;\n      border: 1px solid #000;\n      line-height: 1.3;\n    }\n\n    td {\n      border: 1px solid #000;\n      padding: 8px 8px;\n      text-align: center;\n      vertical-align: middle;\n    }\n\n    .age-col {\n      background: #D0D0CE;\n      font-weight: 600;\n      color: #373A36;\n      font-size: 17px;\n    }\n\n    th.th-inc { background: #E58F9E; color: #fff; }\n    th.th-dec { background: #6CC24A; color: #fff; }\n    th.th-clock { background: #0A5032; color: #D0DEBB; width: 240px; }\n\n    \/* &amp;#9472;&amp;#9472; Chips (tappable values) &amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472; *\/\n    .chip-cell { padding: 9px 6px; }\n\n    .chip {\n      display: inline-block;\n      min-width: 46px;\n      padding: 9px 10px;\n      border-radius: 7px;\n      font-size: 17px;\n      font-weight: 600;\n      cursor: pointer;\n      user-select: none;\n      border: 2px solid transparent;\n      transition: transform 0.1s, box-shadow 0.15s, filter 0.15s;\n      position: relative;\n    }\n    .chip:hover { transform: scale(1.05); }\n    .chip:active { transform: scale(0.97); }\n\n    .chip.inc { background: #F6D9DE; color: #A6093D; border-color: #E58F9E; }\n    .chip.inv { background: #D0DEBB; color: #0A5032; border-color: #6CC24A; }\n\n    .chip.chip-selected {\n      box-shadow: inset 0 0 0 2px rgba(0,0,0,0.15);\n      filter: brightness(0.93);\n    }\n    .chip.chip-selected::after {\n      content: &#039;&amp;#10003;&#039;;\n      position: absolute;\n      top: -6px;\n      right: -6px;\n      width: 16px;\n      height: 16px;\n      background: #0A5032;\n      color: #fff;\n      border-radius: 50%;\n      font-size: 10px;\n      display: flex;\n      align-items: center;\n      justify-content: center;\n    }\n\n    .row-locked .chip { cursor: default; opacity: 0.55; }\n    .row-locked .chip:hover { transform: none; }\n\n    \/* &amp;#9472;&amp;#9472; Equation builder (Clock Score column) &amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472; *\/\n    .eq-wrap { font-family: &#039;IBM Plex Sans&#039;, Helvetica, Arial, sans-serif; }\n\n    .eq-strip {\n      display: flex;\n      align-items: center;\n      justify-content: center;\n      flex-wrap: wrap;\n      gap: 4px;\n      font-size: 15px;\n      color: #54585A;\n      margin-bottom: 6px;\n    }\n\n    .eq-slot {\n      display: inline-flex;\n      align-items: center;\n      justify-content: center;\n      min-width: 30px;\n      height: 26px;\n      padding: 0 4px;\n      border: 1.5px dashed #A8A99E;\n      border-radius: 5px;\n      background: #fafaf8;\n      color: #A8A99E;\n      font-weight: 600;\n      font-size: 14px;\n    }\n    \/* Filled slots pick up the colour of the locus group they came from *\/\n    .eq-slot.filled.inc { border: 1.5px solid #E58F9E; background: #F6D9DE; color: #A6093D; }\n    .eq-slot.filled.inv { border: 1.5px solid #6CC24A; background: #D0DEBB; color: #0A5032; }\n\n    .eq-op { color: #A8A99E; font-weight: 600; font-size: 14px; }\n\n    .eq-result {\n      display: none;\n      font-weight: 700;\n      color: #0A5032;\n      font-size: 14px;\n    }\n\n    .btn-divide {\n      padding: 7px 16px;\n      border: none;\n      border-radius: 6px;\n      font-size: 13px;\n      font-weight: 600;\n      font-family: &#039;IBM Plex Sans&#039;, Helvetica, Arial, sans-serif;\n      background: #18974C;\n      color: #fff;\n      cursor: pointer;\n      transition: background 0.15s;\n    }\n    .btn-divide:hover:not(:disabled) { background: #0A5032; }\n    .btn-divide:disabled { background: #D0D0CE; color: #A8A99E; cursor: not-allowed; }\n    .btn-hidden { display: none !important; }\n\n    .clock-score-display {\n      font-size: 16px;\n      color: #0A5032;\n      animation: reveal 0.35s ease;\n    }\n    @keyframes reveal {\n      from { opacity: 0; transform: translateY(4px) scale(0.95); }\n      to   { opacity: 1; transform: translateY(0) scale(1); }\n    }\n\n    .clock-hint {\n      font-size: 13px;\n      color: #A8A99E;\n      font-style: italic;\n    }\n\n    .reveal-on-unlock {\n      display: none;\n    }\n    .reveal-on-unlock.shown {\n      display: table-row;\n      animation: rowFadeIn 0.4s ease;\n    }\n    @keyframes rowFadeIn {\n      from { opacity: 0; transform: translateY(-4px); }\n      to   { opacity: 1; transform: translateY(0); }\n    }\n\n    .example-row td { background: #f3f3ef; color: #54585A; }\n    .example-row .example-label { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: #54585A; }\n    .example-eq { font-size: 15px; color: #373A36; }\n    .example-eq strong { color: #0A5032; }\n\n    \/* &amp;#9472;&amp;#9472; &quot;Calculate the rest&quot; call-to-action row &amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472; *\/\n    .calc-remaining-row td {\n      background: #fafaf8;\n      padding: 14px 12px;\n    }\n    .calc-remaining-inner {\n      display: flex;\n      align-items: center;\n      justify-content: center;\n      gap: 14px;\n      flex-wrap: wrap;\n    }\n    .calc-remaining-text {\n      font-size: 15px;\n      color: #54585A;\n    }\n    .btn-calc-remaining {\n      padding: 11px 22px;\n      border: none;\n      border-radius: 6px;\n      font-size: 15px;\n      font-weight: 600;\n      font-family: &#039;IBM Plex Sans&#039;, Helvetica, Arial, sans-serif;\n      background: #18974C;\n      color: #fff;\n      cursor: pointer;\n      transition: background 0.15s, transform 0.1s;\n    }\n    .btn-calc-remaining:hover:not(:disabled) { background: #0A5032; }\n    .btn-calc-remaining:active:not(:disabled) { transform: scale(0.98); }\n    .btn-calc-remaining:disabled { background: #D0D0CE; color: #7d7d78; cursor: not-allowed; }\n\n    .btn-row {\n      display: flex;\n      gap: 12px;\n      align-items: center;\n      margin-top: 2px;\n    }\n\n    .btn-reset {\n      padding: 12px 28px;\n      border: 1px solid #A8A99E;\n      border-radius: 6px;\n      font-size: 17px;\n      font-family: &#039;IBM Plex Sans&#039;, Helvetica, Arial, sans-serif;\n      background: transparent;\n      color: #54585A;\n      cursor: pointer;\n      transition: background 0.15s, transform 0.1s;\n    }\n    .btn-reset:hover { background: #D0D0CE; }\n    .btn-reset:active { transform: scale(0.98); }\n\n    .hint-box {\n      margin-top: 10px;\n      background: #fff8e6;\n      border: 1px solid #f0d080;\n      border-radius: 6px;\n      padding: 10px 16px;\n      font-size: 15px;\n      font-family: &#039;IBM Plex Sans&#039;, Helvetica, Arial, sans-serif;\n      display: none;\n      color: #7a5c00;\n    }\n\n    .summary-box {\n      margin-top: 16px;\n      background: #D0DEBB;\n      border: 1px solid #6CC24A;\n      border-radius: 6px;\n      padding: 16px 20px;\n      font-size: 18px;\n      font-family: &#039;IBM Plex Sans&#039;, Helvetica, Arial, sans-serif;\n      display: none;\n      line-height: 1.8;\n    }\n    .summary-box strong { color: #0A5032; }\n\n    @media (max-width: 760px) {\n      body { padding: 10px 14px; }\n      .instruction, .formula-line { font-size: 16px; }\n      .instruction { padding: 8px 14px; }\n      .legend { font-size: 14px; }\n      table { font-size: 14px; min-width: 620px; }\n      th { font-size: 12px; padding: 6px 5px; }\n      td { padding: 6px 5px; }\n      .age-col { font-size: 13px; }\n      .chip { font-size: 14px; padding: 7px 8px; min-width: 38px; }\n      .eq-strip { font-size: 13px; }\n      .eq-slot { min-width: 24px; height: 22px; font-size: 12px; }\n      .btn-divide { font-size: 12px; padding: 6px 12px; }\n      .btn-calc-remaining { font-size: 13px; padding: 9px 16px; }\n      .calc-remaining-text { font-size: 13px; }\n      .btn-reset { font-size: 14px; padding: 10px 18px; }\n      .hint-box, .summary-box { font-size: 14px; }\n    }\n\n    @media (max-width: 480px) {\n      table { min-width: 560px; }\n      th.th-clock { width: 190px; }\n    }\n  &lt;\/style&gt;\n\n&lt;\/head&gt;\n&lt;body&gt;\n\n  &lt;div class=&quot;instruction&quot;&gt;\n    All four loci are now aligned so a &lt;strong&gt;higher value means an older mouse&lt;\/strong&gt;. For &lt;strong&gt;Week 1&lt;\/strong&gt;, tap all four values to build the equation, then tap &lt;strong&gt;&amp;divide; 4&lt;\/strong&gt; to reveal the Clock Score. Once you&#039;ve got the method, use the button below to calculate the remaining three ages.\n    &lt;div class=&quot;formula-line&quot;&gt;Clock Score = (Locus 1 + Locus 5 + Locus 3&lt;sub&gt;inverted&lt;\/sub&gt; + Locus 7&lt;sub&gt;inverted&lt;\/sub&gt;) &amp;divide; 4&lt;\/div&gt;\n  &lt;\/div&gt;\n\n  &lt;div class=&quot;legend&quot;&gt;\n    &lt;div class=&quot;legend-item&quot;&gt;\n      &lt;div class=&quot;legend-dot&quot; style=&quot;background:#F6D9DE; border-color:#E58F9E&quot;&gt;&lt;\/div&gt;\n      &lt;span style=&quot;color:#A6093D&quot;&gt;Locus 1 &amp;amp; Locus 5 &amp;mdash; increasing (already aligned)&lt;\/span&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;legend-item&quot;&gt;\n      &lt;div class=&quot;legend-dot&quot; style=&quot;background:#D0DEBB; border-color:#6CC24A&quot;&gt;&lt;\/div&gt;\n      &lt;span style=&quot;color:#0A5032&quot;&gt;Locus 3 &amp;amp; Locus 7 &amp;mdash; inverted values from Activity 2&lt;\/span&gt;\n    &lt;\/div&gt;\n  &lt;\/div&gt;\n\n  &lt;div class=&quot;table-wrapper&quot;&gt;\n    &lt;table id=&quot;main-table&quot;&gt;\n      &lt;thead&gt;\n        &lt;tr&gt;\n          &lt;th style=&quot;width:80px&quot;&gt;Age of mouse&lt;br&gt;(weeks)&lt;\/th&gt;\n          &lt;th class=&quot;th-inc&quot;&gt;CpG Locus 1&lt;\/th&gt;\n          &lt;th class=&quot;th-inc&quot;&gt;CpG Locus 5&lt;\/th&gt;\n          &lt;th class=&quot;th-dec&quot;&gt;CpG Locus 3&lt;br&gt;&lt;strong&gt;(inverted)&lt;\/strong&gt;&lt;\/th&gt;\n          &lt;th class=&quot;th-dec&quot;&gt;CpG Locus 7&lt;br&gt;&lt;strong&gt;(inverted)&lt;\/strong&gt;&lt;\/th&gt;\n          &lt;th class=&quot;th-clock&quot;&gt;Clock Score&lt;\/th&gt;\n        &lt;\/tr&gt;\n      &lt;\/thead&gt;\n      &lt;tbody&gt;\n        &lt;tr class=&quot;example-row&quot;&gt;\n          &lt;td class=&quot;age-col&quot;&gt;&lt;span class=&quot;example-label&quot;&gt;Example&lt;\/span&gt;&lt;\/td&gt;\n          &lt;td&gt;60&lt;\/td&gt;\n          &lt;td&gt;42&lt;\/td&gt;\n          &lt;td&gt;83&lt;\/td&gt;\n          &lt;td&gt;9&lt;\/td&gt;\n          &lt;td class=&quot;example-eq&quot;&gt;(60+42+83+9) &amp;divide; 4 = &lt;strong&gt;48.5&lt;\/strong&gt;&lt;\/td&gt;\n        &lt;\/tr&gt;\n        &lt;tr id=&quot;row-1&quot;&gt;\n          &lt;td class=&quot;age-col&quot;&gt;1&lt;\/td&gt;\n          &lt;td class=&quot;chip-cell&quot;&gt;&lt;button type=&quot;button&quot; class=&quot;chip inc&quot; data-row=&quot;1&quot; data-slot=&quot;0&quot; data-val=&quot;32&quot; onclick=&quot;chipClick(this)&quot;&gt;32&lt;\/button&gt;&lt;\/td&gt;\n          &lt;td class=&quot;chip-cell&quot;&gt;&lt;button type=&quot;button&quot; class=&quot;chip inc&quot; data-row=&quot;1&quot; data-slot=&quot;1&quot; data-val=&quot;38&quot; onclick=&quot;chipClick(this)&quot;&gt;38&lt;\/button&gt;&lt;\/td&gt;\n          &lt;td class=&quot;chip-cell&quot;&gt;&lt;button type=&quot;button&quot; class=&quot;chip inv&quot; data-row=&quot;1&quot; data-slot=&quot;2&quot; data-val=&quot;48&quot; onclick=&quot;chipClick(this)&quot;&gt;48&lt;\/button&gt;&lt;\/td&gt;\n          &lt;td class=&quot;chip-cell&quot;&gt;&lt;button type=&quot;button&quot; class=&quot;chip inv&quot; data-row=&quot;1&quot; data-slot=&quot;3&quot; data-val=&quot;65&quot; onclick=&quot;chipClick(this)&quot;&gt;65&lt;\/button&gt;&lt;\/td&gt;\n          &lt;td class=&quot;eq-wrap&quot;&gt;\n            &lt;div class=&quot;eq-strip&quot; id=&quot;eq-1&quot;&gt;\n              &lt;span class=&quot;eq-slot inc&quot; id=&quot;slot-1-0&quot;&gt;?&lt;\/span&gt;&lt;span class=&quot;eq-op&quot;&gt;+&lt;\/span&gt;\n              &lt;span class=&quot;eq-slot inc&quot; id=&quot;slot-1-1&quot;&gt;?&lt;\/span&gt;&lt;span class=&quot;eq-op&quot;&gt;+&lt;\/span&gt;\n              &lt;span class=&quot;eq-slot inv&quot; id=&quot;slot-1-2&quot;&gt;?&lt;\/span&gt;&lt;span class=&quot;eq-op&quot;&gt;+&lt;\/span&gt;\n              &lt;span class=&quot;eq-slot inv&quot; id=&quot;slot-1-3&quot;&gt;?&lt;\/span&gt;\n              &lt;span class=&quot;eq-result&quot; id=&quot;eqres-1&quot;&gt;&lt;\/span&gt;\n            &lt;\/div&gt;\n            &lt;button class=&quot;btn-divide&quot; id=&quot;div-1&quot; onclick=&quot;divideRow(1)&quot; disabled&gt;&amp;divide; 4&lt;\/button&gt;\n            &lt;div id=&quot;result-1&quot;&gt;&lt;\/div&gt;\n          &lt;\/td&gt;\n        &lt;\/tr&gt;\n        &lt;tr class=&quot;calc-remaining-row reveal-on-unlock&quot; id=&quot;calc-remaining-row&quot;&gt;\n          &lt;td colspan=&quot;6&quot;&gt;\n            &lt;div class=&quot;calc-remaining-inner&quot;&gt;\n              &lt;span class=&quot;calc-remaining-text&quot;&gt;Got the method? Use it to calculate the remaining three ages:&lt;\/span&gt;\n              &lt;button class=&quot;btn-calc-remaining&quot; id=&quot;calc-remaining-btn&quot; onclick=&quot;calculateRemaining()&quot;&gt;Calculate weeks 14, 27 &amp;amp; 41 &amp;rarr;&lt;\/button&gt;\n            &lt;\/div&gt;\n          &lt;\/td&gt;\n        &lt;\/tr&gt;\n        &lt;tr id=&quot;row-14&quot; class=&quot;row-locked reveal-on-unlock&quot;&gt;\n          &lt;td class=&quot;age-col&quot;&gt;14&lt;\/td&gt;\n          &lt;td class=&quot;chip-cell&quot;&gt;&lt;button type=&quot;button&quot; class=&quot;chip inc&quot; data-row=&quot;14&quot; data-slot=&quot;0&quot; data-val=&quot;46&quot; onclick=&quot;chipClick(this)&quot;&gt;46&lt;\/button&gt;&lt;\/td&gt;\n          &lt;td class=&quot;chip-cell&quot;&gt;&lt;button type=&quot;button&quot; class=&quot;chip inc&quot; data-row=&quot;14&quot; data-slot=&quot;1&quot; data-val=&quot;58&quot; onclick=&quot;chipClick(this)&quot;&gt;58&lt;\/button&gt;&lt;\/td&gt;\n          &lt;td class=&quot;chip-cell&quot;&gt;&lt;button type=&quot;button&quot; class=&quot;chip inv&quot; data-row=&quot;14&quot; data-slot=&quot;2&quot; data-val=&quot;70&quot; onclick=&quot;chipClick(this)&quot;&gt;70&lt;\/button&gt;&lt;\/td&gt;\n          &lt;td class=&quot;chip-cell&quot;&gt;&lt;button type=&quot;button&quot; class=&quot;chip inv&quot; data-row=&quot;14&quot; data-slot=&quot;3&quot; data-val=&quot;86&quot; onclick=&quot;chipClick(this)&quot;&gt;86&lt;\/button&gt;&lt;\/td&gt;\n          &lt;td class=&quot;eq-wrap&quot;&gt;\n            &lt;div class=&quot;eq-strip&quot; id=&quot;eq-14&quot;&gt;\n              &lt;span class=&quot;eq-slot inc&quot; id=&quot;slot-14-0&quot;&gt;?&lt;\/span&gt;&lt;span class=&quot;eq-op&quot;&gt;+&lt;\/span&gt;\n              &lt;span class=&quot;eq-slot inc&quot; id=&quot;slot-14-1&quot;&gt;?&lt;\/span&gt;&lt;span class=&quot;eq-op&quot;&gt;+&lt;\/span&gt;\n              &lt;span class=&quot;eq-slot inv&quot; id=&quot;slot-14-2&quot;&gt;?&lt;\/span&gt;&lt;span class=&quot;eq-op&quot;&gt;+&lt;\/span&gt;\n              &lt;span class=&quot;eq-slot inv&quot; id=&quot;slot-14-3&quot;&gt;?&lt;\/span&gt;\n              &lt;span class=&quot;eq-result&quot; id=&quot;eqres-14&quot;&gt;&lt;\/span&gt;\n            &lt;\/div&gt;\n            &lt;button class=&quot;btn-divide btn-hidden&quot; id=&quot;div-14&quot; onclick=&quot;divideRow(14)&quot; disabled&gt;&amp;divide; 4&lt;\/button&gt;\n            &lt;div id=&quot;result-14&quot;&gt;&lt;\/div&gt;\n          &lt;\/td&gt;\n        &lt;\/tr&gt;\n        &lt;tr id=&quot;row-27&quot; class=&quot;row-locked reveal-on-unlock&quot;&gt;\n          &lt;td class=&quot;age-col&quot;&gt;27&lt;\/td&gt;\n          &lt;td class=&quot;chip-cell&quot;&gt;&lt;button type=&quot;button&quot; class=&quot;chip inc&quot; data-row=&quot;27&quot; data-slot=&quot;0&quot; data-val=&quot;63&quot; onclick=&quot;chipClick(this)&quot;&gt;63&lt;\/button&gt;&lt;\/td&gt;\n          &lt;td class=&quot;chip-cell&quot;&gt;&lt;button type=&quot;button&quot; class=&quot;chip inc&quot; data-row=&quot;27&quot; data-slot=&quot;1&quot; data-val=&quot;73&quot; onclick=&quot;chipClick(this)&quot;&gt;73&lt;\/button&gt;&lt;\/td&gt;\n          &lt;td class=&quot;chip-cell&quot;&gt;&lt;button type=&quot;button&quot; class=&quot;chip inv&quot; data-row=&quot;27&quot; data-slot=&quot;2&quot; data-val=&quot;82&quot; onclick=&quot;chipClick(this)&quot;&gt;82&lt;\/button&gt;&lt;\/td&gt;\n          &lt;td class=&quot;chip-cell&quot;&gt;&lt;button type=&quot;button&quot; class=&quot;chip inv&quot; data-row=&quot;27&quot; data-slot=&quot;3&quot; data-val=&quot;87&quot; onclick=&quot;chipClick(this)&quot;&gt;87&lt;\/button&gt;&lt;\/td&gt;\n          &lt;td class=&quot;eq-wrap&quot;&gt;\n            &lt;div class=&quot;eq-strip&quot; id=&quot;eq-27&quot;&gt;\n              &lt;span class=&quot;eq-slot inc&quot; id=&quot;slot-27-0&quot;&gt;?&lt;\/span&gt;&lt;span class=&quot;eq-op&quot;&gt;+&lt;\/span&gt;\n              &lt;span class=&quot;eq-slot inc&quot; id=&quot;slot-27-1&quot;&gt;?&lt;\/span&gt;&lt;span class=&quot;eq-op&quot;&gt;+&lt;\/span&gt;\n              &lt;span class=&quot;eq-slot inv&quot; id=&quot;slot-27-2&quot;&gt;?&lt;\/span&gt;&lt;span class=&quot;eq-op&quot;&gt;+&lt;\/span&gt;\n              &lt;span class=&quot;eq-slot inv&quot; id=&quot;slot-27-3&quot;&gt;?&lt;\/span&gt;\n              &lt;span class=&quot;eq-result&quot; id=&quot;eqres-27&quot;&gt;&lt;\/span&gt;\n            &lt;\/div&gt;\n            &lt;button class=&quot;btn-divide btn-hidden&quot; id=&quot;div-27&quot; onclick=&quot;divideRow(27)&quot; disabled&gt;&amp;divide; 4&lt;\/button&gt;\n            &lt;div id=&quot;result-27&quot;&gt;&lt;\/div&gt;\n          &lt;\/td&gt;\n        &lt;\/tr&gt;\n        &lt;tr id=&quot;row-41&quot; class=&quot;row-locked reveal-on-unlock&quot;&gt;\n          &lt;td class=&quot;age-col&quot;&gt;41&lt;\/td&gt;\n          &lt;td class=&quot;chip-cell&quot;&gt;&lt;button type=&quot;button&quot; class=&quot;chip inc&quot; data-row=&quot;41&quot; data-slot=&quot;0&quot; data-val=&quot;82&quot; onclick=&quot;chipClick(this)&quot;&gt;82&lt;\/button&gt;&lt;\/td&gt;\n          &lt;td class=&quot;chip-cell&quot;&gt;&lt;button type=&quot;button&quot; class=&quot;chip inc&quot; data-row=&quot;41&quot; data-slot=&quot;1&quot; data-val=&quot;76&quot; onclick=&quot;chipClick(this)&quot;&gt;76&lt;\/button&gt;&lt;\/td&gt;\n          &lt;td class=&quot;chip-cell&quot;&gt;&lt;button type=&quot;button&quot; class=&quot;chip inv&quot; data-row=&quot;41&quot; data-slot=&quot;2&quot; data-val=&quot;90&quot; onclick=&quot;chipClick(this)&quot;&gt;90&lt;\/button&gt;&lt;\/td&gt;\n          &lt;td class=&quot;chip-cell&quot;&gt;&lt;button type=&quot;button&quot; class=&quot;chip inv&quot; data-row=&quot;41&quot; data-slot=&quot;3&quot; data-val=&quot;92&quot; onclick=&quot;chipClick(this)&quot;&gt;92&lt;\/button&gt;&lt;\/td&gt;\n          &lt;td class=&quot;eq-wrap&quot;&gt;\n            &lt;div class=&quot;eq-strip&quot; id=&quot;eq-41&quot;&gt;\n              &lt;span class=&quot;eq-slot inc&quot; id=&quot;slot-41-0&quot;&gt;?&lt;\/span&gt;&lt;span class=&quot;eq-op&quot;&gt;+&lt;\/span&gt;\n              &lt;span class=&quot;eq-slot inc&quot; id=&quot;slot-41-1&quot;&gt;?&lt;\/span&gt;&lt;span class=&quot;eq-op&quot;&gt;+&lt;\/span&gt;\n              &lt;span class=&quot;eq-slot inv&quot; id=&quot;slot-41-2&quot;&gt;?&lt;\/span&gt;&lt;span class=&quot;eq-op&quot;&gt;+&lt;\/span&gt;\n              &lt;span class=&quot;eq-slot inv&quot; id=&quot;slot-41-3&quot;&gt;?&lt;\/span&gt;\n              &lt;span class=&quot;eq-result&quot; id=&quot;eqres-41&quot;&gt;&lt;\/span&gt;\n            &lt;\/div&gt;\n            &lt;button class=&quot;btn-divide btn-hidden&quot; id=&quot;div-41&quot; onclick=&quot;divideRow(41)&quot; disabled&gt;&amp;divide; 4&lt;\/button&gt;\n            &lt;div id=&quot;result-41&quot;&gt;&lt;\/div&gt;\n          &lt;\/td&gt;\n        &lt;\/tr&gt;\n      &lt;\/tbody&gt;\n    &lt;\/table&gt;\n  &lt;\/div&gt;\n\n  &lt;div class=&quot;btn-row&quot;&gt;\n    &lt;button class=&quot;btn-reset&quot; onclick=&quot;resetAll()&quot;&gt;Reset all&lt;\/button&gt;\n  &lt;\/div&gt;\n\n  &lt;div class=&quot;hint-box&quot; id=&quot;hint-box&quot;&gt;&lt;\/div&gt;\n\n  &lt;div class=&quot;summary-box&quot; id=&quot;summary&quot;&gt;\n    &lt;strong&gt;All Clock Scores calculated!&lt;\/strong&gt;&lt;br&gt;\n    Age 1 week &amp;rarr; Clock Score: &lt;strong&gt;45.75&lt;\/strong&gt;&lt;br&gt;\n    Age 14 weeks &amp;rarr; Clock Score: &lt;strong&gt;65&lt;\/strong&gt;&lt;br&gt;\n    Age 27 weeks &amp;rarr; Clock Score: &lt;strong&gt;76.25&lt;\/strong&gt;&lt;br&gt;\n    Age 41 weeks &amp;rarr; Clock Score: &lt;strong&gt;85&lt;\/strong&gt;&lt;br&gt;&lt;br&gt;\n    You&#039;re now ready to plot these on a graph in Step 4 &amp;mdash; Clock Score on the x-axis, mouse age on the y-axis.\n  &lt;\/div&gt;\n\n  &lt;script&gt;\n    var calculationTimers = [];\n    var rows = [1, 14, 27, 41];\n    var rowDone = { 1: false, 14: false, 27: false, 41: false };\n\n    function chipClick(el) {\n      var row = el.getAttribute(&#039;data-row&#039;);\n      var tr = document.getElementById(&#039;row-&#039; + row);\n      if (tr.classList.contains(&#039;row-locked&#039;)) return;\n\n      var slot = el.getAttribute(&#039;data-slot&#039;);\n      var val = el.getAttribute(&#039;data-val&#039;);\n      var slotEl = document.getElementById(&#039;slot-&#039; + row + &#039;-&#039; + slot);\n      var selected = el.classList.toggle(&#039;chip-selected&#039;);\n\n      slotEl.textContent = selected ? val : &#039;?&#039;;\n      slotEl.classList.toggle(&#039;filled&#039;, selected);\n\n      updateEquation(row);\n    }\n\n    function updateEquation(row) {\n      var filled = document.querySelectorAll(&#039;#eq-&#039; + row + &#039; .eq-slot.filled&#039;).length;\n      var eqres = document.getElementById(&#039;eqres-&#039; + row);\n      var divBtn = document.getElementById(&#039;div-&#039; + row);\n\n      if (filled === 4) {\n        var sum = 0;\n        for (var i = 0; i &lt; 4; i++) {\n          sum += parseFloat(document.getElementById(&#039;slot-&#039; + row + &#039;-&#039; + i).textContent);\n        }\n        eqres.textContent = &#039;= &#039; + sum;\n        eqres.style.display = &#039;inline&#039;;\n        divBtn.disabled = false;\n        divBtn.setAttribute(&#039;data-sum&#039;, sum);\n      } else {\n        eqres.style.display = &#039;none&#039;;\n        divBtn.disabled = true;\n      }\n    }\n\n    function divideRow(row) {\n      var sum = parseFloat(document.getElementById(&#039;div-&#039; + row).getAttribute(&#039;data-sum&#039;));\n      var result = Math.round((sum \/ 4) * 100) \/ 100;\n\n      document.getElementById(&#039;result-&#039; + row).innerHTML =\n        &#039;&lt;div class=&quot;clock-score-display&quot;&gt;Clock Score = &lt;strong&gt;&#039; + result + &#039;&#039;;\n      document.getElementById(&#039;div-&#039; + row).style.display = &#039;none&#039;;\n      document.getElementById(&#039;row-&#039; + row).classList.add(&#039;row-locked&#039;);\n\n      rowDone[row] = true;\n      checkAllDone();\n\n      \/\/ Once Week 1 is solved, reveal the &quot;calculate the rest&quot; button and the remaining rows\n      if (parseInt(row, 10) === 1) {\n        document.querySelectorAll(&#039;.reveal-on-unlock&#039;).forEach(function(el) {\n          el.classList.add(&#039;shown&#039;);\n        });\n      }\n    }\n\n    function calculateRemaining() {\n      var crBtn = document.getElementById(&#039;calc-remaining-btn&#039;);\n      crBtn.disabled = true;\n      crBtn.textContent = &#039;Calculating&amp;hellip;&#039;;\n\n      var remaining = [14, 27, 41];\n      remaining.forEach(function(row, idx) {\n        calculationTimers.push(setTimeout(function() { autoSolveRow(row); }, idx * 700 + 350));\n      });\n\n      calculationTimers.push(setTimeout(function() {\n        crBtn.textContent = &#039;Calculated &amp;#10003;&#039;;\n      }, remaining.length * 700 + 400));\n    }\n\n    function autoSolveRow(row) {\n      document.querySelectorAll(&#039;.chip[data-row=&quot;&#039; + row + &#039;&quot;]&#039;).forEach(function(chip) {\n        chip.classList.add(&#039;chip-selected&#039;);\n        var slot = chip.getAttribute(&#039;data-slot&#039;);\n        var val = chip.getAttribute(&#039;data-val&#039;);\n        var slotEl = document.getElementById(&#039;slot-&#039; + row + &#039;-&#039; + slot);\n        slotEl.textContent = val;\n        slotEl.classList.add(&#039;filled&#039;);\n      });\n      updateEquation(row);\n      divideRow(row);\n    }\n\n    function checkAllDone() {\n      if (rows.every(function(r) { return rowDone[r]; })) {\n        document.getElementById(&#039;summary&#039;).style.display = &#039;block&#039;;\n      }\n    }\n\n    function resetAll() {\n      calculationTimers.forEach(clearTimeout);\n      calculationTimers = [];\n      document.getElementById(&#039;calc-remaining-btn&#039;).disabled = false;\n      rows.forEach(function(row) {\n        document.querySelectorAll(&#039;.chip[data-row=&quot;&#039; + row + &#039;&quot;]&#039;).forEach(function(c) {\n          c.classList.remove(&#039;chip-selected&#039;);\n        });\n        for (var i = 0; i &lt; 4; i++) {\n          var slotEl = document.getElementById(&#039;slot-&#039; + row + &#039;-&#039; + i);\n          slotEl.textContent = &#039;?&#039;;\n          slotEl.classList.remove(&#039;filled&#039;);\n        }\n        document.getElementById(&#039;eqres-&#039; + row).style.display = &#039;none&#039;;\n        var divBtn = document.getElementById(&#039;div-&#039; + row);\n        divBtn.disabled = true;\n        divBtn.style.display = (row === 1) ? &#039;inline-block&#039; : &#039;none&#039;;\n\n        document.getElementById(&#039;result-&#039; + row).innerHTML = &#039;&#039;;\n\n        var tr = document.getElementById(&#039;row-&#039; + row);\n        if (row === 1) {\n          tr.classList.remove(&#039;row-locked&#039;);\n        } else {\n          tr.classList.add(&#039;row-locked&#039;);\n        }\n        rowDone[row] = false;\n      });\n\n      \/\/ Re-hide the &quot;calculate the rest&quot; button and the remaining rows\n      document.querySelectorAll(&#039;.reveal-on-unlock&#039;).forEach(function(el) {\n        el.classList.remove(&#039;shown&#039;);\n      });\n      document.getElementById(&#039;calc-remaining-btn&#039;).textContent = &#039;Calculate weeks 14, 27 &amp; 41 &amp;rarr;&#039;;\n\n      document.getElementById(&#039;summary&#039;).style.display = &#039;none&#039;;\n    }\n  &lt;\/script&gt;\n\n  \n\n&lt;script&gt;(function () {\n  &#039;use strict&#039;;\n  \/\/ Give legacy table controls accessible names without changing answer logic.\n  document.querySelectorAll(&#039;select, input&#039;).forEach(function (control) {\n    if (control.labels.length || control.hasAttribute(&#039;aria-label&#039;)) return;\n    var cell = control.closest(&#039;td&#039;);\n    var row = control.closest(&#039;tr&#039;);\n    var table = control.closest(&#039;table&#039;);\n    var heading = table &amp;&amp; cell ? table.querySelectorAll(&#039;thead th&#039;)[cell.cellIndex] : null;\n    control.setAttribute(&#039;aria-label&#039;, [heading &amp;&amp; heading.textContent.trim(), row &amp;&amp; row.cells[0].textContent.trim()].filter(Boolean).join(&#039; \u2014 &#039;) || control.id);\n  });\n  document.querySelectorAll(&#039;#feedback, #summary&#039;).forEach(function (element) {\n    element.setAttribute(&#039;aria-live&#039;, &#039;polite&#039;);\n  });\n  var scheduled = false;\n  var lastHeight = 0;\n  function measure() {\n    if (scheduled) return;\n    scheduled = true;\n    requestAnimationFrame(function () {\n      scheduled = false;\n      \/\/ Body content height can shrink, unlike documentElement.scrollHeight.\n      var height = Math.ceil(document.body.getBoundingClientRect().height) + 2;\n      if (height &gt; 2 &amp;&amp; height !== lastHeight) {\n        lastHeight = height;\n        window.parent.postMessage({type: &#039;ells:height&#039;, height: height}, &#039;*&#039;);\n      }\n    });\n  }\n  window.addEventListener(&#039;message&#039;, function (event) {\n    if (event.source === window.parent &amp;&amp; event.data &amp;&amp; event.data.type === &#039;ells:measure&#039;) {\n      lastHeight = 0;\n      measure();\n    }\n  });\n  new ResizeObserver(measure).observe(document.body);\n  window.addEventListener(&#039;load&#039;, measure);\n  window.addEventListener(&#039;resize&#039;, measure);\n  measure();\n})();\n&lt;\/script&gt;&lt;\/body&gt;\n&lt;\/html&gt;\n\" sandbox=\"allow-scripts\" referrerpolicy=\"no-referrer\" height=\"700\"><\/iframe>\n                            <\/div>\n                    <div class=\"ells-interactive__panel\" id=\"ells-interactive-1-step-3\" data-activity-panel>\n                <h3 tabindex=\"-1\">Plot Your Epigenetic Clock<\/h3>\n                                                        <iframe data-activity-frame title=\"Plot Your Epigenetic Clock\" srcdoc=\"&lt;!DOCTYPE html&gt;\n&lt;html lang=&quot;en&quot;&gt;\n&lt;head&gt;&lt;meta http-equiv=&quot;Content-Security-Policy&quot; content=&quot;default-src &amp;#039;none&amp;#039;; script-src &amp;#039;unsafe-inline&amp;#039;; style-src &amp;#039;unsafe-inline&amp;#039;; img-src data:; font-src data:; connect-src &amp;#039;none&amp;#039;; frame-src &amp;#039;none&amp;#039;; object-src &amp;#039;none&amp;#039;; base-uri &amp;#039;none&amp;#039;; form-action &amp;#039;none&amp;#039;&quot;&gt;&lt;style&gt;html { overflow-y: hidden; }\nbody { min-height: 0; display: flow-root; }\nbutton:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid #2684c6; outline-offset: 2px; }\n.chip { font: inherit; }\n#plot-point { margin: 12px 0 0; background: #0a5032; color: white; }\n.plot-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; padding: 10px; }\n.plot-controls label { display: grid; gap: 4px; font-size: 14px; }\n.plot-controls input { width: 120px; padding: 8px; font: inherit; border: 1px solid #54585a; border-radius: 4px; }\n&lt;\/style&gt;\n  &lt;meta charset=&quot;UTF-8&quot;&gt;\n  &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;\n  &lt;title&gt;Step 4: Plot Your Epigenetic Clock&lt;\/title&gt;\n  &lt;style&gt;\n    * { box-sizing: border-box; margin: 0; padding: 0; }\n\n    body {\n      font-family: &#039;IBM Plex Sans&#039;, Helvetica, Arial, sans-serif;\n      background: transparent;\n      color: #373A36;\n      padding: 12px 24px;\n      max-width: 100%;\n      width: 100%;\n      margin: 0;\n      line-height: 1.45;\n    }\n\n    .instruction {\n      background: #fff;\n      border-left: 3px solid #18974C;\n      padding: 7px 18px;\n      margin-bottom: 6px;\n      font-size: 17px;\n      color: #373A36;\n      border-radius: 0 6px 6px 0;\n      line-height: 1.45;\n    }\n\n    .progress-line {\n      font-size: 14px;\n      color: #54585A;\n      margin-bottom: 6px;\n      font-weight: 500;\n    }\n    .progress-line span { font-weight: 700; color: #0A5032; }\n\n    .coordinate-display {\n      font-size: 14px;\n      background: #fff;\n      border: 1.5px solid #0A5032;\n      border-radius: 8px;\n      box-shadow: 0 1px 4px rgba(0,0,0,0.08);\n      padding: 7px 16px;\n      margin-bottom: 8px;\n      display: inline-block;\n      min-width: 300px;\n    }\n    .coord-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: #A8A99E; margin-bottom: 2px; font-weight: 600; }\n    .coord-value { font-size: 15px; font-weight: 700; color: #0A5032; }\n    .coord-value span { color: #A8A99E; font-weight: 400; font-size: 13px; margin: 0 6px; }\n\n    .graph-container {\n      position: relative;\n      display: block;\n      cursor: crosshair;\n      user-select: none;\n      margin-bottom: 8px;\n      max-width: 700px;\n    }\n    .graph-wrapper {\n      border-radius: 8px;\n      box-shadow: 0 1px 4px rgba(0,0,0,0.08);\n      overflow: hidden;\n      display: inline-block;\n      max-width: 100%;\n    }\n    canvas { display: block; width: 100%; height: auto; max-width: 700px; }\n\n    .btn-row { display: flex; gap: 12px; align-items: center; margin-bottom: 2px; flex-wrap: wrap; }\n\n    button {\n      padding: 9px 24px;\n      border: none;\n      border-radius: 6px;\n      font-size: 14px;\n      font-family: &#039;IBM Plex Sans&#039;, Helvetica, Arial, sans-serif;\n      cursor: pointer;\n      transition: background 0.15s, transform 0.1s;\n    }\n    button:active { transform: scale(0.98); }\n\n    .btn-bestfit { background: #18974C; color: #fff; display: none; }\n    .btn-bestfit:hover { background: #0A5032; }\n\n    .btn-reset { background: transparent; border: 1px solid #A8A99E; color: #54585A; }\n    .btn-reset:hover { background: #D0D0CE; }\n\n    .feedback-box {\n      font-size: 15px;\n      margin-top: 10px;\n      padding: 10px 16px;\n      border-radius: 6px;\n      display: none;\n      line-height: 1.6;\n    }\n    .feedback-try { background: #fff8e6; border: 1px solid #f0d080; color: #7a5c00; }\n    .feedback-snap { background: #D0DEBB; border: 1px solid #6CC24A; color: #0A5032; }\n\n    .summary-box {\n      margin-top: 16px;\n      background: #D0DEBB;\n      border: 1px solid #6CC24A;\n      border-radius: 6px;\n      padding: 16px 20px;\n      font-size: 16px;\n      display: none;\n      line-height: 1.8;\n    }\n    .summary-box strong { color: #0A5032; }\n\n    @media (max-width: 760px) {\n      body { padding: 10px 14px; }\n      .instruction { font-size: 16px; padding: 8px 14px; }\n      .coordinate-display { font-size: 13px; min-width: 0; width: 100%; }\n      .coord-value { font-size: 15px; }\n      button { font-size: 14px; padding: 10px 18px; }\n      .feedback-box, .summary-box { font-size: 13px; }\n    }\n  &lt;\/style&gt;\n\n&lt;\/head&gt;\n&lt;body&gt;\n\n  &lt;div class=&quot;instruction&quot;&gt;\n    The coordinates for each data point will appear one at a time. &lt;strong&gt;Click on the graph&lt;\/strong&gt; where you think the point should be plotted. If you&#039;re close enough it will snap into place &amp;mdash; if not, try again! You can also enter coordinates in the fields below the graph. Once all four points are plotted, add your curve of best fit.\n  &lt;\/div&gt;\n\n  &lt;div class=&quot;progress-line&quot;&gt;Points plotted: &lt;span id=&quot;progress&quot;&gt;0&lt;\/span&gt; \/ 4&lt;\/div&gt;\n\n  &lt;div class=&quot;coordinate-display&quot; id=&quot;coord-display&quot;&gt;\n    &lt;div class=&quot;coord-label&quot;&gt;Plot this point&lt;\/div&gt;\n    &lt;div class=&quot;coord-value&quot;&gt;Age: 1 week &lt;span&gt;&amp;rarr;&lt;\/span&gt; Clock Score: 45.75&lt;\/div&gt;\n  &lt;\/div&gt;\n\n  &lt;div class=&quot;graph-container&quot; id=&quot;graph-container&quot;&gt;\n    &lt;div class=&quot;graph-wrapper&quot;&gt;\n      &lt;canvas id=&quot;graph&quot; width=&quot;700&quot; height=&quot;370&quot; aria-label=&quot;Clock score on the horizontal axis, age in weeks on the vertical axis&quot;&gt;&lt;\/canvas&gt;\n      &lt;div class=&quot;plot-controls&quot;&gt;&lt;label&gt;Clock score (x) &lt;input id=&quot;plot-x&quot; type=&quot;number&quot; min=&quot;30&quot; max=&quot;100&quot; step=&quot;0.01&quot; required&gt;&lt;\/label&gt;&lt;label&gt;Age in weeks (y) &lt;input id=&quot;plot-y&quot; type=&quot;number&quot; min=&quot;0&quot; max=&quot;50&quot; step=&quot;0.01&quot; required&gt;&lt;\/label&gt;&lt;button type=&quot;button&quot; id=&quot;plot-point&quot;&gt;Plot coordinates&lt;\/button&gt;&lt;\/div&gt;\n    &lt;\/div&gt;\n  &lt;\/div&gt;\n\n  &lt;div class=&quot;btn-row&quot;&gt;\n    &lt;button class=&quot;btn-bestfit&quot; id=&quot;btn-bestfit&quot; onclick=&quot;drawBestFit()&quot;&gt;Add curve of best fit&lt;\/button&gt;\n    &lt;button class=&quot;btn-reset&quot; onclick=&quot;resetAll()&quot;&gt;Reset&lt;\/button&gt;\n  &lt;\/div&gt;\n\n  &lt;div class=&quot;feedback-box&quot; id=&quot;feedback&quot;&gt;&lt;\/div&gt;\n\n  &lt;div class=&quot;summary-box&quot; id=&quot;summary&quot;&gt;\n    &lt;strong&gt;Your epigenetic clock model is complete!&lt;\/strong&gt;&lt;br&gt;&lt;br&gt;\n    You&#039;ve plotted all four data points and added the curve of best fit. This curve &lt;em&gt;is&lt;\/em&gt; your epigenetic clock model &amp;mdash; you can now use it to estimate the age of any mouse from its methylation data.&lt;br&gt;&lt;br&gt;\n    You have completed all four steps of this activity.\n  &lt;\/div&gt;\n\n  &lt;script&gt;\n    \/\/ &amp;#9472;&amp;#9472; DATA &amp;#9472;&amp;#9472; Clock Scores calculated in Activity 3 &amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;\n    var points = [\n      { clockScore: 45.75, age: 1,  label: &#039;Age: 1 week&#039; },\n      { clockScore: 65,    age: 14, label: &#039;Age: 14 weeks&#039; },\n      { clockScore: 76.25, age: 27, label: &#039;Age: 27 weeks&#039; },\n      { clockScore: 85,    age: 41, label: &#039;Age: 41 weeks&#039; }\n    ];\n\n    \/\/ Quadratic best fit through the above points: y = ax&amp;sup2; + bx + c\n    \/\/ where x = clock score, y = age in weeks\n    var polyA = 0.017604681;\n    var polyB = -1.286945243;\n    var polyC = 23.06827477;\n\n    \/\/ &amp;#9472;&amp;#9472; GRAPH SETUP &amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;\n    var canvas = document.getElementById(&#039;graph&#039;);\n    var ctx    = canvas.getContext(&#039;2d&#039;);\n\n    var xMin = 30, xMax = 100;  \/\/ clock score\n    var yMin = 0,  yMax = 50;   \/\/ age in weeks\n\n    var mL = 66, mR = 20, mT = 20, mB = 54;\n    var plotW = canvas.width  - mL - mR;\n    var plotH = canvas.height - mT - mB;\n\n    function toCanvasX(val) { return mL + (val - xMin) \/ (xMax - xMin) * plotW; }\n    function toCanvasY(val) { return mT + plotH - (val - yMin) \/ (yMax - yMin) * plotH; }\n    function fromCanvasX(px) { return xMin + (px - mL) \/ plotW * (xMax - xMin); }\n    function fromCanvasY(py) { return yMin + (mT + plotH - py) \/ plotH * (yMax - yMin); }\n\n    \/\/ &amp;#9472;&amp;#9472; STATE &amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;\n    var currentIdx    = 0;\n    var plottedPoints = [];\n    var bestFitDrawn  = false;\n\n    \/\/ &amp;#9472;&amp;#9472; DRAW &amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;\n    function drawGraph() {\n      ctx.clearRect(0, 0, canvas.width, canvas.height);\n\n      ctx.fillStyle = &#039;#ffffff&#039;;\n      ctx.fillRect(mL, mT, plotW, plotH);\n\n      \/\/ Grid lines\n      ctx.strokeStyle = &#039;#E5E4DF&#039;;\n      ctx.lineWidth = 1;\n      for (var x = xMin; x &lt;= xMax; x += 10) {\n        var cx = toCanvasX(x);\n        ctx.beginPath(); ctx.moveTo(cx, mT); ctx.lineTo(cx, mT + plotH); ctx.stroke();\n      }\n      for (var y = yMin; y &lt;= yMax; y += 5) {\n        var cy = toCanvasY(y);\n        ctx.beginPath(); ctx.moveTo(mL, cy); ctx.lineTo(mL + plotW, cy); ctx.stroke();\n      }\n\n      \/\/ Axes\n      ctx.strokeStyle = &#039;#373A36&#039;;\n      ctx.lineWidth = 2;\n      ctx.beginPath();\n      ctx.moveTo(mL, mT); ctx.lineTo(mL, mT + plotH); ctx.lineTo(mL + plotW, mT + plotH);\n      ctx.stroke();\n\n      \/\/ Axis tick labels\n      ctx.fillStyle = &#039;#54585A&#039;;\n      ctx.font = &#039;13px &quot;IBM Plex Sans&quot;, Helvetica, Arial, sans-serif&#039;;\n      ctx.textAlign = &#039;center&#039;;\n      for (var x = xMin; x &lt;= xMax; x += 10) {\n        ctx.fillText(x, toCanvasX(x), mT + plotH + 18);\n      }\n      ctx.textAlign = &#039;right&#039;;\n      for (var y = yMin; y &lt;= yMax; y += 5) {\n        ctx.fillText(y, mL - 8, toCanvasY(y) + 4);\n      }\n\n      \/\/ Axis titles\n      ctx.fillStyle = &#039;#373A36&#039;;\n      ctx.font = &#039;bold 15px &quot;IBM Plex Sans&quot;, Helvetica, Arial, sans-serif&#039;;\n      ctx.textAlign = &#039;center&#039;;\n      ctx.fillText(&#039;Clock Score&#039;, mL + plotW \/ 2, mT + plotH + 40);\n\n      ctx.save();\n      ctx.translate(16, mT + plotH \/ 2);\n      ctx.rotate(-Math.PI \/ 2);\n      ctx.fillText(&#039;Age of Mouse (Weeks)&#039;, 0, 0);\n      ctx.restore();\n\n      \/\/ Best fit curve\n      if (bestFitDrawn) {\n        var curveXStart = points[0].clockScore;\n        var curveXEnd   = points[points.length - 1].clockScore;\n\n        ctx.strokeStyle = &#039;#18974C&#039;;\n        ctx.lineWidth = 2.5;\n        ctx.setLineDash([]);\n        ctx.beginPath();\n        var first = true;\n        for (var xs = curveXStart; xs &lt;= curveXEnd; xs += 0.5) {\n          var ys = polyA * xs * xs + polyB * xs + polyC;\n          if (ys &lt; yMin || ys &gt; yMax) { first = true; continue; }\n          var cx2 = toCanvasX(xs);\n          var cy2 = toCanvasY(ys);\n          if (first) { ctx.moveTo(cx2, cy2); first = false; }\n          else        { ctx.lineTo(cx2, cy2); }\n        }\n        ctx.stroke();\n      }\n\n      \/\/ Plotted points\n      plottedPoints.forEach(function(p) {\n        var cx3 = toCanvasX(p.clockScore);\n        var cy3 = toCanvasY(p.age);\n\n        ctx.strokeStyle = &#039;#0A5032&#039;;\n        ctx.lineWidth = 2.5;\n        ctx.beginPath();\n        ctx.moveTo(cx3 - 7, cy3); ctx.lineTo(cx3 + 7, cy3);\n        ctx.moveTo(cx3, cy3 - 7); ctx.lineTo(cx3, cy3 + 7);\n        ctx.stroke();\n\n        ctx.fillStyle = &#039;#0A5032&#039;;\n        ctx.font = &#039;11px &quot;IBM Plex Sans&quot;, Helvetica, Arial, sans-serif&#039;;\n        ctx.textAlign = &#039;left&#039;;\n        ctx.fillText(&#039;(&#039; + p.clockScore + &#039;, &#039; + p.age + &#039;)&#039;, cx3 + 9, cy3 - 5);\n      });\n    }\n\n    drawGraph();\n\n    \/\/ &amp;#9472;&amp;#9472; CLICK HANDLER &amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;\n    canvas.addEventListener(&#039;click&#039;, function(e) {\n      if (currentIdx &gt;= points.length) return;\n\n      var rect   = canvas.getBoundingClientRect();\n      var scaleX = canvas.width  \/ rect.width;\n      var scaleY = canvas.height \/ rect.height;\n      var px = (e.clientX - rect.left) * scaleX;\n      var py = (e.clientY - rect.top)  * scaleY;\n\n      if (px &lt; mL || px &gt; mL + plotW || py &lt; mT || py &gt; mT + plotH) return;\n\n      var clickedX = fromCanvasX(px);\n      var clickedY = fromCanvasY(py);\n\n      var target    = points[currentIdx];\n      var xRange    = xMax - xMin;\n      var yRange    = yMax - yMin;\n      var tolerance = 0.10;\n\n      var xOk = Math.abs(clickedX - target.clockScore) &lt;= xRange * tolerance;\n      var yOk = Math.abs(clickedY - target.age)        &lt;= yRange * tolerance;\n\n      var fb = document.getElementById(&#039;feedback&#039;);\n\n      if (xOk &amp;&amp; yOk) {\n        plottedPoints.push({ clockScore: target.clockScore, age: target.age });\n        currentIdx++;\n\n        fb.className = &#039;feedback-box feedback-snap&#039;;\n        fb.textContent = &#039;&amp;#10003; Snapped! (&#039; + target.clockScore + &#039;, &#039; + target.age + &#039;) plotted correctly.&#039;;\n        fb.style.display = &#039;block&#039;;\n\n        document.getElementById(&#039;progress&#039;).textContent = currentIdx;\n        drawGraph();\n        updateCoordDisplay();\n\n        if (currentIdx === points.length) {\n          document.getElementById(&#039;btn-bestfit&#039;).style.display = &#039;inline-block&#039;;\n          fb.textContent = &#039;&amp;#10003; All four points plotted! Now add your curve of best fit.&#039;;\n        }\n      } else {\n        fb.className = &#039;feedback-box feedback-try&#039;;\n        var hint = &#039;&#039;;\n        if (!xOk &amp;&amp; !yOk) hint = &#039;Check both axes &amp;mdash; the clock score (x) and the age (y) are both off.&#039;;\n        else if (!xOk)    hint = &#039;Your age (y-axis) looks right, but check the clock score on the x-axis.&#039;;\n        else              hint = &#039;Your clock score (x-axis) looks right, but check the age on the y-axis.&#039;;\n        fb.textContent = &#039;&amp;#10007; Not quite there &amp;mdash; &#039; + hint + &#039; Try again!&#039;;\n        fb.style.display = &#039;block&#039;;\n      }\n    });\n\n    \/\/ &amp;#9472;&amp;#9472; COORDINATE DISPLAY &amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;\n    function updateCoordDisplay() {\n      var display = document.getElementById(&#039;coord-display&#039;);\n      if (currentIdx &gt;= points.length) {\n        display.innerHTML = &#039;&lt;div class=&quot;coord-label&quot;&gt;All points plotted!&lt;div class=&quot;coord-value&quot; style=&quot;color:#0A5032&quot;&gt;Now add your curve of best fit &amp;darr;&#039;;\n      } else {\n        var p = points[currentIdx];\n        var ageLabel = p.age === 1 ? &#039;1 week&#039; : p.age + &#039; weeks&#039;;\n        display.innerHTML =\n          &#039;&lt;div class=&quot;coord-label&quot;&gt;Plot this point (&#039; + (currentIdx + 1) + &#039; of 4)&#039; +\n          &#039;&lt;div class=&quot;coord-value&quot;&gt;Age: &#039; + ageLabel + &#039;&lt;span&gt;&amp;rarr;Clock Score: &#039; + p.clockScore + &#039;&#039;;\n      }\n    }\n\n    \/\/ &amp;#9472;&amp;#9472; BEST FIT &amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;\n    function drawBestFit() {\n      bestFitDrawn = true;\n      document.getElementById(&#039;btn-bestfit&#039;).style.display = &#039;none&#039;;\n      drawGraph();\n      document.getElementById(&#039;summary&#039;).style.display = &#039;block&#039;;\n      document.getElementById(&#039;feedback&#039;).style.display = &#039;none&#039;;\n    }\n\n    \/\/ &amp;#9472;&amp;#9472; RESET &amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;&amp;#9472;\n    function resetAll() {\n      document.getElementById(&#039;plot-x&#039;).value = &#039;&#039;;\n      document.getElementById(&#039;plot-y&#039;).value = &#039;&#039;;\n      currentIdx    = 0;\n      plottedPoints = [];\n      bestFitDrawn  = false;\n      document.getElementById(&#039;progress&#039;).textContent = &#039;0&#039;;\n      document.getElementById(&#039;btn-bestfit&#039;).style.display = &#039;none&#039;;\n      document.getElementById(&#039;feedback&#039;).style.display = &#039;none&#039;;\n      document.getElementById(&#039;summary&#039;).style.display = &#039;none&#039;;\n      updateCoordDisplay();\n      drawGraph();\n    }\n  &lt;\/script&gt;\n\n  \n&lt;script&gt;\n document.getElementById(&#039;plot-point&#039;).addEventListener(&#039;click&#039;, function () {\n   if (currentIdx &gt;= points.length) return;\n   var x = document.getElementById(&#039;plot-x&#039;), y = document.getElementById(&#039;plot-y&#039;);\n   if (!x.value || !y.value || !x.checkValidity() || !y.checkValidity()) { x.reportValidity(); y.reportValidity(); return; }\n   var p = {clockScore: Number(x.value), age: Number(y.value)}, rect = canvas.getBoundingClientRect();\n   canvas.dispatchEvent(new MouseEvent(&#039;click&#039;, {clientX: rect.left + toCanvasX(p.clockScore) * rect.width \/ canvas.width, clientY: rect.top + toCanvasY(p.age) * rect.height \/ canvas.height}));\n });\n &lt;\/script&gt;\n&lt;script&gt;(function () {\n  &#039;use strict&#039;;\n  \/\/ Give legacy table controls accessible names without changing answer logic.\n  document.querySelectorAll(&#039;select, input&#039;).forEach(function (control) {\n    if (control.labels.length || control.hasAttribute(&#039;aria-label&#039;)) return;\n    var cell = control.closest(&#039;td&#039;);\n    var row = control.closest(&#039;tr&#039;);\n    var table = control.closest(&#039;table&#039;);\n    var heading = table &amp;&amp; cell ? table.querySelectorAll(&#039;thead th&#039;)[cell.cellIndex] : null;\n    control.setAttribute(&#039;aria-label&#039;, [heading &amp;&amp; heading.textContent.trim(), row &amp;&amp; row.cells[0].textContent.trim()].filter(Boolean).join(&#039; \u2014 &#039;) || control.id);\n  });\n  document.querySelectorAll(&#039;#feedback, #summary&#039;).forEach(function (element) {\n    element.setAttribute(&#039;aria-live&#039;, &#039;polite&#039;);\n  });\n  var scheduled = false;\n  var lastHeight = 0;\n  function measure() {\n    if (scheduled) return;\n    scheduled = true;\n    requestAnimationFrame(function () {\n      scheduled = false;\n      \/\/ Body content height can shrink, unlike documentElement.scrollHeight.\n      var height = Math.ceil(document.body.getBoundingClientRect().height) + 2;\n      if (height &gt; 2 &amp;&amp; height !== lastHeight) {\n        lastHeight = height;\n        window.parent.postMessage({type: &#039;ells:height&#039;, height: height}, &#039;*&#039;);\n      }\n    });\n  }\n  window.addEventListener(&#039;message&#039;, function (event) {\n    if (event.source === window.parent &amp;&amp; event.data &amp;&amp; event.data.type === &#039;ells:measure&#039;) {\n      lastHeight = 0;\n      measure();\n    }\n  });\n  new ResizeObserver(measure).observe(document.body);\n  window.addEventListener(&#039;load&#039;, measure);\n  window.addEventListener(&#039;resize&#039;, measure);\n  measure();\n})();\n&lt;\/script&gt;&lt;\/body&gt;\n&lt;\/html&gt;\n\" sandbox=\"allow-scripts\" referrerpolicy=\"no-referrer\" height=\"700\"><\/iframe>\n                            <\/div>\n                <footer class=\"ells-interactive__footer\" data-activity-controls hidden>\n            <button type=\"button\" data-activity-back>Back<\/button>\n            <button type=\"button\" data-activity-next>Next<\/button>\n        <\/footer>\n        <noscript><p>Enable JavaScript to use the interactive exercises and step navigation.<\/p><\/noscript>\n    <\/section>\n    \n<\/section>\n<\/div><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Resource on epigenetics and aging<\/p>\n","protected":false},"featured_media":40921,"parent":0,"menu_order":0,"template":"","class_list":["post-40917","teachingbase","type-teachingbase","status-publish","has-post-thumbnail","hentry","age-group-16-19","topic-area-epigenetics-neurobiology"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.embl.org\/ells\/wp-json\/wp\/v2\/teachingbase\/40917","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.embl.org\/ells\/wp-json\/wp\/v2\/teachingbase"}],"about":[{"href":"https:\/\/www.embl.org\/ells\/wp-json\/wp\/v2\/types\/teachingbase"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.embl.org\/ells\/wp-json\/wp\/v2\/media\/40921"}],"wp:attachment":[{"href":"https:\/\/www.embl.org\/ells\/wp-json\/wp\/v2\/media?parent=40917"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}