/* Presentation only. All rules are scoped to this optional plugin's body class. */
body.ths-site-cleanup{--ths-cleanup-blue:#08789a;--ths-cleanup-ink:#18323c;--ths-cleanup-line:#dbe3e5}
body.ths-site-cleanup .site-branding-text{width:min(100%,1050px);padding-inline:24px;box-sizing:border-box}
body.ths-site-cleanup .site-branding .site-title{font-size:clamp(34px,5.3vw,68px);line-height:1.13;overflow-wrap:break-word;max-width:100%;margin-inline:auto}
body.ths-site-cleanup .site-branding .site-title a{white-space:normal}
body.ths-site-cleanup .entry-title{font-size:clamp(28px,3.5vw,42px);line-height:1.2;overflow-wrap:break-word}
body.ths-site-cleanup:not(.home):not(.ths-reader-page) #content{padding-top:32px}
body.ths-site-cleanup:not(.home):not(.ths-reader-page) .entry-header .entry-title{margin-top:0}
body.ths-site-cleanup .entry-content{line-height:1.65}
body.ths-site-cleanup .entry-content img{max-width:100%;height:auto}
body.ths-site-cleanup .entry-content a:focus-visible,body.ths-site-cleanup .site-navigation a:focus-visible{outline:3px solid #c77922;outline-offset:4px}
body.ths-site-cleanup .ths-home-links{display:flex;gap:14px;flex-wrap:wrap;margin:26px 0 12px}
body.ths-site-cleanup .ths-cleanup-button{display:inline-flex;align-items:center;justify-content:space-between;gap:22px;background:var(--ths-cleanup-blue);color:white;border:1px solid var(--ths-cleanup-blue);border-radius:6px;padding:12px 18px;text-decoration:none;font:600 15px/1.4 system-ui,sans-serif;white-space:normal;text-transform:none;letter-spacing:normal}
body.ths-site-cleanup .ths-cleanup-button:hover{background:#05627e;color:white}
body.ths-site-cleanup .ths-book-index h2{font-size:22px;line-height:1.3;padding:0;margin:0 0 24px}
body.ths-site-cleanup .ths-book-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px;max-width:1040px}
body.ths-site-cleanup .ths-book-card{background:white;border:1px solid var(--ths-cleanup-line);border-radius:10px;overflow:hidden;margin:0;box-shadow:0 4px 16px #18323c08}
body.ths-site-cleanup .ths-book-cover{display:flex;align-items:center;justify-content:center;height:330px;background:#edf2f3;padding:22px}
body.ths-site-cleanup .ths-book-cover img{max-height:286px;width:auto;max-width:100%;object-fit:contain;box-shadow:0 4px 14px #18323c20}
body.ths-site-cleanup .ths-book-card-body{padding:24px}
body.ths-site-cleanup .ths-book-card-body h3{font-size:23px;line-height:1.3;margin:0 0 8px;padding:0;letter-spacing:normal}
body.ths-site-cleanup .ths-book-card-body h3 a{color:var(--ths-cleanup-ink);text-decoration:none}
body.ths-site-cleanup .ths-book-card-body p{font-size:15px;line-height:1.5;color:#5c6c72;margin:0 0 20px}
body.ths-site-cleanup .ths-curriculum-credit{font-size:14px;color:#5c6c72;margin-top:28px}
body.ths-site-cleanup.page-id-354 #main .elementor-widget-text-editor a,body.ths-site-cleanup.page-id-356 #main .elementor-widget-text-editor a,body.ths-site-cleanup.page-id-354 #main .elementor-button-wrapper>a,body.ths-site-cleanup.page-id-356 #main .elementor-button-wrapper>a{display:block;padding:16px 20px;border:1px solid var(--ths-cleanup-line);border-radius:6px;margin-block:10px;line-height:1.55;text-decoration:none;background:#f7f9f9;color:#05627e;overflow-wrap:anywhere;text-align:left;font-size:15px;text-transform:none;letter-spacing:normal;white-space:normal}
body.ths-site-cleanup.page-id-354 #main .elementor-widget-text-editor a:hover,body.ths-site-cleanup.page-id-356 #main .elementor-widget-text-editor a:hover,body.ths-site-cleanup.page-id-354 #main .elementor-button-wrapper>a:hover,body.ths-site-cleanup.page-id-356 #main .elementor-button-wrapper>a:hover{background:#edf5f7;border-color:#a4d0dc}
@media(max-width:700px){body.ths-site-cleanup .ths-book-cards{grid-template-columns:1fr;gap:20px}body.ths-site-cleanup .ths-book-cover{height:290px}body.ths-site-cleanup .ths-book-cover img{max-height:250px}body.ths-site-cleanup .ths-home-links{display:grid;grid-template-columns:1fr}body.ths-site-cleanup .ths-book-card-body{padding:20px}}
@media(prefers-reduced-motion:reduce){body.ths-site-cleanup{scroll-behavior:auto}}
/* Homepage actions sit inside the existing photographic hero. */
body.ths-site-cleanup .ths-hero-tagline{font:400 clamp(17px,2vw,23px)/1.5 system-ui,sans-serif;color:#fff;margin:22px 0;text-shadow:0 1px 5px #000}
body.ths-site-cleanup .ths-hero-action{background:#fff;color:#075f79;border-color:#fff;padding:14px 24px;box-shadow:0 3px 15px #0003}
body.ths-site-cleanup .ths-hero-action:hover{background:#e7f1f4;color:#18323c}
body.ths-site-cleanup .ths-resource-card .ths-link-title{display:block;font:600 19px/1.4 system-ui,sans-serif;color:#18323c}
body.ths-site-cleanup .ths-resource-card .ths-link-detail{display:block;margin-top:6px;font:400 14px/1.5 system-ui,sans-serif;color:#4c636c}
/* Existing story player: layout and colour only; IDs and controls unchanged. */
body.ths-site-cleanup:is(.page-id-714,.page-id-135) .lesson-layout{width:100%;max-width:none;font-family:system-ui,sans-serif;gap:18px}
body.ths-site-cleanup:is(.page-id-714,.page-id-135) .timestamp-section,body.ths-site-cleanup:is(.page-id-714,.page-id-135) .story-list{border:1px solid var(--ths-cleanup-line);background:#f7f9fa;border-radius:10px;padding:18px;box-sizing:border-box}
body.ths-site-cleanup:is(.page-id-714,.page-id-135) .timestamp-section h3,body.ths-site-cleanup:is(.page-id-714,.page-id-135) .story-list h3{color:var(--ths-cleanup-ink);font-size:18px;line-height:1.45;margin:0 0 14px;padding:0}
body.ths-site-cleanup:is(.page-id-714,.page-id-135) .story-list{overflow-x:hidden;max-height:360px}
body.ths-site-cleanup:is(.page-id-714,.page-id-135) .stories,body.ths-site-cleanup:is(.page-id-714,.page-id-135) .timestamps{padding:0;margin:0;list-style:none}
body.ths-site-cleanup:is(.page-id-714,.page-id-135) .stories li,body.ths-site-cleanup:is(.page-id-714,.page-id-135) .timestamps li{list-style:none;margin:0 0 8px;padding:0}
body.ths-site-cleanup:is(.page-id-714,.page-id-135) .story-button{background:#fff;color:#18323c;border:1px solid #dbe3e5;border-radius:6px;font:500 14px/1.5 system-ui,sans-serif;padding:12px;white-space:normal;overflow-wrap:anywhere;text-transform:none;letter-spacing:normal;width:100%;box-sizing:border-box;text-align:left;margin:0}
body.ths-site-cleanup:is(.page-id-714,.page-id-135) .story-button.active,body.ths-site-cleanup:is(.page-id-714,.page-id-135) .story-button:hover{background:#e4f1f5;color:#075f79;border-color:#81b7c7}
body.ths-site-cleanup:is(.page-id-714,.page-id-135) .timestamps a{display:block;padding:8px 10px;border-radius:5px;color:#075f79;font-size:14px}
body.ths-site-cleanup:is(.page-id-714,.page-id-135) .timestamps a:hover{background:#e4f1f5}
body.ths-site-cleanup:is(.page-id-714,.page-id-135) .audio-controls{flex-wrap:wrap;gap:10px}
body.ths-site-cleanup:is(.page-id-714,.page-id-135) .audio-controls button{background:#08789a;border-radius:6px;font:600 13px/1.5 system-ui,sans-serif;letter-spacing:normal;text-transform:none;padding:10px 14px}
/* AudioIgniter keeps its familiar controls, with the reader's teal palette. */
body.ths-site-cleanup.page-id-135 .ai-wrap{border-radius:10px;overflow:hidden;background:#18323c}
body.ths-site-cleanup.page-id-135 .ai-audio-control,body.ths-site-cleanup.page-id-135 .ai-track-progress,body.ths-site-cleanup.page-id-135 .ai-volume-bar.ai-volume-bar-active{background-color:#08789a}
body.ths-site-cleanup.page-id-135 .ai-track.ai-track-active{background-color:#255563}
body.ths-site-cleanup.page-id-135 .ai-track-name{white-space:normal;line-height:1.5}
body.ths-site-cleanup.page-id-135 .ai-track{padding-block:12px}
body.ths-site-cleanup.page-id-135 .ai-wrap button:focus-visible,body.ths-site-cleanup:is(.page-id-714,.page-id-135) .lesson-layout button:focus-visible,body.ths-site-cleanup .ths-hero-action:focus-visible{outline:3px solid #e5a13e;outline-offset:3px}
@media(max-width:700px){body.ths-site-cleanup .ths-hero-tagline{margin:16px 0}body.ths-site-cleanup:is(.page-id-714,.page-id-135) .timestamp-section,body.ths-site-cleanup:is(.page-id-714,.page-id-135) .story-list{padding:14px}}
body.ths-site-cleanup.page-id-135 .ai-volume-bar::before{background-color:#08789a}

body.ths-site-cleanup .ths-matching-player .timestamp-section h3{margin-bottom:0}
body.ths-site-cleanup .ths-matching-player audio{width:100%;min-width:0}
body.ths-site-cleanup .ths-matching-player .ths-lesson-error{color:#8a321c;font-size:14px;margin:0}
/* Keep book navigation and the reader close to the heading. */
body.ths-site-cleanup:is(.page-id-135,.page-id-714) .entry-title{margin-bottom:0}
body.ths-site-cleanup:is(.page-id-135,.page-id-714) .entry-content{margin-top:14px}
body.ths-site-cleanup:is(.page-id-135,.page-id-714) .entry-content .ths-reading-content>.wp-block-columns{padding:0;margin-top:0}
body.ths-site-cleanup .ths-reader-back{margin:0 0 18px;font:600 14px/1.6 system-ui,sans-serif}
body.ths-site-cleanup .ths-reader-back a{display:inline-block;color:#075f79;text-decoration:none;padding:4px 0}
body.ths-site-cleanup .ths-reader-back a:hover{text-decoration:underline}
@media(max-width:782px){body.ths-site-cleanup:is(.page-id-135,.page-id-714) ._df_book{height:560px!important;max-height:75vh;min-height:380px}}
/* Plain PDF reader: crisp page rendering, readable controls, no flip effects. */
body.ths-site-cleanup .ths-pdf-viewer{border:1px solid #dbe3e5;border-radius:10px;background:#fff;overflow:hidden;min-width:0;font-family:system-ui,sans-serif}
body.ths-site-cleanup .ths-pdf-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;padding:12px 14px;background:#fff;border-bottom:1px solid #dbe3e5;font:500 13px/1.5 system-ui,sans-serif;color:#18323c}
body.ths-site-cleanup .ths-pdf-pages{display:flex;align-items:center;gap:8px}
body.ths-site-cleanup .ths-pdf-toolbar label{display:flex;align-items:center;gap:6px;margin:0;font-size:13px;font-weight:500;letter-spacing:normal;text-transform:none}
body.ths-site-cleanup .ths-pdf-toolbar button{border:1px solid #cbd8dd;background:#f7f9fa;color:#18323c;border-radius:5px;min-height:36px;min-width:36px;padding:5px 9px;font:600 16px/1 system-ui,sans-serif;letter-spacing:normal}
body.ths-site-cleanup .ths-pdf-toolbar button:disabled{opacity:.4;cursor:default}
body.ths-site-cleanup .ths-pdf-toolbar input{width:60px;min-height:36px;padding:4px 6px;border:1px solid #cbd8dd;border-radius:5px;font:400 14px/1.5 system-ui,sans-serif;margin:0;color:#18323c;background:#fff}
body.ths-site-cleanup .ths-pdf-toolbar select{min-height:36px;max-width:110px;padding:4px 6px;border:1px solid #cbd8dd;border-radius:5px;background:#fff;color:#18323c;font:400 13px/1.5 system-ui,sans-serif;margin:0}
body.ths-site-cleanup .ths-pdf-toolbar>a{margin-left:auto;color:#075f79;white-space:nowrap;text-decoration:none;font-weight:600}
body.ths-site-cleanup .ths-pdf-viewport{background:#edf1f3;padding:16px;overflow:auto;max-height:76vh;min-height:320px;box-sizing:border-box;overscroll-behavior:contain}
body.ths-site-cleanup .ths-pdf-paper{position:relative;margin:0 auto;background:#fff;box-shadow:0 2px 10px #18323c12}
body.ths-site-cleanup .ths-pdf-paper canvas{display:block;max-width:none}
body.ths-site-cleanup .ths-pdf-status{font:400 12px/1.5 system-ui,sans-serif;color:#536a74;padding:9px 14px;margin:0;border-top:1px solid #dbe3e5}
body.ths-site-cleanup .ths-pdf-toolbar :is(button,input,select):focus-visible,body.ths-site-cleanup .ths-pdf-viewport:focus-visible{outline:3px solid #c77922;outline-offset:2px}
body.ths-site-cleanup .ths-pdf-paper .textLayer{position:absolute;inset:0;overflow:clip;line-height:1;text-align:initial;text-size-adjust:none;forced-color-adjust:none;transform-origin:0 0;z-index:2;letter-spacing:normal;word-spacing:normal;--min-font-size:1;--text-scale-factor:calc(var(--total-scale-factor) * var(--min-font-size));--min-font-size-inv:calc(1 / var(--min-font-size))}
body.ths-site-cleanup .ths-pdf-paper .textLayer :is(span,br){color:transparent;position:absolute;white-space:pre;cursor:text;transform-origin:0 0}
body.ths-site-cleanup .ths-pdf-paper .textLayer> :not(.markedContent),body.ths-site-cleanup .ths-pdf-paper .textLayer .markedContent span:not(.markedContent){z-index:1;--font-height:0;font-size:calc(var(--text-scale-factor) * var(--font-height));--scale-x:1;--rotate:0deg;transform:rotate(var(--rotate)) scaleX(var(--scale-x)) scale(var(--min-font-size-inv));user-select:text}
body.ths-site-cleanup .ths-pdf-paper .textLayer .markedContent{display:contents}
body.ths-site-cleanup .ths-pdf-paper .textLayer ::selection{background:#08789a55}
@media(max-width:782px){body.ths-site-cleanup .ths-pdf-toolbar{gap:10px;padding:10px}body.ths-site-cleanup .ths-pdf-viewport{max-height:65vh;min-height:280px}body.ths-site-cleanup .ths-pdf-pages{gap:5px}body.ths-site-cleanup .ths-pdf-toolbar input{width:52px}}
body.ths-site-cleanup .ths-pdf-fit-page .ths-pdf-viewport{min-height:0;overflow:hidden}
body.ths-site-cleanup .ths-pdf-fit-page .ths-pdf-zoom select{max-width:140px}
body.ths-site-cleanup:is(.page-id-135,.page-id-714) .entry-content .ths-reading-content>.wp-block-columns{align-items:flex-start}
body.ths-site-cleanup:is(.page-id-135,.page-id-714) .entry-content .ths-reading-content>.wp-block-columns>.wp-block-column{align-self:flex-start!important}

body.ths-site-cleanup .ths-reader-back{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
body.ths-site-cleanup .ths-reader-back button{padding:9px 14px;font-size:13px}
body.ths-site-cleanup .ths-expanded-bar{display:none}
html.ths-reading-open,body.ths-reading-open{overflow:hidden!important}
body.ths-site-cleanup .ths-reading-layout.is-expanded{position:fixed;inset:0;z-index:2147483647;width:100%;height:100dvh;max-width:none;box-sizing:border-box;background:#f5f8f9;padding:16px 22px 22px;display:grid;grid-template-rows:auto minmax(0,1fr);gap:16px;margin:0;outline:none}
body.ths-site-cleanup .is-expanded .ths-expanded-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;color:#18323c;font:600 17px/1.4 system-ui,sans-serif}
body.ths-site-cleanup .is-expanded .ths-expanded-bar button{border:1px solid #cbd8dd;border-radius:6px;background:#fff;color:#18323c;padding:10px 14px;font:600 14px/1.4 system-ui,sans-serif;text-transform:none;letter-spacing:normal;white-space:normal}
body.ths-site-cleanup .is-expanded .ths-reading-content{min-height:0;overflow:hidden;width:100%;max-width:1800px;margin:0 auto}
body.ths-site-cleanup .is-expanded .ths-reading-content>.wp-block-columns{height:100%;margin:0;padding:0;gap:22px;align-items:flex-start}
body.ths-site-cleanup .is-expanded .wp-block-column{height:100%;min-height:0;min-width:0;overflow:auto}
body.ths-site-cleanup .is-expanded .wp-block-column:first-child>.wp-block-group{height:100%;margin:0}
body.ths-site-cleanup .is-expanded .ths-pdf-viewer{height:100%;box-sizing:border-box;display:flex;flex-direction:column}
body.ths-site-cleanup .is-expanded .ths-pdf-toolbar,body.ths-site-cleanup .is-expanded .ths-pdf-status{flex:0 0 auto}
body.ths-site-cleanup .is-expanded .ths-pdf-viewport{flex:1 1 auto;min-height:0;max-height:none}
body.ths-site-cleanup .is-expanded .lesson-layout{height:100%;box-sizing:border-box;max-width:none;display:flex;flex-direction:column;gap:12px;overflow:auto}
body.ths-site-cleanup .is-expanded .timestamp-section{flex:0 1 auto;max-height:42vh;overflow:auto;min-height:56px}
body.ths-site-cleanup .is-expanded .story-list{flex:1 1 200px;min-height:120px;max-height:none}
body.ths-site-cleanup .is-expanded .lesson-layout audio,body.ths-site-cleanup .is-expanded .audio-controls{flex:0 0 auto}
body.ths-site-cleanup .is-expanded .audio-controls{margin-top:0}
@media(max-width:782px){body.ths-site-cleanup .ths-reading-layout.is-expanded{padding:12px;gap:12px}body.ths-site-cleanup .is-expanded .ths-expanded-bar{font-size:14px}body.ths-site-cleanup .is-expanded .ths-reading-content{overflow:auto}body.ths-site-cleanup .is-expanded .ths-reading-content>.wp-block-columns{height:auto;gap:18px}body.ths-site-cleanup .is-expanded .wp-block-column{height:auto;overflow:visible}body.ths-site-cleanup .is-expanded .ths-pdf-viewer{height:65dvh;min-height:320px}body.ths-site-cleanup .is-expanded .lesson-layout{height:auto;max-height:75dvh}body.ths-site-cleanup .is-expanded .story-list{flex:1 1 220px}}
body.ths-site-cleanup .ths-book-cover-title{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;background:#fff;color:#18323c;width:210px;height:286px;text-align:center;padding:20px;box-sizing:border-box;box-shadow:0 4px 14px #18323c20;font:700 28px/1.3 Georgia,serif}body.ths-site-cleanup .ths-book-cover-title small{font:14px/1.5 system-ui,sans-serif;font-weight:400;color:#5c6c72}
@media(min-width:1000px){body.ths-site-cleanup .ths-book-cards{grid-template-columns:repeat(3,minmax(0,1fr));max-width:1200px}}
