.tced-lesson {--tced-ink:#182e38;--tced-accent:#006d71;--tced-rule:#d9e3e3}
.tced-lesson .elementor[data-elementor-type="wp-page"]>.e-con,.tced-lesson .tced-page {
 width:100%;max-width:1440px;margin-inline:auto;padding:clamp(22px,4vw,60px) clamp(18px,5vw,78px);
 --gap:12px;--content-width:100%;color:var(--tced-ink)
}
.tced-lesson .elementor-widget-heading h1 {font-size:clamp(2.25rem,4.7vw,4.5rem);line-height:1.06;letter-spacing:-.035em;margin:0}
.tced-lesson .elementor-widget-heading h2 {margin:.9em 0 .15em;border-top:2px solid var(--tced-accent);padding-top:.55em;font-size:clamp(1.45rem,2.5vw,2.1rem);line-height:1.18}
.tced-lesson .elementor-widget-text-editor {line-height:1.65}
.tced-lesson .elementor-widget-text-editor p,.tced-lesson .elementor-widget-text-editor ol {max-width:86ch;margin-block:0 .45em}
.tced-lesson .elementor-widget-text-editor li {margin-bottom:.5em}
.tced-lesson .tced-meta,.tced-card small {font:700 .82rem/1.5 system-ui,sans-serif;color:var(--tced-accent);letter-spacing:.03em}
.tced-lesson .tced-figure {border:1px solid var(--tced-rule);background:white;text-align:center;margin-top:10px}
.tced-lesson .tced-figure img {display:block;margin:auto;width:auto;max-width:100%;max-height:640px;object-fit:contain}
.tced-lesson .tced-answer {border-left:3px solid var(--tced-accent);background:#f2f7f6;padding:14px 20px}
.tced-answer summary {cursor:pointer;font-weight:bold}
.tced-answer p {line-height:1.65;margin:12px 0 0;max-width:86ch}
.tced-lesson [hidden]{display:none!important}
.tced-filters {display:flex;gap:18px;flex-wrap:wrap;margin:16px 0 24px}
.tced-filters label {display:grid;gap:5px;font-size:.92rem;font-weight:700}
.tced-filters input,.tced-filters select {background:white;padding:10px 12px;border:1px solid #9aaeb1;border-radius:3px;min-height:44px;font:inherit}
.tced-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.tced-card,.tced-feature a,.tced-thumbs a {text-decoration:none!important;color:var(--tced-ink)!important}
.tced-card {display:flex;flex-direction:column;border:1px solid var(--tced-rule);border-bottom:3px solid var(--tced-accent)}
.tced-card img {width:100%;height:175px;object-fit:contain;padding:10px;box-sizing:border-box;background:white}
.tced-card-copy {padding:16px;border-top:1px solid var(--tced-rule)}
.tced-card strong {display:block;font-size:1.3rem;line-height:1.2;margin-top:6px}
.tced-gallery {display:grid;grid-template-columns:minmax(0,1.75fr) minmax(220px,1fr);gap:22px;align-items:start}
.tced-features:only-child {grid-column:1/-1}
.tced-feature a {display:block;background:#f1f6f5}
.tced-feature img {display:block;width:100%;aspect-ratio:16/8;object-fit:cover}
.tced-feature-copy {padding:clamp(18px,2vw,30px)}
.tced-feature-copy h3 {margin:.3em 0;font-size:clamp(1.4rem,2.2vw,2rem);line-height:1.15}
.tced-feature-copy time,.tced-feature-copy span {font-size:.86rem;font-weight:700;color:var(--tced-accent)}
.tced-feature-copy p {line-height:1.5;margin:.6em 0}
.tced-thumbs {display:grid;gap:5px}
.tced-thumbs a {display:flex;align-items:center;gap:12px;padding:7px;border-left:3px solid transparent;line-height:1.25;font-weight:650}
.tced-thumbs a[aria-current=true] {border-color:var(--tced-accent);background:#edf4f3}
.tced-thumbs img {width:72px;height:54px;object-fit:cover}
.tced-card:hover strong,.tced-feature a:hover h3,.tced-thumbs a:hover span {text-decoration:underline}
.tced-lesson :is(a,summary,input,select):focus-visible {outline:3px solid #00777a;outline-offset:2px}
@media(max-width:760px){.tced-grid,.tced-gallery {grid-template-columns:1fr}.tced-thumbs {grid-template-columns:repeat(2,minmax(0,1fr))}.tced-thumbs a {display:block;font-size:.9rem}.tced-thumbs img {display:block;width:100%;height:auto;aspect-ratio:2/1;margin-bottom:5px}.tced-filters label {flex:1;min-width:0}.tced-filters input,.tced-filters select{min-width:0;width:100%}}

/* Studio edition. Scope styling to the published diagrams and their Elementor editor. */
.tced-lesson {--td-cream:#f7f3e9;--td-paper:#fffefb;--td-teal:#126255;--td-ink:#163c36;--td-muted:#51655f;--td-line:#d9dfd5;--td-soft:#e0ede3}
.tced-lesson .td-shell,.tced-lesson .tced-index,.tced-lesson .tced-gallery {font-family:Poppins,"Trebuchet MS",sans-serif;color:var(--td-ink);font-size:16px;line-height:1.65}
.tced-lesson .td-shell :is(h1,h2,h3,p,a,button,select,input,summary,small,strong,legend),.tced-lesson .tced-index *,.tced-lesson .tced-gallery * {font-family:Poppins,"Trebuchet MS",sans-serif}
.tced-lesson .elementor[data-elementor-type="wp-page"]>.e-con.td-shell,.tced-lesson .td-shell.td-shell {
 display:flex;flex-direction:column;gap:0;width:100%;max-width:none;margin:0 auto;padding:0;background:var(--td-cream);overflow:visible;--overflow:visible
}
.td-shell .e-con {min-width:0}
.tced-lesson .td-mast,.tced-lesson .td-directory,.tced-lesson .td-reader {box-sizing:border-box;width:100%;max-width:1420px;margin:0 auto;padding:clamp(26px,4.8vw,72px) clamp(20px,5.7vw,80px)}
.tced-lesson .td-shell :is(h1,h2,h3,.elementor-heading-title) {color:var(--td-ink);text-transform:none;font-weight:700;border:0}
.tced-lesson .td-shell .elementor-widget-heading h1 {font-size:clamp(2.5rem,5vw,5.4rem);line-height:1.04;font-weight:700;letter-spacing:-.063em}
.tced-lesson .td-shell .elementor-widget-heading h2,.tced-lesson .td-results h2 {font-size:clamp(1.55rem,2.6vw,2.45rem);line-height:1.18;letter-spacing:-.045em;margin:0;padding:0;border:0}
.tced-lesson .td-shell .elementor-widget-heading h3 {font-size:clamp(1.15rem,1.7vw,1.45rem);line-height:1.3;letter-spacing:-.02em}
.tced-lesson .td-shell .elementor-widget-text-editor {font-size:clamp(1rem,1.12vw,1.12rem);line-height:1.75;color:#344b43}
.tced-lesson .td-shell .elementor-widget-text-editor p {margin:0;max-width:78ch}
.tced-lesson .td-shell .elementor-widget-text-editor p+p {margin-top:.9em}
.tced-lesson .td-home-mast {display:grid;grid-template-columns:minmax(0,1.4fr) minmax(235px,.8fr);align-items:center;gap:5%;padding-bottom:24px}
.tced-lesson .td-mast-text {display:flex;flex-direction:column;gap:20px;padding:0}
.td-mast-text h1 {max-width:11ch}
.tced-lesson .td-home-mast .elementor-widget-text-editor p {max-width:46ch;font-size:1.1rem}
.td-art {position:relative;display:grid;place-items:center;min-height:245px;isolation:isolate;overflow:hidden;border-radius:40% 10% 35% 12%;background-color:#dae9de;background-image:radial-gradient(#93b0a5 .9px,transparent 1px);background-size:12px 12px}
.td-plate {width:70%;max-width:290px;background:white;border:1px solid #b4c8bb;padding:12px 16px;transform:rotate(-5deg);border-radius:9px;box-shadow:6px 7px 0 #b6cdbf,12px 14px 0 #80a99a;color:#214c40}
.td-plate span,.td-plate b {display:block;font-size:.74rem;line-height:1.5}.td-plate span {text-align:right;color:#466756}.td-plate img {display:block;margin:auto;width:100%;height:133px;object-fit:contain}
.tced-lesson .td-directory {padding-top:10px}
.td-controls {padding:clamp(14px,2vw,24px);border-radius:20px;background:#173e36;color:white;box-shadow:0 8px 22px #183c3210}
.td-search-row {display:flex;align-items:stretch;gap:12px}
.td-search,.td-level {display:flex;align-items:center;gap:14px;border-radius:12px;background:#fffefb;color:var(--td-ink)}
.td-search {flex:1;padding:0 18px}
.td-glass {width:17px;height:17px;border-radius:50%;border:2px solid #37665b;position:relative;flex:none}.td-glass:after {content:'';position:absolute;right:-5px;bottom:-3px;width:8px;height:2px;background:#37665b;transform:rotate(45deg)}
.tced-lesson .td-search input,.tced-lesson .td-level select {border:0;background:transparent;box-shadow:none;color:#173e36;font-size:1rem;min-width:0;height:54px;padding:0 8px;line-height:normal}
.tced-lesson .td-search input {width:100%;padding:0}.td-search input::placeholder {color:#5e6e66;opacity:1}
.td-level {padding:0 14px;gap:8px}.td-level span {color:#576b61;font-size:.78rem}
.td-facets,.td-options {display:flex;flex-wrap:wrap;gap:8px}
.td-facets {margin-top:14px}
.tced-lesson .td-facets button,.tced-lesson .td-empty button,.tced-lesson .td-options button,.tced-lesson .td-gallery-tools button {font:600 .88rem/1.35 Poppins,sans-serif;text-transform:none;letter-spacing:0;cursor:pointer;border:1px solid #648779;background:transparent;color:#fff;border-radius:50px;padding:9px 15px}
.tced-lesson .td-facets button[aria-pressed=true] {background:#d8efb3;border-color:#d8efb3;color:#183a2b}.td-facets button:hover {box-shadow:inset 0 0 0 1px #afc4b6}
.td-results {display:flex;align-items:center;justify-content:space-between;gap:12px;margin:32px 0 18px}
.tced-lesson .td-results h2 {font-size:1.6rem}.tced-status {font-size:.85rem;color:var(--td-muted)}
.tced-lesson .tced-card {overflow:hidden;border:1px solid #d5ddcf;border-radius:18px;background:var(--td-paper);box-shadow:0 3px 0 #214b3310;transition:transform .18s,box-shadow .18s;color:var(--td-ink)!important}
.tced-lesson .tced-card:hover {transform:translateY(-3px);box-shadow:0 8px 16px #16372a15}
.td-card-visual {position:relative;display:grid;place-items:center;background:#e2ece1;padding:34px 18px 14px}
.tced-lesson .tced-card .td-card-visual img {height:152px;width:100%;object-fit:contain;padding:10px 7px;border-radius:8px}
.td-pill {position:absolute;top:7px;right:15px;font-size:.72rem;line-height:21px;font-weight:600;color:#243b31}
.tced-lesson .tced-card-copy {display:flex;flex-direction:column;flex:1;border:0;padding:20px;gap:8px}
.tced-lesson .tced-card small,.tced-lesson .tced-meta {font:600 .82rem/1.4 Poppins,sans-serif;color:#146251}.tced-lesson .tced-card strong {margin:0;font-size:clamp(1.15rem,1.5vw,1.48rem);letter-spacing:-.035em}
.td-brief {color:var(--td-muted);font-size:.92rem;line-height:1.55}
.td-open {display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding-top:16px;font-size:.84rem;font-weight:600;color:var(--td-teal)}
.td-open i {display:grid;place-items:center;width:30px;height:30px;border:1px solid #b3c7b8;border-radius:50%;font-style:normal}
.td-empty {text-align:center;padding:32px;background:white;border-radius:16px}.tced-lesson .td-empty button {color:var(--td-ink);border-color:#a4bcae}
.tced-lesson .td-lesson-mast {align-items:flex-start;gap:10px;--gap:10px;padding-bottom:26px}
.td-lesson-mast .elementor-widget-text-editor:first-child a {display:inline-block;font-size:.85rem;color:#286a58;font-weight:600;margin-bottom:14px}
.tced-lesson .td-lesson-mast .tced-meta {display:inline-block;background:#e1eada;border:1px solid #cad8bc;border-radius:30px;padding:6px 13px}
.tced-lesson .td-lesson-mast h1 {max-width:23ch}.tced-lesson .td-lesson-mast .elementor-widget-text-editor:last-child p {max-width:68ch;font-size:clamp(1.02rem,1.4vw,1.19rem)}
.tced-lesson .td-reader {display:grid;grid-template-columns:minmax(160px,202px) minmax(0,1fr);align-items:start;gap:clamp(18px,3vw,48px);padding-top:10px;overflow:visible}
.tced-lesson .td-rail {position:sticky;top:75px;align-self:start;padding:0;height:fit-content}
.td-contents {display:grid;gap:2px;padding:15px 9px;border-top:2px solid #2b6a57;border-bottom:1px solid #cbd6c7}
.td-contents strong {font-size:.88rem;margin:0 9px 8px}.td-contents a {display:block;padding:7px 10px;border-radius:7px;color:#40594b!important;text-decoration:none!important;font-size:.86rem}
.td-contents a[aria-current],.td-contents a:hover {background:#dce9d7;color:#164632!important;font-weight:600}
.tced-lesson .td-body {display:flex;flex-direction:column;gap:16px;padding:0}
.tced-lesson .td-section {scroll-margin-top:85px;display:flex;flex-direction:column;gap:15px;--gap:15px;background:var(--td-paper);padding:clamp(19px,2.8vw,40px);border:1px solid var(--td-line);border-radius:19px;box-shadow:0 2px 0 #20392408}
.tced-lesson .td-diagram {padding:clamp(9px,1.5vw,22px);background:white;border-top:4px solid #377f70}
.tced-lesson .td-shell .tced-figure {margin:0;border:0;background:white}
.tced-lesson .td-shell .tced-figure img {width:auto;height:auto;max-width:100%;max-height:520px;margin:auto}
.td-key {margin:0;display:grid;gap:0}.td-key>div {display:grid;grid-template-columns:34px 1fr;align-items:baseline;gap:12px;padding:10px 0;border-bottom:1px solid #e5e7df}.td-key>div:last-child{border-bottom:0}
.td-key dt {display:grid;place-items:center;border-radius:9px;background:#dcead9;color:#194d3b;font-weight:700}.td-key dd {margin:0}
.tced-lesson .td-draw ol {list-style:none;counter-reset:drawing;padding:0;margin:0}
.tced-lesson .td-draw li {position:relative;padding:2px 0 14px 43px;counter-increment:drawing}.td-draw li:before {content:counter(drawing);position:absolute;top:2px;left:0;border:1px solid #afc8b6;border-radius:50%;width:28px;height:28px;text-align:center;font-size:.9rem;font-weight:600;line-height:27px}
.td-insight,.tced-lesson .td-shell .tced-answer {padding:15px 18px;background:#edf4e9;border-radius:8px;border-left:3px solid #54865b}
.tced-lesson .td-example {background:#edf3e6;border-color:#cbd9c1}
.tced-lesson .td-practice .elementor-widget-heading:not(:first-child) {margin-top:14px}
.td-quiz {padding:16px;margin:12px 0 0;min-width:0;border-radius:12px;border:1px solid #cbd5c5}.td-quiz legend {padding:0 6px;font-weight:700}.td-quiz p {margin:0 0 12px}
.tced-lesson .td-options button {color:var(--td-ink);border-color:#b7c7bd;background:white;text-align:left}
.tced-lesson .td-options button[aria-pressed=true]{background:#e6eddc;border-color:#406c51}.td-feedback:not(:empty){margin:12px 0 0;color:#254d38;font-size:.95rem}.td-feedback:empty {display:none}
.td-gallery-tools {grid-column:1/-1;display:flex;align-items:center;justify-content:flex-end;gap:10px}.tced-lesson .td-gallery-tools button {padding:6px 12px;background:#174637}.td-counter {font-size:.85rem}
.tced-lesson .tced-feature a {border-radius:12px;overflow:hidden}.tced-lesson .tced-thumbs a {border-radius:7px}.tced-lesson .tced-thumbs img {border-radius:5px}
.tced-lesson .tced-feature:only-child {grid-column:1/-1}
.tced-lesson :is(a,button,input,select,summary):focus-visible {outline:3px solid #d68e25;outline-offset:3px}
@media(max-width:900px){
 .tced-lesson .td-reader {display:flex;flex-direction:column;gap:16px}
 .tced-lesson .td-rail {position:static;width:100%}.td-contents {display:flex;flex-wrap:wrap;align-items:center;gap:4px;border:0;background:#eaeedc;border-radius:12px;padding:9px}.td-contents strong {width:100%;margin-bottom:0}.td-contents a {padding:5px 8px}
 .tced-lesson .td-body {width:100%}.td-level span {display:none}
}
@media(max-width:760px){
 .tced-lesson .td-home-mast {grid-template-columns:1fr;gap:16px}.td-art {min-height:105px;max-height:125px;border-radius:15px}.td-plate {max-width:195px;padding:6px 12px}.td-plate img {height:76px}.td-plate span,.td-plate b {font-size:.65rem}
 .td-mast-text h1 {max-width:17ch}.tced-lesson .td-mast-text {gap:12px}
 .tced-lesson .td-directory,.tced-lesson .td-reader {padding-inline:16px}
 .tced-lesson .td-mast {padding-inline:20px}.td-search-row {flex-wrap:wrap}.td-search {min-width:100%;box-sizing:border-box}.td-level {padding-inline:12px}.td-level span {display:inline}.tced-lesson .td-level select {height:38px;font-size:.88rem}
 .td-facets {gap:5px}.tced-lesson .td-facets button {font-size:.78rem;padding:8px 10px}
 .tced-lesson .td-card-visual img {height:165px}.td-results {margin-top:24px}
}
@media(prefers-reduced-motion:reduce){.tced-lesson .tced-card {transition:none}.tced-lesson .tced-card:hover {transform:none}}
.td-figure-tools {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:2px 5px 8px;color:#36584c}
.td-figure-tools strong {font-size:.95rem}
.tced-lesson .td-cover {border:1px solid #b3c9ba;background:#f4f8ee;color:#20513f;font:600 .83rem/1.4 Poppins,sans-serif;border-radius:30px;padding:8px 13px;cursor:pointer;text-transform:none}

@font-face{font-family:"TCE Poppins";src:url("fonts/Poppins-Regular.woff") format("woff");font-weight:400 500;font-display:swap}
@font-face{font-family:"TCE Poppins";src:url("fonts/Poppins-SemiBold.woff") format("woff");font-weight:600;font-display:swap}
@font-face{font-family:"TCE Poppins";src:url("fonts/Poppins-Bold.woff") format("woff");font-weight:700 900;font-display:swap}
body.tced-lesson .td-shell,body.tced-lesson .td-shell :is(h1,h2,h3,h4,p,span,a,button,label,select,input,legend,summary,aside,time,nav,ol,li,dl,dt,dd,strong,small,div,.elementor-heading-title) {font-family:"TCE Poppins",Poppins,sans-serif!important}
body.tced-lesson .td-shell .td-lesson-mast .elementor-widget-text-editor:last-child {width:100%;max-width:none;align-self:stretch}
body.tced-lesson .td-shell .td-lesson-mast .elementor-widget-text-editor:last-child :is(.elementor-widget-container,p){width:100%;max-width:none;font-size:clamp(1.12rem,1.5vw,1.35rem);line-height:1.62}
.tced-lesson .td-key>div {grid-template-columns:minmax(46px,auto) 1fr}
.tced-lesson .td-key dt {min-width:46px}
.tced-lesson .tced-thumbs a:not([hidden]) {display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;align-items:center}
.tced-lesson .tced-thumbs .td-thumb-frame {display:block;width:72px;height:54px;overflow:hidden;background:#e1ebe4;border-radius:5px}
.tced-lesson .tced-thumbs .td-thumb-frame img {width:100%!important;height:100%!important;max-width:none;object-fit:cover;display:block;margin:0}
.tced-lesson .td-letters .td-key dt {display:block;position:static;min-width:0;padding:0;margin:0;background:none!important;border:none!important;border-radius:0;box-shadow:none;font-weight:700;color:var(--td-ink)}
.tced-lesson .td-letters .td-key :is(dt,dd,div)::before,.tced-lesson .td-letters .td-key :is(dt,dd,div)::after {content:none!important;display:none!important}
.tced-lesson .td-key>div {grid-template-columns:4ch minmax(0,1fr)}
@media(max-width:760px){.tced-lesson .tced-thumbs {grid-template-columns:1fr}.tced-lesson .tced-thumbs a:not([hidden]){grid-template-columns:72px minmax(0,1fr)}}
.tced-lesson .td-key :is(dt,dd) {list-style:none!important;background-image:none!important}
.tced-lesson .td-key :is(dt,dd)::marker {content:""!important}
.tced-lesson .td-thumb-frame picture {display:block;width:100%;height:100%}
.tced-lesson .tced-thumbs a[hidden] {display:none!important}

/* Unit colours carry through from the filter key to the diagram frame and reading panel. */
.tced-index [data-unit="1"] {--unit-band:#ed985d;--unit-panel:#fff0e1;--unit-ink:#522712}
.tced-index [data-unit="2"] {--unit-band:#dfb846;--unit-panel:#fbf1cc;--unit-ink:#44330b}
.tced-index [data-unit="3"] {--unit-band:#66c58e;--unit-panel:#e1f4e8;--unit-ink:#143d2c}
.tced-index [data-unit="4"] {--unit-band:#83375e;--unit-panel:#f7e4ee;--unit-ink:#54233f}
.tced-lesson .tced-card[data-unit] {background:var(--unit-panel);border-color:var(--unit-band)}
.tced-index .td-card-visual {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;justify-items:start;gap:8px;padding:12px 15px 14px;background:var(--unit-band);color:var(--unit-ink)}
.tced-index [data-unit="4"] .td-card-visual {color:#fff8fc}
.tced-index .td-unit-name,.tced-index .td-pill {position:static;font-size:.77rem;font-weight:600;line-height:1.4;color:inherit}
.tced-index .td-card-visual img {grid-column:1/-1}
.tced-lesson .tced-card-copy :is(small,strong,.td-open,.td-brief){color:var(--unit-ink)}
.tced-lesson .tced-card-copy .td-open i {border-color:currentColor}
.td-facets button[data-unit]:not([data-unit=""])::before {content:"";display:inline-block;width:.68em;height:.68em;margin-right:.5em;border-radius:50%;background:var(--unit-band);box-shadow:0 0 0 1px currentColor}
.tced-index .tced-card:focus-visible,.td-facets button:focus-visible {outline:3px solid #315cc0;outline-offset:3px}

.tced-lesson .td-case-time {font-weight:600;color:#365e50}
.tced-lesson .td-case-extract {background:#f8f4e8;border-radius:12px;padding:clamp(16px,3vw,26px)}
.tced-lesson .td-case-extract p+p {margin-top:.85em}
.tced-lesson .td-case-extract .td-case-sources {font-size:.85rem;line-height:1.6;margin-bottom:0}
.tced-lesson .td-case-sources a {color:#285e4c;text-decoration:underline}
.tced-lesson .td-case-question {padding-left:2.15em;position:relative;margin:0}
.tced-lesson .td-case-question>strong {position:absolute;left:0}
.tced-lesson .td-case-question>b {white-space:nowrap;color:#315c48}
.tced-lesson .td-case-answer figure {margin:16px 0;padding:0}
.tced-lesson .td-case-answer img {width:100%;height:auto;display:block;background:white;border-radius:10px}
.tced-lesson .td-case-answer .td-case-check {font-size:.88rem;color:#325746;margin:4px 0 18px}
.tced-lesson .td-case-answer summary:focus-visible {outline:3px solid #315cc0;outline-offset:3px}
