/* © 晴晞法律事務所 Qingxi Law Firm · 晴墨設計系統（Qingmo Design System）原創識別 QX-75D3CA955D · 版型、樣式與程式碼受著作權法保護，未經書面同意不得轉用。 */
/* library-v6.css（115.11.11）：文章列表、主題專區、404 的定版外觀。只掛這三種頁；文章頁不得引用。
   產線定位點（library-grid／library-card／article-category／topic-reading-group／topic-entry／latest-articles:404）一律只用 CSS 換外觀，不改 markup。 */

/* ---------- 一、深藍墨首屏（文章列表、主題專區共用） ---------- */
.lv6-hero{position:relative;overflow:hidden;background:#1c3545;color:#f4efe3;padding:26px var(--gutter) 46px}
.lv6-hero::before{content:'';position:absolute;inset:-40% -10%;pointer-events:none;background:radial-gradient(ellipse at 84% 30%,rgba(183,149,68,.26),transparent 44%),linear-gradient(115deg,transparent 36%,rgba(213,186,103,.09) 49%,transparent 62%);animation:lv6Dawn 18s ease-in-out infinite alternate}
.lv6-hero::after{content:'';position:absolute;left:var(--gutter);right:var(--gutter);bottom:0;height:1px;background:linear-gradient(90deg,#b79544,rgba(183,149,68,.15))}
.lv6-hero>*{position:relative}
.lv6-hero .studio-breadcrumb{color:#aebcc3;margin-bottom:40px}
.lv6-hero .studio-breadcrumb a{color:#dfe6e9;border-bottom-color:rgba(216,191,128,.55)}
.lv6-hero .studio-breadcrumb a:hover{color:#f1e2b6}
.lv6-hero .studio-en{color:#ddc488;margin-bottom:6px}
.lv6-hero .studio-en::before{content:'';display:inline-block;width:14px;height:14px;margin-right:10px;vertical-align:1px;background:#ddc488;-webkit-mask:url("/assets/redesign/paw.svg") center/contain no-repeat;mask:url("/assets/redesign/paw.svg") center/contain no-repeat}
.lv6-hero h1{color:#fbf8f1;font-size:clamp(34px,4.2vw,56px);line-height:1.4;letter-spacing:.05em;margin:10px 0 18px;max-width:calc(100% - 220px)}
.lv6-hero .draft-note{color:#d2dce0;max-width:700px;margin-bottom:0}
.lv6-hero .draft-note a{color:#f1e2b6;text-decoration-color:rgba(216,191,128,.7)!important}
.lv6-hero .studio-route{margin-top:34px;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));border-top-color:rgba(216,191,128,.45);border-bottom-color:rgba(216,191,128,.45)}
.lv6-hero .studio-route a{color:#f1ead8;font-size:15px;min-height:60px;border-right-color:rgba(255,255,255,.14)}
.lv6-hero .studio-route a:first-child{padding-left:6px}
.lv6-hero .studio-route span{font:400 24px/1 QXTitle,NotoSerif,'Songti TC',serif;font-variant-numeric:lining-nums;color:#ddc488}
.lv6-hero .studio-route a:hover{background:rgba(216,191,128,.1)}
.lv6-hero .studio-route a::after{background:#ddc488}
.lv6-hero .topic-introduction{margin-top:18px}
.lv6-hero .topic-introduction summary{color:#ddc488;min-height:44px;display:flex;align-items:center}
.lv6-hero .topic-introduction p{color:#d2dce0;font-size:16px}
/* 專區首屏的服務與工具導引（上下金線導引列，深底版） */
.lv6-links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 26px;margin-top:26px}
.lv6-links a{position:relative;isolation:isolate;display:flex;align-items:baseline;justify-content:space-between;gap:12px;min-height:54px;padding:15px 6px;box-sizing:border-box;border-top:1px solid rgba(216,191,128,.42);border-bottom:1px solid rgba(216,191,128,.42);color:#f4efe3;font-size:15px;line-height:1.5;letter-spacing:.04em}
.lv6-links a::before{content:'';position:absolute;inset:0;z-index:-1;background:rgba(216,191,128,.12);transform:scaleX(0);transform-origin:0 50%;transition:transform .5s cubic-bezier(.2,.7,.3,1)}
.lv6-links a>span{transition:transform .4s cubic-bezier(.2,.7,.3,1)}
.lv6-links a>i{flex:none;font:italic 18px/1 Cormorant,Georgia,serif;letter-spacing:.03em;color:#ddc488;transition:transform .4s cubic-bezier(.2,.7,.3,1)}
.lv6-links a:hover,.lv6-links a:focus-visible{color:#f8ecc6;border-color:#ddc488}
.lv6-links a:hover::before,.lv6-links a:focus-visible::before{transform:scaleX(1)}
.lv6-links a:hover>span,.lv6-links a:focus-visible>span{transform:translateX(8px)}
.lv6-links a:hover>i,.lv6-links a:focus-visible>i{transform:translateX(-8px)}
.lv6-links a:focus-visible{outline:2px solid #ddc488;outline-offset:4px}
@keyframes lv6Dawn{to{transform:translate(5%,3%) rotate(5deg)}}
.motion-off .lv6-hero::before{animation:none}
@media(prefers-reduced-motion:reduce){.lv6-hero::before{animation:none}}

/* ---------- 二、主題專區 ---------- */
/* 篇數：以 CSS 計數器統計本頁文章列，顯示在首屏右側；發文產線新增文章後自動更新，不必改 HTML */
main{position:relative}
.topic-readings{counter-reset:lv6n;padding-top:6px}
.topic-entry{counter-increment:lv6n}
.topic-readings::after{content:counter(lv6n);position:absolute;z-index:2;top:104px;right:var(--gutter);font:400 104px/1 QXTitle,NotoSerif,'Songti TC',serif;font-variant-numeric:lining-nums;letter-spacing:.01em;color:#ddc488;pointer-events:none}
.topic-readings::before{content:'篇文章';position:absolute;z-index:2;top:218px;right:var(--gutter);font-size:14px;letter-spacing:.3em;margin-right:-.3em;color:#d2dce0;pointer-events:none}
.topic-reading-group{border-top:0;gap:64px;padding:52px 0 40px}
.topic-reading-group+.topic-reading-group{border-top:1px solid #d8cfba}
.topic-group-title{align-self:start}
.topic-dot{width:auto;height:auto;border:0;border-radius:0;justify-content:flex-start;font:400 62px/1 QXTitle,NotoSerif,'Songti TC',serif;font-variant-numeric:lining-nums;color:#9a7b2a}
.topic-group-title h2{font-size:27px;line-height:1.55;letter-spacing:.05em;margin:20px 0 14px}
.topic-group-title small{display:inline-flex;align-items:center;font-size:14px;letter-spacing:.1em;color:#7a5f1c}
.topic-group-title small::before{content:'';width:13px;height:13px;margin-right:9px;background:#b79544;-webkit-mask:url("/assets/redesign/paw.svg") center/contain no-repeat;mask:url("/assets/redesign/paw.svg") center/contain no-repeat}
.topic-entry{position:relative;grid-template-columns:74px minmax(0,1fr) auto;align-items:center;gap:6px 20px;padding:22px 10px;border-bottom:1px solid #d8cfba;transition:background .35s}
.topic-entry:first-child{border-top:1px solid #b79544}
.topic-number{grid-column:auto;font:italic 17px/1.4 Cormorant,Georgia,serif;color:#7a5f1c}
.topic-entry h3{font-size:20px;line-height:1.7;letter-spacing:.03em;transition:transform .4s cubic-bezier(.2,.7,.3,1)}
.topic-entry .studio-button{position:static;overflow:visible;margin:0;padding:0 2px;min-height:44px;border:0;background:transparent;box-shadow:none;color:#7a5f1c;font-size:14px;letter-spacing:.06em}
.topic-entry .studio-button::before{content:'';position:absolute;inset:0}
.topic-entry .studio-button::after{content:'Read';position:static;width:auto;height:auto;background:none;margin-left:12px;font:italic 18px/1 Cormorant,Georgia,serif;color:#7a5f1c;transition:transform .4s cubic-bezier(.2,.7,.3,1)}
.topic-entry:hover,.topic-entry:focus-within{background:rgba(183,149,68,.1);border-bottom-color:#b79544}
.topic-entry:hover h3,.topic-entry:focus-within h3{transform:translateX(6px)}
.topic-entry .studio-button:hover{background:transparent;color:#6b5424;box-shadow:none}
.topic-entry .studio-button:focus-visible{outline:0}
.topic-entry:focus-within{outline:2px solid #957737;outline-offset:-2px}
/* 文末協助區：深藍墨色帶＋金線導引列 */
.topic-support{background:#1c3545;color:#f4efe3;border-top:2px solid #b79544;align-items:center}
.topic-support .studio-en{color:#ddc488}
.topic-support h2{color:#fbf8f1;letter-spacing:.05em}
.topic-support p{color:#d2dce0}
.topic-support>div:last-child{gap:0;align-items:stretch}
.topic-support .studio-button{justify-content:space-between;width:100%;max-width:440px;min-height:54px;margin:0 0 -1px;padding:14px 6px;border:0;border-top:1px solid rgba(216,191,128,.42);border-bottom:1px solid rgba(216,191,128,.42);background:transparent;color:#f4efe3;font-size:15px;letter-spacing:.04em;box-shadow:none;transition:background .35s,color .35s,padding .4s}
.topic-support .studio-button:hover,.topic-support .studio-button:focus-visible{background:rgba(216,191,128,.12);color:#f8ecc6;padding-left:16px;box-shadow:none}
.topic-support .studio-button[href="/qingxilaw_booking"]{justify-content:center;margin:18px 0 14px;border:0;background:#ddc488;color:#203b4c;font-weight:500}
.topic-support .studio-button[href="/qingxilaw_booking"]:hover,.topic-support .studio-button[href="/qingxilaw_booking"]:focus-visible{background:#ecd9a6;color:#16303d;padding-left:6px}
.topic-support .studio-button:focus-visible{outline:2px solid #ddc488;outline-offset:3px}

/* ---------- 三、主題目錄（文章列表的專區入口卡片；專區頁尾的「瀏覽其他主題」） ---------- */
.topic-directory{background:#efece3;padding:46px var(--gutter) 52px}
.topic-directory>.studio-en{margin-bottom:4px}
.topic-directory h2{font-size:27px;letter-spacing:.05em;margin:8px 0 26px}
.topic-directory nav{gap:14px}
.topic-directory nav a{position:relative;min-height:52px;border:1px solid #d3c9ae;background:#fbf9f3;color:#2b4756;letter-spacing:.04em;transition:background .35s,color .35s,transform .35s,border-color .35s}
.topic-directory nav a:hover,.topic-directory nav a:focus-visible{background:#1c3545;border-color:#1c3545;color:#f1e2b6}
#topics nav a{flex-direction:column;align-items:flex-start;justify-content:space-between;gap:16px;min-height:108px;padding:20px 22px 18px;border-top:2px solid #b79544}
#topics nav a>span{font:400 20px/1.5 QXTitle,NotoSerif,'Songti TC',serif;letter-spacing:.05em}
#topics nav a>i{font:italic 17px/1.2 Cormorant,Georgia,serif;letter-spacing:.02em;color:#7a5f1c;transition:color .35s}
#topics nav a::after{content:'';position:absolute;top:18px;right:18px;width:15px;height:15px;background:#b79544;opacity:.55;-webkit-mask:url("/assets/redesign/paw.svg") center/contain no-repeat;mask:url("/assets/redesign/paw.svg") center/contain no-repeat;transition:opacity .35s,transform .35s}
#topics nav a:hover,#topics nav a:focus-visible{transform:translateY(-3px)}
#topics nav a:hover>i,#topics nav a:focus-visible>i{color:#ddc488}
#topics nav a:hover::after,#topics nav a:focus-visible::after{opacity:1;background:#ddc488;transform:rotate(-12deg)}
#topics nav a:first-child{grid-column:span 2;background:#1c3545;border-color:#1c3545;border-top-color:#ddc488;color:#fbf8f1}
#topics nav a:first-child>span{font-size:24px}
#topics nav a:first-child>i{color:#ddc488}
#topics nav a:first-child::after{background:#ddc488;opacity:.9}
#topics nav a:first-child:hover,#topics nav a:first-child:focus-visible{background:#243f4f}
.topic-directory nav a:focus-visible{outline:2px solid #957737;outline-offset:3px}
.topic-directory summary{min-height:48px;display:flex;align-items:center;font-family:QXTitle,NotoSerif,'Songti TC',serif;letter-spacing:.05em}

/* ---------- 四、文章列表：篩選列與卡片 ---------- */
.article-library{padding-top:46px}
.library-controls{border-bottom-color:#b79544;gap:18px 20px}
.library-controls label{font-size:14px;letter-spacing:.1em;color:#6b5a2c}
.library-controls input,.library-controls select{background:#fbf9f3;border:1px solid #d3c9ae;border-bottom-color:#b79544;font-family:var(--sans);letter-spacing:.02em}
.library-controls button{border-color:#b79544;color:#6b5424;letter-spacing:.08em;padding:14px 20px;transition:background .3s,color .3s}
.library-controls button:hover,.library-controls button:focus-visible{background:#1c3545;color:#f1e2b6}
.library-controls p{display:flex;align-items:center;letter-spacing:.06em;color:#6f6a57}
.library-controls p:not(:empty)::before{content:'';width:13px;height:13px;margin-right:9px;background:#b79544;-webkit-mask:url("/assets/redesign/paw.svg") center/contain no-repeat;mask:url("/assets/redesign/paw.svg") center/contain no-repeat}
.library-grid{gap:0 56px}
.library-card{position:relative;padding:32px 12px 30px;border-bottom-color:#d8cfba;transition:background .35s,border-color .35s}
.library-meta{width:100%;justify-content:space-between;gap:12px;font-size:14px;letter-spacing:.08em}
.library-meta span:first-child{display:inline-flex;align-items:center;color:#7a5f1c}
.library-meta span:first-child::before{content:'';width:12px;height:12px;margin-right:8px;background:#b79544;-webkit-mask:url("/assets/redesign/paw.svg") center/contain no-repeat;mask:url("/assets/redesign/paw.svg") center/contain no-repeat}
.library-meta span:last-child{color:#5d6b72;font-variant-numeric:lining-nums}
.library-card h2{font-size:22px;line-height:1.62;letter-spacing:.03em;margin:16px 0 12px;transition:transform .4s cubic-bezier(.2,.7,.3,1)}
.library-card p{font-size:15.5px;line-height:1.9;margin-bottom:22px}
.library-card .studio-button{position:static;overflow:visible;justify-content:space-between;width:100%;max-width:300px;min-height:48px;padding:12px 4px;border:0;border-top:1px solid rgba(149,119,55,.45);border-bottom:1px solid rgba(149,119,55,.45);background:transparent;box-shadow:none;color:#7a5f1c;font-size:14px;letter-spacing:.08em;transition:border-color .35s,color .35s}
.library-card .studio-button::before{content:'';position:absolute;inset:0}
.library-card .studio-button::after{content:'Read';position:static;width:auto;height:auto;background:none;font:italic 18px/1 Cormorant,Georgia,serif;letter-spacing:.03em;color:#7a5f1c}
.library-card:hover,.library-card:focus-within{background:rgba(183,149,68,.09);border-bottom-color:#b79544}
.library-card:hover h2,.library-card:focus-within h2{transform:translateX(6px)}
.library-card:hover .studio-button,.library-card:focus-within .studio-button{border-color:#957737;color:#6b5424;background:transparent}
.library-card .studio-button:focus-visible{outline:0}
.library-card:focus-within{outline:2px solid #957737;outline-offset:-2px}
#article-more{display:flex;margin:44px auto 0;min-width:280px;letter-spacing:.1em;font-size:15px}
#article-empty{margin-top:30px}

/* ---------- 五、404 ---------- */
.not-found{max-width:none;margin:0;padding:0}
.not-found .lost-layout{position:relative;overflow:hidden;background:#1c3545;color:#f4efe3;padding:56px max(var(--gutter),calc((100vw - 1200px)/2)) 60px}
.not-found .lost-layout::before{content:'';position:absolute;inset:-40% -10%;pointer-events:none;background:radial-gradient(ellipse at 22% 40%,rgba(183,149,68,.24),transparent 44%),linear-gradient(115deg,transparent 40%,rgba(213,186,103,.08) 52%,transparent 64%)}
.not-found .lost-layout>*{position:relative}
.not-found .lost-art span{font:400 clamp(120px,16vw,200px)/1 QXTitle,NotoSerif,'Songti TC',serif;font-style:normal;font-variant-numeric:lining-nums;letter-spacing:.04em;color:#ddc488;opacity:.92}
.not-found .lost-art path{stroke:#ddc488;opacity:.6}
.not-found .studio-en{color:#ddc488}
.not-found .lost-copy h1{color:#fbf8f1;letter-spacing:.05em}
.not-found .lost-copy p{color:#d2dce0}
.not-found .lost-actions a{border-color:rgba(216,191,128,.6);color:#f4efe3;letter-spacing:.06em;transition:background .3s,color .3s}
.not-found .lost-actions a:hover,.not-found .lost-actions a:focus-visible{background:rgba(216,191,128,.14);color:#f8ecc6}
.not-found .lost-actions .nav-book{background:#ddc488;border-color:#ddc488;color:#203b4c}
.not-found .lost-actions .nav-book:hover,.not-found .lost-actions .nav-book:focus-visible{background:#ecd9a6;color:#16303d}
.not-found .recovery-links,.not-found .lost-recent{max-width:1200px;margin-left:auto;margin-right:auto;padding-left:var(--gutter);padding-right:var(--gutter);box-sizing:content-box}
.not-found .recovery-links{border-top:0;margin-top:0;padding-top:52px;gap:0 26px}
.not-found .recovery-links a{position:relative;min-height:96px;padding:18px 8px;border-top:1px solid rgba(149,119,55,.45);border-bottom:1px solid rgba(149,119,55,.45);transition:background .35s,padding .4s}
.not-found .recovery-links a span{font:400 19px/1.5 QXTitle,NotoSerif,'Songti TC',serif;letter-spacing:.05em}
.not-found .recovery-links a:hover,.not-found .recovery-links a:focus-visible{background:rgba(183,149,68,.1);box-shadow:none;padding-left:18px}
.not-found .lost-recent{margin-top:50px;padding-bottom:70px}
.not-found .lost-recent h2{display:flex;align-items:center;font-size:24px;letter-spacing:.05em}
.not-found .lost-recent h2::before{content:'';width:14px;height:14px;margin-right:10px;background:#b79544;-webkit-mask:url("/assets/redesign/paw.svg") center/contain no-repeat;mask:url("/assets/redesign/paw.svg") center/contain no-repeat}
.not-found .lost-recent ul{border-top-color:#b79544}
.not-found .lost-recent li span{font:400 18px/1.7 QXTitle,NotoSerif,'Songti TC',serif;letter-spacing:.03em}

/* ---------- 六、寬度調整 ---------- */
@media(min-width:901px){.topic-group-title{position:sticky;top:120px}}
@media(max-width:1100px){
.lv6-links{grid-template-columns:1fr 1fr}
.lv6-links a:nth-child(n+3){margin-top:-1px}
.topic-readings::after{font-size:84px;top:112px}
.topic-readings::before{top:204px}
}
@media(max-width:900px){
.topic-entry{grid-template-columns:minmax(0,1fr) auto}
.topic-number{grid-column:1/-1}
.topic-entry .studio-button{justify-self:end}
.topic-reading-group{gap:34px}
#topics nav a:first-child{grid-column:span 2}
.not-found .recovery-links{grid-template-columns:1fr 1fr}
}
@media(max-width:620px){
.lv6-hero{padding:18px 24px 30px!important}
.lv6-hero::after{left:24px;right:24px}
.lv6-hero .studio-breadcrumb{margin-bottom:26px;padding-right:88px;gap:8px}
/* 115.11.12 上線後測試：窄螢幕麵包屑各項不折行（原「首頁」「法律文章」被擠成兩行），所在頁名稱放不下時以省略號收尾；右側留給篇數角標 */
.lv6-hero .studio-breadcrumb>*{white-space:nowrap;flex:none}
.lv6-hero .studio-breadcrumb>[aria-current]{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
.lv6-hero h1{font-size:31px;letter-spacing:.04em;max-width:none;margin:8px 0 14px;text-wrap:balance}
.topic-group-title h2,.topic-entry h3{text-wrap:pretty}
.lv6-hero .draft-note{font-size:16px}
.lv6-hero .studio-route{grid-template-columns:1fr;margin-top:24px}
.lv6-hero .studio-route a,.lv6-hero .studio-route a:first-child{min-height:52px;padding:10px 6px;border-right:0;border-bottom:1px solid rgba(255,255,255,.14)}
.lv6-hero .studio-route a:last-child{border-bottom:0}
.lv6-hero .studio-route a:nth-child(-n+2){border-bottom-color:rgba(255,255,255,.14)}
.lv6-links{grid-template-columns:1fr;margin-top:20px}
.lv6-links a{min-height:52px}
.lv6-links a+a{margin-top:-1px}
.topic-readings::after{top:14px;right:24px;font-size:30px;content:counter(lv6n) ' 篇';letter-spacing:.06em}
.topic-readings::before{display:none}
.topic-reading-group{gap:14px;padding:34px 0 30px}
.topic-group-title{grid-template-columns:auto 1fr auto;gap:14px;align-items:baseline}
.topic-dot{font-size:40px}
.topic-group-title h2{font-size:21px;margin:0}
.topic-entry{padding:16px 4px;gap:2px 12px}
.topic-number{font-size:15px}
.topic-entry h3{font-size:18.5px;line-height:1.65}
.topic-entry .studio-button{font-size:0;letter-spacing:0;min-width:44px;justify-content:flex-end}
.topic-entry .studio-button::after{margin-left:0;font-size:18px}
.topic-support{gap:22px}
.topic-support .studio-button{max-width:none}
.topic-directory{padding:30px 24px 34px}
.topic-directory h2{font-size:22px}
#topics.topic-directory{padding:24px 0 18px}
#topics>.studio-en{display:block;padding:0 24px;font-size:20px}
#topics h2{margin:4px 24px 14px;font-size:21px}
#topics nav{gap:8px}
#topics nav a{flex-direction:row;align-items:center;min-height:48px;padding:10px 16px;gap:0;border-top-width:1px}
#topics nav a>span{font-size:16px}
#topics nav a>i,#topics nav a::after{display:none}
#topics nav a:first-child{grid-column:auto}
#topics nav a:first-child>span{font-size:16px}
#topics nav a:hover,#topics nav a:focus-visible{transform:none}
.library-grid{gap:0}
.library-card{padding:26px 6px 24px}
.library-card h2{font-size:20px}
.library-card .studio-button{max-width:none}
#article-more{width:100%;min-width:0;margin-top:30px}
.not-found .lost-layout{padding:30px 24px 40px}
.not-found .recovery-links{grid-template-columns:1fr;padding-top:30px;padding-left:24px;padding-right:24px}
.not-found .recovery-links a{min-height:72px;margin-top:-1px;padding:14px 6px}
.not-found .lost-recent{padding-left:24px;padding-right:24px;padding-bottom:46px;margin-top:36px}
.not-found .lost-recent li span{font-size:17px}
}
.motion-off .topic-entry h3,.motion-off .library-card h2,.motion-off #topics nav a{transition:none;transform:none}
@media(prefers-reduced-motion:reduce){.topic-entry h3,.library-card h2,#topics nav a,.lv6-links a>span,.lv6-links a>i{transition:none;transform:none!important}}

/* ---------- 七、深色模式 ---------- */
html[data-theme="dark"] .lv6-hero{background:#1c3545}
html[data-theme="dark"] .lv6-hero .studio-en,html[data-theme="dark"] .topic-support .studio-en,html[data-theme="dark"] .not-found .studio-en{color:#ddc488}
html[data-theme="dark"] .topic-reading-group+.topic-reading-group{border-top-color:#35505f}
html[data-theme="dark"] .topic-dot{color:#d8bf80;border:0}
html[data-theme="dark"] .topic-group-title small{color:#d8bf80}
html[data-theme="dark"] .topic-group-title small::before,html[data-theme="dark"] .library-meta span:first-child::before,html[data-theme="dark"] .library-controls p:not(:empty)::before,html[data-theme="dark"] .not-found .lost-recent h2::before{background:#d8bf80}
html[data-theme="dark"] .topic-entry{border-bottom-color:#35505f}
html[data-theme="dark"] .topic-entry:first-child{border-top-color:#80714d}
html[data-theme="dark"] .topic-number{color:#c9b47c}
html[data-theme="dark"] .topic-entry .studio-button{background:transparent;color:#d8bf80;border:0}
html[data-theme="dark"] .topic-entry .studio-button::after,html[data-theme="dark"] .library-card .studio-button::after{color:#d8bf80}
html[data-theme="dark"] .topic-entry:hover,html[data-theme="dark"] .topic-entry:focus-within{background:rgba(216,191,128,.08);border-bottom-color:#80714d}
html[data-theme="dark"] .topic-entry .studio-button:hover{background:transparent;color:#f1e2b6}
html[data-theme="dark"] .topic-entry:focus-within,html[data-theme="dark"] .library-card:focus-within{outline-color:#d8bf80}
html[data-theme="dark"] .topic-support{background:#1c3545;border-top-color:#80714d}
html[data-theme="dark"] .topic-support p{color:#d2dce0}
html[data-theme="dark"] .topic-support .studio-button{background:transparent;color:#f4efe3;border:0;border-top:1px solid rgba(216,191,128,.42);border-bottom:1px solid rgba(216,191,128,.42)}
html[data-theme="dark"] .topic-support .studio-button:hover,html[data-theme="dark"] .topic-support .studio-button:focus-visible{background:rgba(216,191,128,.12);color:#f8ecc6}
html[data-theme="dark"] .topic-support .studio-button[href="/qingxilaw_booking"]{background:#ddc488;color:#203b4c;border:0}
html[data-theme="dark"] .topic-support .studio-button[href="/qingxilaw_booking"]:hover,html[data-theme="dark"] .topic-support .studio-button[href="/qingxilaw_booking"]:focus-visible{background:#ecd9a6;color:#16303d}
html[data-theme="dark"] .topic-directory{background:#152935}
html[data-theme="dark"] .topic-directory nav a{background:#182f3b;border-color:#35505f;color:#e4eaed}
html[data-theme="dark"] #topics nav a{border-top-color:#80714d}
html[data-theme="dark"] #topics nav a>i{color:#d8bf80}
html[data-theme="dark"] #topics nav a::after{background:#d8bf80}
html[data-theme="dark"] .topic-directory nav a:hover,html[data-theme="dark"] .topic-directory nav a:focus-visible{background:#243f4f;border-color:#80714d;color:#f1e2b6}
html[data-theme="dark"] #topics nav a:first-child{background:#243f4f;border-color:#243f4f;border-top-color:#ddc488;color:#fbf8f1}
html[data-theme="dark"] #topics nav a:first-child:hover,html[data-theme="dark"] #topics nav a:first-child:focus-visible{background:#2b4a5c}
html[data-theme="dark"] .topic-directory nav a:focus-visible{outline-color:#d8bf80}
html[data-theme="dark"] .library-controls{border-bottom-color:#80714d}
html[data-theme="dark"] .library-controls label{color:#d8bf80}
html[data-theme="dark"] .library-controls input,html[data-theme="dark"] .library-controls select{background:#182f3b;border-color:#35505f;border-bottom-color:#80714d;color:#e4eaed}
html[data-theme="dark"] .library-controls button{border-color:#80714d;color:#d8bf80;background:transparent}
html[data-theme="dark"] .library-controls button:hover,html[data-theme="dark"] .library-controls button:focus-visible{background:#243f4f;color:#f1e2b6}
html[data-theme="dark"] .library-controls p{color:#c3ced3}
html[data-theme="dark"] .library-card{border-bottom-color:#35505f}
html[data-theme="dark"] .library-meta span:first-child{color:#d8bf80}
html[data-theme="dark"] .library-meta span:last-child{color:#a9b6bc}
html[data-theme="dark"] .library-card .studio-button{background:transparent;color:#d8bf80;border:0;border-top:1px solid rgba(216,191,128,.38);border-bottom:1px solid rgba(216,191,128,.38)}
html[data-theme="dark"] .library-card:hover,html[data-theme="dark"] .library-card:focus-within{background:rgba(216,191,128,.07);border-bottom-color:#80714d}
html[data-theme="dark"] .library-card:hover .studio-button,html[data-theme="dark"] .library-card:focus-within .studio-button{background:transparent;color:#f1e2b6;border-color:#d8bf80}
html[data-theme="dark"] .not-found .lost-layout{background:#1c3545}
html[data-theme="dark"] .not-found .lost-art span{color:#ddc488}
html[data-theme="dark"] .not-found .lost-actions a{border-color:rgba(216,191,128,.6);color:#f4efe3}
html[data-theme="dark"] .not-found .lost-actions .nav-book{background:#ddc488;border-color:#ddc488;color:#203b4c}
html[data-theme="dark"] .not-found .recovery-links{border-top:0}
html[data-theme="dark"] .not-found .recovery-links a{border-top:1px solid rgba(216,191,128,.38);border-bottom:1px solid rgba(216,191,128,.38)}
html[data-theme="dark"] .not-found .recovery-links a:hover,html[data-theme="dark"] .not-found .recovery-links a:focus-visible{background:rgba(216,191,128,.08)}
html[data-theme="dark"] .not-found .lost-recent ul{border-top-color:#80714d}
@media(min-width:1101px){.lv6-links.lv6-n3{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:621px) and (max-width:1100px){.lv6-links.lv6-n3{grid-template-columns:1fr}
.lv6-links.lv6-n3 a+a{margin-top:-1px}}
/* 115.11.12 次要說明精簡：專區入口卡撤英文名後置中；404 常用頁面入口改三項、撤說明行 */
@media(min-width:621px){#topics nav a{justify-content:center;min-height:84px}.not-found .recovery-links{grid-template-columns:repeat(3,1fr)}}
.not-found .recovery-links a{min-height:72px;align-content:center}
@media(max-width:620px){.not-found .recovery-links a{min-height:56px}}
/* 115.11.14 主題專區：尚無文章的分組先不顯示；第一篇文章掛上後，分組與上方主題連結自動出現。
   原寫在 topic-labor.html 頁內樣式區塊，依律師裁示移入本檔（規則逐字相同）。
   主題連結一段寫死 reading-2、reading-3，只對應勞動專區現有四組的排法；其他專區要用空分組時須另補。 */
.topic-reading-group:has(>div:empty){display:none}main:has(#reading-2>div:empty) .studio-route a[href="#reading-2"],main:has(#reading-3>div:empty) .studio-route a[href="#reading-3"]{display:none}main:has(#reading-3>div:empty) .studio-route a[href="#reading-2"],main:has(#reading-2>div:empty):has(#reading-3>div:empty) .studio-route a[href="#reading-1"]{border-right:0;border-bottom:0}
