/* Adapted from the supplied Craft reference for a Chinese document search tool.
   Compact results, readable secondary text, system fonts, no external resources. */
:root{
 --canvas:#fff3e7;--paper:#fff;--ink:#242622;--muted:#62625b;--border:#dedbd0;
 --green:#285b46;--green-dark:#234c3d;--green-light:#e5f2e5;
 --mint:#9bd8a9;--marigold:#fde99b;--periwinkle:#b8caf5;
 --heading-font:"Noto Serif TC","Songti TC","PMingLiU",serif;
 --paper-shadow:0 2px 4px #302b2005,0 8px 22px #302b2007,0 20px 40px #302b2005;
 --content-width:1180px;--layout-gap:16px;--body-size:1rem;--note-size:.8125rem;
 font-family:"Microsoft JhengHei","PingFang TC",system-ui,sans-serif;
}
body{background:var(--canvas);color:var(--ink)}
button,input,select,textarea{font-family:inherit}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline-color:#285b46}
.site-header{background:#fffaf4;border-color:#e6ddcf}
.header-inner{max-width:1216px;padding:18px 32px}
.site-header .brand{font-family:var(--heading-font);font-size:32px;letter-spacing:.02em;color:var(--ink)}
.site-header .nav-item{font-size:14px;border-radius:999px;color:#565950;padding:9px 16px}
.site-header .nav-item.active,.site-header .nav-item:hover{background:#e2efdf;color:#234c3d}
main{max-width:var(--content-width);padding-top:36px}
.search-workspace{isolation:isolate;position:relative;max-width:none;margin:0 auto 24px;padding:30px 40px 24px;background:#fffdfa;border:1px solid #e4ddcf;border-radius:24px;box-shadow:var(--paper-shadow)}
.search-workspace:before,.search-workspace:after{content:"";position:absolute;z-index:-1;pointer-events:none;border-radius:10px}
.search-workspace:before{width:90px;height:68px;background:var(--mint);top:24px;right:-9px;transform:rotate(7deg);clip-path:polygon(0 0,100% 5%,96% 94%,83% 100%,70% 94%,55% 100%,42% 95%,28% 100%,15% 95%,0 100%)}
.search-workspace:after{width:115px;height:58px;background:var(--marigold);bottom:18px;left:-9px;transform:rotate(-6deg);clip-path:polygon(0 5%,15% 0,30% 5%,45% 0,60% 6%,75% 0,90% 5%,100% 0,100% 100%,0 96%)}
.hero{padding-bottom:22px}.hero .eyebrow{display:inline-block;color:#485c45;background:#e6f1df;font-size:12px;font-weight:600;letter-spacing:.12em;padding:4px 12px;border-radius:999px;margin-bottom:14px}
.hero h1{font-family:var(--heading-font);font-size:clamp(30px,3.7vw,44px);font-weight:600;letter-spacing:.025em;line-height:1.5;color:var(--ink);margin-bottom:10px}
.hero>p:not(.eyebrow){color:var(--muted);font-size:16px}
.search-panel{border:1px solid #c8c9bd;border-radius:16px;box-shadow:0 3px 8px #292f2305}
.search-panel:focus-within{border-color:#285b46;box-shadow:0 0 0 3px #285b4617}
#query{color:var(--ink);font-size:18px}#query::placeholder{color:#686c62}
.search-icon{color:#59654f}.search-button{background:#242622;color:#fff;border-radius:999px;min-height:46px;padding:10px 25px}.search-button:hover{background:#3c4637}
.search-shortcuts{margin-top:8px}.quick-search,.quick-search>span,.scenario-presets,.quick-search button{color:#555f50;font-size:13px}.quick-search button{min-height:40px;border-radius:999px}.quick-search button:hover{background:#e6f1df;color:#234c3d}
#scenarioSearch{background:#edf3e7;border-radius:14px}.smart-control{color:#515b4c;font-size:14px}.smart-control span{color:#62625b}.smart-control input{accent-color:#285b46}
.collection-tabs{background:#fffaf4;border:1px solid #e1d9cc;border-radius:20px;padding:6px;gap:4px;margin-bottom:16px}
.collection-tabs button{min-height:44px;padding:9px 18px;border:0;border-radius:999px;color:#555b50;font-size:15px;line-height:1.5}
.collection-tabs button:hover{background:#e8eedf;color:#244e3d}.collection-tabs button.selected{background:#28352a;border:0;color:#fff}.collection-tabs span{color:#64695f;font-size:12px}.collection-tabs .selected span{color:#e3eddd}
.classification-panel,.evidence-catalog{background:#fffbf6;border-color:#ded9ce;border-radius:16px}.filter-summary{padding:12px 18px;min-height:50px}.filter-summary-title{color:#394634;font-size:15px}#filterSummary,.filter-chevron{color:#63685b}.filter-panel-body{padding:24px}
.facet-grid select,.scope-filters select,.history-controls select,.results-actions select,.evidence-filters select{border-color:#cfd0c4;border-radius:12px;color:#424b3c;min-height:44px}
.mode-tabs button,.form-categories button,.history-tabs button{border-radius:999px;min-height:42px;color:#535c4b}.mode-tabs .selected,.form-categories button.selected,.history-tabs .selected{background:#dcebd8;color:#254b36;border-color:#b5cbb0}
.form-categories button{border-color:#d9d8ce}.search-options input,.timeline-links input{accent-color:#285b46}.active-chip{background:#e5efdf;border-color:#c9d9c1;color:#365a36;border-radius:999px;min-height:38px}.active-chip:hover{background:#d5e5cc}
.query-explanation,.smart-panel{background:#f1f5e9;border-color:#d6e2c9;border-radius:16px;color:#495c3d}.smart-choice{border-radius:14px;border-color:#d0dcc6}.smart-choice.selected{background:#e2efda;border-color:#759964;color:#2f5130}.smart-status,.smart-understanding,.smart-basis,.smart-related{color:#526249}.smart-related{background:#edf3e7;border-radius:12px}.smart-related button{color:#285b46}
.evidence-state.quoted{background:#e2efda;color:#2e5537}.evidence-state.pending{background:#fff0c7;color:#6d5124}.evidence-entry{border-color:#deded0}.evidence-entry summary{color:#3c4937}.evidence-reference{background:#fff;border-radius:14px}.evidence-reference blockquote{background:#f7f7ef;color:#414b3c;border-left-color:#a4bc91}
.evidence-catalog>summary{color:#394b33}.evidence-catalog>summary span,.smart-heading p,.smart-choice>span,.snippet-label{color:#5b6852}.smart-heading>span,.smart-heading h2,#smartChooser>summary,.smart-choice.selected strong,.smart-match.has-context{color:#315b36}.smart-choice:hover{background:#eaf2e2;border-color:#91b17d}#personnelFormGuide button{color:#315b36;border-color:#cbd8bd;border-radius:999px;min-height:42px}
.results-toolbar{margin:24px 0 16px}.results-toolbar h2{font-family:inherit;font-size:21px;font-weight:700}.results-toolbar h2 small,.results-actions,.results-actions select{color:#62675b}.results-actions{gap:14px}.text-button{color:#426047}.text-button:hover{color:#244e3d}
.results{gap:16px}.doc-card{border:1px solid #e2dfd4;border-radius:18px;padding:24px 26px 0;box-shadow:var(--paper-shadow)}.doc-card:hover{border-color:#b6c5a9;box-shadow:var(--paper-shadow)}
.doc-card h3{color:#28312a;font-size:19px;line-height:1.85;font-family:inherit;font-weight:700}.doc-title:hover{color:#285b46}
.collection-badge,.scope-badge,.event-badge,.code-badge{font-size:12px;border-radius:8px;padding:3px 8px}.collection-badge{background:#f2f0e9;color:#5d5c53}.scope-badge.unknown,.scope-badge.central_reference{background:#f2f0e9;color:#5c6155}.scope-badge.local,.scope-badge.mixed{background:#faedba;color:#695128}.scope-badge.central{background:#e6edfa;color:#3b527c}.code-badge{background:#e2efdc;color:#385a35}.event-badge{background:#f6ebd6;color:#6a5838}
.doc-meta,.doc-meta time,.source-pill{color:#63685d;font-size:13px}.meta-sep{color:#767b70}.match-reason,.smart-match,.smart-missing{color:#526b48}.bookmark-button{color:#687663;border-radius:12px}.bookmark-button:hover{background:#e7efdf;color:#285b46}.bookmark-button.is-saved{color:#285b46}
.snippet{background:#f6f8f0;border-left:3px solid #acc99b;color:#444f3c;border-radius:0 12px 12px 0;font-size:15px;padding:14px 18px}.snippet small{color:#626f58;font-size:13px}.snippet a,.document-links>a,.document-links .pdf-shortcut,.query-explanation a{color:#285b46}.document-links>a,.card-actions .text-button{min-height:44px}.card-actions .text-button{color:#4e6846}.card-more{border-color:#e7e8dd}.card-more>summary{color:#606c56;font-size:13px;min-height:44px}.card-more>summary span{color:#63755c}.doc-number,.text-badge,.form-origins,.attachment-status{color:#666b5f}.tag,.tag.service-tag{background:#eef3e7;color:#4f6843;border-radius:8px}.card-attachments>a,.form-origins a{color:#285b46}
.classification-note,.search-options>span,.forms-intro,.reading-guide>summary,.data-basis,.data-basis strong,.scope-note,.subtle{color:#62665c}.scope-note button{color:#285b46}.reading-guide{border-color:#dbd9cb}mark{background:#fde99b;color:#30351e}
.pagination button{border-radius:12px;min-width:44px;min-height:44px;color:#435b3f;border-color:#d4d8c9}.pagination button.current{background:#28352a;border-color:#28352a;color:white}.pagination span{color:#62665c}
#sourcesView>h1,#historyView>h1{font-family:var(--heading-font);font-size:36px;letter-spacing:.025em}.coverage-block h2,.method-block h2{font-family:var(--heading-font);font-size:26px;letter-spacing:.02em}.coverage-summary{background:#e6efdc;border-color:#d3dec7;border-radius:20px;box-shadow:var(--paper-shadow)}.coverage-summary strong{color:#33512e}.coverage-summary span,.coverage-summary p,.source-intro,.eyebrow{color:#53644b}
.source-card,.timeline-card,.method-block p{border-radius:18px;border-color:#deddd1;box-shadow:var(--paper-shadow)}.source-card p,.source-card small,.coverage-block>p,.region span{color:#656558}.region{background:#f5f7ec;border-color:#d7dfc9;border-radius:12px}.source-health{background:#e1efda;color:#3c6334;border-radius:999px}.source-health.failed{background:#ffedc8;color:#78521e}.history-context{background:#f0efdd;border-color:#dddec7;border-radius:18px}.timeline-links a{color:#285b46}.coverage-table thead{background:#eef3e4}.coverage-table th,.coverage-table td{border-color:#dddccd}.coverage-table .text-button{min-height:44px}
dialog,.detail-top{background:#fffaf4}.detail-title{font-family:inherit}.detail-section h3{color:#364d32}.primary-link{background:#28352a;border-radius:999px;color:white}.secondary-button{border-radius:999px;color:#4c5c43;border-color:#cbd3c0}.scope-evidence{background:#edf2e4;border-radius:16px}.detail-fields dt,.detail-section .subtle,.attachment-state,.pdf-page-label{color:#646659}.detail-fields dd,.scope-evidence p,.scope-evidence blockquote{color:#454b3e}.detail-fields dd a,.scope-evidence>a,.pdf-page-label a,.attachment,.attachment-text-block h4,.related-button{color:#285b46}.pdf-page{border-color:#dadccb;border-radius:14px}.detail-notice{background:#fff0cd;color:#725625;border-color:#ecdba9;border-radius:14px}
.site-footer{max-width:1116px;border-color:#dcd9c8;margin-top:32px;padding-top:26px;color:#616657}.site-footer .site-credit,.footer-name,.footer-links>span,.catalog-stats,.catalog-stats strong,.visitor-heading h2,.visitor-heading>span,.visitor-numbers dt,.visitor-numbers dd,.visitor-summary>p{color:#626659}.footer-links button{color:#285b46}.visitor-summary{border-color:#e1dfd0}
.site-marquee{background:#e8efdb;border-color:#d2dfc4;color:#40543a}.site-marquee a{color:#285b46}.marquee-kind{background:#d2e6c6;color:#32552c}.marquee-kind.advertisement{background:#fae8b0;color:#72531e}#marqueePause{color:#355830;min-height:44px}
.pet-menu{border-radius:20px;background:#fffdf7;border-color:#d5ddc8;box-shadow:0 4px 10px #302b2010,0 18px 38px #302b2018}.pet-menu>button:hover{background:#e7efdc;color:#285b46}.pet-heading strong{color:#365331}.pet-quote{background:#fff0bf;color:#605022;border-radius:12px}.pet-toggle>span{background:#fffaf0;color:#3b5735;border-color:#d6dfc9}.empty{border-radius:18px;border-color:#d9ddce}.empty button{background:#28352a;border-radius:999px}
@media(max-width:900px){.header-inner{padding:18px 24px;gap:16px}.site-header .brand{font-size:30px}.site-header .nav-item{padding:8px 11px}.search-workspace{padding:28px}.hero h1{font-size:34px}}
@media(max-width:650px){
 .header-inner{padding:18px 18px 12px}.site-header .brand{font-size:28px;margin-bottom:14px}.site-header .nav-item{font-size:13px;padding:8px 4px;min-height:44px}
 main{padding:24px 16px 0}.search-workspace{padding:22px 16px 18px;border-radius:20px}.search-workspace:before{width:55px;height:48px;right:-6px}.search-workspace:after{width:64px;left:-5px;height:38px}.hero{padding-bottom:18px}.hero .eyebrow{display:inline-block;font-size:11px;margin-bottom:12px}.hero h1{font-size:28px;letter-spacing:0;line-height:1.5}.hero>p:not(.eyebrow){font-size:14px}.search-panel{border-radius:14px}#query{font-size:16px}#query::placeholder{font-size:13px}.search-button{padding:9px 15px;min-height:44px}
 .quick-search button{font-size:12px;min-height:40px}.smart-control{align-items:flex-start;font-size:13px}.smart-control span{font-size:12px}.collection-tabs{border-radius:16px}.collection-tabs button{padding:10px 14px;font-size:14px}.filter-summary{padding:12px;gap:10px}.filter-summary-title{font-size:14px}#filterSummary{font-size:12px}.filter-panel-body{padding:18px 14px}
 .doc-card{padding:20px 18px 0;border-radius:16px}.doc-card h3{font-size:18px;line-height:1.8}.collection-badge,.scope-badge,.event-badge,.code-badge{font-size:11px}.record-badges{margin-right:30px}.results-actions{gap:10px}.results-toolbar h2{font-size:20px}.snippet{padding:12px;font-size:15px}.results{gap:14px}.source-card,.timeline-card{padding:20px 18px}.coverage-summary{padding:22px;gap:20px}.coverage-summary strong{font-size:27px}
 #sourcesView>h1,#historyView>h1{font-size:29px}.coverage-block h2,.method-block h2{font-size:23px}.site-footer{width:calc(100% - 32px)}.footer-heading{gap:18px}.pet-menu{max-width:min(270px,calc(100vw - 40px))}
}
@media(prefers-reduced-motion:reduce){.doc-card,.search-button,.pet-toggle{transition:none;transform:none}}
.site-pet{max-height:calc(100dvh - 24px);overflow-y:auto;overflow-x:hidden;padding:7px;right:13px;bottom:13px}
.site-pet:not(.pet-is-idle){translate:var(--pet-x,0px) var(--pet-y,0px)}
.pet-toggle{touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab}.pet-toggle img{-webkit-user-drag:none}
.pet-is-dragging .pet-toggle{cursor:grabbing}.pet-is-dragging .pet-toggle img{animation:none;transform:rotate(-4deg)}
.site-pet.pet-is-walking .pet-toggle img{animation:hanji-walk .48s ease-in-out infinite;animation-play-state:running}
@keyframes hanji-walk{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-4px) rotate(3deg)}}
@media(prefers-reduced-motion:reduce){.site-pet.pet-is-walking .pet-toggle img,.pet-is-dragging .pet-toggle img{animation:none;transform:none}}
.pet-speech{pointer-events:auto;width:290px;max-width:calc(100vw - 40px);padding:14px 16px;background:#fffaf0;border:1px solid #d6dfc9;border-radius:20px 20px 5px 20px;margin-bottom:10px;box-shadow:0 6px 20px #302b2015}
.pet-speech-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#3b5735;font-size:13px}.pet-speech-heading button{min-width:32px;min-height:32px;border:0;border-radius:50%;background:#edf1e5;color:#3b5735;font-size:20px}
.pet-speech .pet-quote{border:0;padding:0;margin:6px 0 10px;background:transparent;color:#3f4636;font-size:15px;line-height:1.8;white-space:pre-line}
.pet-controls{display:flex;flex-direction:column;align-items:center;gap:4px}.pet-menu-toggle{min-height:28px;padding:2px 10px;font-size:12px;border:1px solid #d6dfc9;border-radius:999px;background:#fffaf0;color:#3b5735}
.pet-auto-control{display:flex;align-items:center;gap:7px;font-size:13px;padding:10px 0;cursor:pointer}.pet-auto-control input{width:16px;height:16px;accent-color:#4a6c3d}.pet-menu>small{color:#65715b;line-height:1.7}.pet-toggle[data-menu-open="true"] img{animation-play-state:paused}
@media(max-width:650px){.site-pet{right:5px;bottom:5px}.pet-speech{width:250px;padding:12px 14px}.pet-speech .pet-quote{font-size:14px}.pet-menu{width:250px}}
.site-pet.pet-is-idle{inset:50% auto auto 50%;transform:translate(-50%,-50%);align-items:center;width:min(400px,calc(100vw - 32px));padding:20px;background:#fffaf0f5;border:1px solid #d6dfc9;border-radius:28px;box-shadow:0 18px 60px #302b2030;pointer-events:auto}
.pet-is-idle .pet-toggle img{width:min(230px,48vw,36dvh);height:min(276px,58vw,43dvh);animation:hanji-check-in .85s ease-in-out 6}
.pet-is-idle .pet-speech{width:100%;max-width:100%;box-shadow:none;border:0;margin:0 0 16px;padding:0;background:none}
.pet-is-idle .pet-menu-toggle,.pet-is-idle .pet-speech-heading button{display:none}
.pet-idle-hint{font-size:12px;line-height:1.8;color:#526249;text-align:center;margin:10px 0 0}
@keyframes hanji-check-in{0%,100%{transform:translateY(0) rotate(0)}35%{transform:translateY(-18px) rotate(-5deg)}65%{transform:translateY(-7px) rotate(5deg)}}
@media(prefers-reduced-motion:reduce){.pet-is-idle .pet-toggle img{animation:none;transform:none}}

.smart-result-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:15px 0}.smart-result-actions>button,.search-recovery button{min-height:44px;padding:10px 16px;border:1px solid #73916a;background:#fffdf8;color:#315b36;border-radius:12px;cursor:pointer}.search-recovery{flex-basis:100%;text-align:left;line-height:1.8}.search-recovery p{margin:8px 0}.search-recovery button{margin:4px 10px 4px 0}#resultsHeading{scroll-margin-top:100px}

/* Five navigation destinations must wrap as a unit on narrow screens. */
.site-header .primary-nav{min-width:0}
.support-filters>*{min-width:0}
.doc-title,.detail-title,.source-card h3{overflow-wrap:anywhere}
.source-card small,.source-health,.form-categories small,.catalog-stats{font-size:var(--note-size)}
@media(max-width:900px){
 .header-inner{flex-wrap:wrap}
 .site-header .primary-nav{display:flex;flex:1 1 100%;flex-wrap:wrap;gap:6px;width:100%}
 .site-header .nav-item{flex:1 1 90px;width:auto;min-height:44px}
}
@media(max-width:650px){
 .facet-grid select,.scope-filters select,.history-controls select,.results-actions select,.evidence-filters select,.support-filters input,.support-filters select{font-size:var(--body-size)}
 .hero>p:not(.eyebrow),.forms-intro,.query-explanation,.smart-control{font-size:15px}
 .bookmark-button{width:44px;height:44px}.record-badges{margin-right:38px}
}

.support-filters{display:grid;grid-template-columns:1fr 1fr 2fr auto;gap:14px;align-items:end;margin:24px 0;padding:20px;border:1px solid #ded9ce;border-radius:16px;background:#fffbf6}.support-filters label{display:flex;flex-direction:column;gap:7px;font-size:14px}.support-filters input,.support-filters select,.support-filters button,#supportMore{min-height:44px;border:1px solid #cfd0c4;border-radius:10px;padding:10px;background:#fff;min-width:0}.support-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.support-card{background:#fffbf6;border:1px solid #ddd9ce;padding:22px;border-radius:16px;overflow-wrap:anywhere}.support-card h2{font-size:19px;margin:8px 0 18px}.support-card p{font-size:14px;line-height:1.8}.support-tags{color:#66785d}.support-phones a{font-size:22px;color:#315b36;font-weight:600;display:inline-block;padding:6px 0}.support-phones small{display:block}.support-card details{margin-top:16px;color:#616456;font-size:13px}.support-card summary{cursor:pointer;min-height:40px}.support-phones span{display:block}#supportMore{margin:20px 0;width:100%;cursor:pointer}@media(max-width:700px){.support-filters{grid-template-columns:1fr 1fr}.support-filters label:nth-child(3){grid-column:1/-1}.support-results{grid-template-columns:1fr}.support-card{padding:18px}}

.smart-scope{font-size:14px;line-height:1.8;padding:12px 16px;border:1px solid #d5ddc8;border-radius:12px;background:#fffaf4;overflow-wrap:anywhere}
