.cth-resource-page{background:#faf9f5;color:#183334}
.cth-resource-header{display:flex;align-items:center;gap:12px;max-width:1000px;margin:auto;padding:12px 18px;border-bottom:1px solid #dce2dc;min-height:58px}
.cth-resource-header>a{color:#175e61;text-decoration:none;font-size:14px;font-weight:600;min-height:36px;display:flex;align-items:center}
.cth-resource-header>a:first-child{width:30px;flex-shrink:0}.cth-resource-header>a:last-child{margin-left:auto}
.cth-resource-header .cth-ic{width:22px;height:22px}
.cth-resource-wrap{max-width:900px;margin:auto;padding:22px 20px calc(100px + env(safe-area-inset-bottom));box-sizing:border-box}
.cth-resource-intro{margin:0 0 22px}.cth-resource-intro>p{margin:0 0 7px;color:#6c7a72;font-size:13px;line-height:1.6}
.cth-resource-intro h1{margin:0 0 10px;font:600 29px/1.5 "Songti SC","Noto Serif CJK SC",serif;color:#173b3a;text-wrap:pretty;overflow-wrap:anywhere}
.cth-resource-intro>span{display:block;color:#657875;font-size:14px;line-height:1.8}
.cth-resource-filters{display:flex;align-items:end;gap:10px;padding:14px 0 20px;border-top:1px solid #dce2dc}
.cth-resource-filters label{display:grid;gap:6px;min-width:0;color:#5b716c;font-size:12px}.cth-resource-filters label:first-of-type{flex:1}
.cth-resource-filters :is(select,input){min-height:40px;border:1px solid #d2dcd4;border-radius:5px;color:#1c4947;background:#fffdf8;font:inherit;font-size:14px;padding:8px;max-width:100%}.cth-resource-filters input{width:62px}
.cth-resource-filters button{min-height:40px;padding:8px 15px;background:#175e5c;color:#fff;border:0;border-radius:5px;font:600 14px/1.6 sans-serif}
.cth-resource-tabs{display:flex;gap:20px;overflow:auto;border-bottom:1px solid #d7dfd8;scrollbar-width:none;margin-bottom:6px}
.cth-resource-tabs a{position:relative;flex-shrink:0;display:block;padding:10px 0 12px;color:#6e7e76;font-size:14px;text-decoration:none;white-space:nowrap;min-height:44px}
.cth-resource-tabs a[aria-current]{color:#145e59;font-weight:650}.cth-resource-tabs a[aria-current]::after{content:"";height:3px;border-radius:2px;position:absolute;bottom:0;left:10%;right:10%;background:#24716a}
.cth-resource-entry{display:flex;align-items:center;gap:14px;padding:20px 0;border-bottom:1px solid #dce2dc;color:#183b3a;text-decoration:none}
.cth-resource-entry-icon{display:grid;place-items:center;width:40px;height:52px;flex:0 0 40px;background:#e9ede4;border-left:3px solid #53786a;color:#2d5e54;border-radius:1px 4px 4px 1px}
.cth-resource-entry-icon .cth-ic{width:24px;height:24px}.cth-resource-entry-copy{min-width:0;flex:1}
.cth-resource-entry-copy small{display:block;font-size:11px;color:#778276;margin-bottom:5px;line-height:1.5}
.cth-resource-entry-copy strong{display:block;font:600 17px/1.6 var(--cth-sans,sans-serif);color:#1e403b;overflow-wrap:anywhere}
.cth-resource-entry-copy>span{display:flex;flex-wrap:wrap;gap:0;margin-top:6px;color:#607870;line-height:1.6}
.cth-resource-entry-copy em{font-style:normal;font-size:11px}.cth-resource-entry-copy em+em::before{content:'·';display:inline;padding:0 7px;color:#9eaaa0}
.cth-resource-entry>.cth-ic{width:18px;height:18px;flex-shrink:0;color:#6d8579}
.cth-resource-empty{text-align:center;padding:54px 16px;color:#647d73}.cth-resource-empty>.cth-ic{width:40px;height:40px;color:#6d9380}.cth-resource-empty h2{font-size:18px;color:#2b5448;margin-top:20px}.cth-resource-empty p{font-size:14px;line-height:1.8}.cth-resource-empty a{color:#17645b;display:inline-block;padding:10px;text-decoration:none;font-size:14px}
.cth-resource-media{margin:0 0 24px;padding:16px;background:#edf0e9;border-radius:8px}.cth-resource-media h2{margin:0 0 12px;font-size:15px;line-height:1.7;overflow-wrap:anywhere;color:#35554b}.cth-resource-media :is(audio,video){display:block;width:100%;max-width:100%;border-radius:5px}.cth-resource-media video{max-height:65vh;aspect-ratio:16/9;background:#0d2428;object-fit:contain}
.cth-playback-rate{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin:10px 0 0;color:#63766a;font-size:12px}.cth-playback-rate select{font:inherit;background:transparent;color:#235b4c;border:1px solid #c5d3c8;border-radius:4px;padding:5px;min-height:30px}
.cth-document{margin:24px 0}.cth-document-toolbar{display:flex;align-items:center;gap:8px;padding:8px;background:#e9ede6;border:1px solid #dce2d7;border-radius:6px 6px 0 0;position:sticky;top:0;z-index:3;color:#355749;font-size:13px}
.cth-document-toolbar button{border:0;background:transparent;min-width:36px;min-height:36px;color:#1d5e4d;font-size:22px}.cth-document-toolbar button:disabled{opacity:.35}.cth-document-toolbar label{display:flex;align-items:center;gap:4px;white-space:nowrap}.cth-document-toolbar select{padding:5px;min-height:32px;border:1px solid #c5d0c3;border-radius:3px;background:#fffdf6;color:#305d4c;font:inherit}.cth-document-toolbar [data-page-zoom]{margin-left:auto;font-size:13px;padding:5px 8px}
.cth-document-canvas{overflow:auto;background:#e7e8e2;max-height:80vh;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin}.cth-document-canvas img{display:block;width:100%;height:auto;max-width:none;transition:none}.cth-document-canvas.is-zoomed img{width:200%}.cth-document-text{color:#547163;font-size:14px;padding:12px 2px}.cth-document-text summary{cursor:pointer;min-height:30px}.cth-document-text p{font-size:17px;line-height:1.9;white-space:pre-wrap;color:#203e32;word-break:break-word;user-select:text}
.cth-resource-figure{margin:20px 0}.cth-resource-figure img{width:100%;height:auto;display:block;border:1px solid #dde2d7}
.cth-resource-originals{border-top:1px solid #d7ded2;margin-top:24px;padding-top:8px}.cth-resource-originals button{display:flex;width:100%;gap:10px;align-items:center;text-align:left;min-height:60px;padding:12px 0;background:none;border:0;border-bottom:1px solid #e0e5db;color:#315e4c;font:inherit;font-size:13px}.cth-resource-originals button>.cth-ic{width:18px;height:20px;flex:0 0 18px}.cth-resource-originals button>span{min-width:0;flex:1;overflow-wrap:anywhere}.cth-resource-originals small{flex-shrink:0;white-space:nowrap;font-size:11px}.cth-resource-originals p{color:#647c69;font-size:13px;line-height:1.7}
.cth-resource-back{display:flex;align-items:center;justify-content:space-between;padding:20px 0;margin-top:18px;color:#175e4e;text-decoration:none;font-size:14px;font-weight:600}
.cth-resource-lightbox{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:50px 12px 20px;border:0;background:#0c1918f5;overflow:auto}.cth-resource-lightbox::backdrop{background:#0c1918e8}.cth-resource-lightbox img{display:block;max-width:100%;height:auto;margin:auto}.cth-resource-lightbox button{position:fixed;right:12px;top:8px;width:40px;height:40px;border:0;background:#ffffff20;color:#fff;font-size:27px;border-radius:50%}
.cth-materials-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.cth-materials-section-heading a{font-size:13px;color:#1b6359;text-decoration:none}.cth-materials-section-heading h2{margin-bottom:10px}.cth-resource-list-compact .cth-resource-entry{padding:15px 0}.cth-resource-list-compact .cth-resource-entry-copy strong{font-size:16px}
.cth-resource-page :is(a,button,select,input):focus-visible{outline:2px solid #22735f;outline-offset:3px}
.cth-document-bookmarks{display:flex;align-items:center;gap:10px;margin-bottom:10px;color:#547163;font-size:13px}.cth-document-bookmarks select{min-width:0;flex:1;max-width:320px;padding:9px;border:1px solid #c5d3c8;border-radius:4px;background:#fffdf8;color:#235b4c;font:inherit}
@media(max-width:380px){.cth-resource-filters{flex-wrap:wrap}.cth-resource-filters label:first-of-type{flex-basis:100%}.cth-resource-filters label:nth-of-type(2){flex:1}.cth-resource-tabs{gap:17px}}
@media(min-width:760px){.cth-resource-intro h1{font-size:34px}.cth-resource-list:not(.cth-resource-list-compact){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:40px}.cth-resource-filters{max-width:620px}.cth-resource-detail{max-width:860px}.cth-resource-wrap{padding-top:32px}.cth-document-canvas{max-height:none}}
@media(prefers-reduced-motion:no-preference){.cth-resource-entry:hover{background:#eef1e780}.cth-resource-entry{transition:background-color .15s}}

.cth-resource-count{font-size:12px;color:#6b7b70;white-space:nowrap}
.cth-resource-page [hidden]{display:none!important}
.cth-filters-enhanced .cth-resource-apply{display:none}
.cth-resource-page .cth-choice-trigger{display:inline-flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;min-width:44px;max-width:100%;padding:9px 12px;background:#fffdf8;color:#254e49;border:1px solid #cbd6ce;border-radius:7px;font:500 14px/1.5 var(--cth-sans,sans-serif);text-align:left;cursor:pointer}
.cth-choice-trigger>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cth-choice-trigger>svg{width:16px;height:16px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8}
.cth-choice-trigger:active,.cth-choice-trigger[aria-expanded="true"]{border-color:#217168;background:#edf3ee}
.cth-document-bookmarks .cth-choice-trigger{flex:1;max-width:320px}
.cth-document-toolbar .cth-choice-trigger{padding:6px;gap:3px;font-size:13px}.cth-document-toolbar .cth-choice-trigger svg{width:12px}
.cth-resource-update{min-height:0;margin:0;color:#6b786e;font-size:12px;line-height:1.6}.cth-resource-update:not(:empty){padding:8px 0}
.cth-resource-result-count{margin:16px 0 0;color:#677b70;font-size:12px;line-height:1.5}
.cth-resource-availability{margin:18px 0 6px;padding:16px 0;border-bottom:1px solid #dce2dc}.cth-resource-availability h2{font-size:16px;margin:0 0 8px;font-weight:600;line-height:1.6;color:#345b4c}.cth-resource-availability p{margin:0;color:#60766a;font-size:13px;line-height:1.8}.cth-resource-availability a{display:inline-flex;align-items:center;gap:16px;min-height:44px;margin-top:8px;font-size:14px;font-weight:600;color:#17645b;text-decoration:none}
html.cth-choice-open{overflow:hidden}
.cth-choice-dialog{position:fixed;inset:auto 0 0;box-sizing:border-box;width:100%;max-width:560px;max-height:76vh;max-height:76dvh;margin:0 auto;padding:0 20px calc(16px + env(safe-area-inset-bottom));background:#faf9f5;color:#183b36;border:0;border-radius:20px 20px 0 0;box-shadow:0 -10px 40px #152f3920;overflow:hidden}
.cth-choice-dialog::backdrop{background:#15262560}
.cth-choice-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:72px;border-bottom:1px solid #dce2d9}
.cth-choice-dialog h2{margin:0;font:600 19px/1.5 var(--cth-sans,sans-serif)}
.cth-choice-dialog [data-choice-close]{display:grid;place-items:center;width:44px;height:44px;border:0;background:transparent;color:#56736a;font:400 26px/1 sans-serif;cursor:pointer}
.cth-choice-options{max-height:calc(76vh - 110px);max-height:calc(76dvh - 110px);overflow:auto;overscroll-behavior:contain;padding:8px 0}
.cth-choice-options>button{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:56px;padding:14px 12px;border:0;border-radius:7px;text-align:left;background:transparent;color:#36584c;font:400 16px/1.6 var(--cth-sans,sans-serif);cursor:pointer}
.cth-choice-options>button[aria-pressed="true"]{background:#e6efe7;color:#165e51;font-weight:600}
.cth-choice-options>button[aria-pressed="true"]::after{content:'✓';font-size:20px;line-height:1;flex-shrink:0}
.cth-choice-options>button:hover{background:#eef2e9}.cth-choice-options>button:disabled{opacity:.5;cursor:default}
.cth-choice-dialog button:focus-visible{outline:2px solid #327e67;outline-offset:-2px}
@media(min-width:700px){.cth-choice-dialog{inset:0;margin:auto;height:fit-content;max-width:480px;border-radius:16px;padding-inline:24px}}
@media(prefers-reduced-motion:no-preference){.cth-choice-dialog[open]{animation:cth-choice-enter .18s ease-out}@keyframes cth-choice-enter{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}}

.cth-resource-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #dce2dc;margin-top:24px;padding-top:16px;font-size:13px;color:#6b7b70}
.cth-resource-pagination a{display:inline-flex;align-items:center;min-height:44px;padding:0 8px;color:#175e59;font-weight:600;text-decoration:none}.cth-resource-pagination [aria-disabled]{opacity:.45;padding:0 8px}

.cth-resource-prose{max-width:700px;margin:28px auto 36px;color:#263f36}.cth-resource-prose p{white-space:pre-wrap;overflow-wrap:anywhere;font:400 18px/1.95 "Noto Serif CJK SC","Songti SC",serif;letter-spacing:.015em;margin:0;user-select:text}
