/* 衛教主題頁配色（親子教養 parent／兒童青少年心理 psych）。
   頁面先載入 /video/style.css 與 /video/cards.css，再用這支覆寫原本的粉色主題。 */
body[data-theme=parent]{
 /* 珊瑚橘 H15：提高飽和避免變褐色；色相比「候診序號」的橘(H22)更偏紅，LINE 選單上分得開 */
 --h1:#B64D2B;--h2:#D35931;--h3:#DD6F4B;--hero-line:#E4C0B4;
 --bg:#FDF8F6;--ink:#2B2A33;--soft:#FEFAF8;--hover-bg:#FBEEEA;
 --line:#F0E0DB;--btn-line:#ECC4B6;--btn-ink:#8A452E;--active:#AF5131;
 --muted:#6E6866;--foot-bg:#F4E6E1;--foot-ink:#604339;--foot-strong:#863F28;
 --cat-1:#C15733;--cat-2:#C97336;--cat-3:#A8452A;--cat-4:#D0805A;--dur:#3A2E2BED;
}
body[data-theme=psych]{
 /* 藍紫 H262：提高飽和避免灰紫；色相落在官網藍(H215)與平衡粉紫(H317)中間 */
 --h1:#6340A0;--h2:#734ABA;--h3:#8662C6;--hero-line:#C5B3E6;
 --bg:#F9F6FD;--ink:#2B2A33;--soft:#FAF8FE;--hover-bg:#F0E9FB;
 --line:#E2DAF1;--btn-line:#CAB6ED;--btn-ink:#543E7A;--active:#664997;
 --muted:#696374;--foot-bg:#E8E0F5;--foot-ink:#473960;--foot-strong:#4E3678;
 --cat-1:#6E4CA9;--cat-2:#8556B3;--cat-3:#5A4A9E;--cat-4:#9273C2;--dur:#352D43ED;
}
body[data-theme=balance]{
 /* 身體結構平衡與呼吸：蘭花紫 H318，對齊 LINE 選單的粉紫標籤（原頁為灰玫瑰 H335） */
 --h1:#8D3572;--h2:#A23F84;--h3:#B4519A;--hero-line:#E3B5D5;
 --bg:#FDF6FB;--ink:#2B2A33;--soft:#FEF8FC;--hover-bg:#FAEBF5;
 --line:#F0DBEA;--btn-line:#E7BBDA;--btn-ink:#793465;--active:#983E7D;
 --muted:#74636F;--foot-bg:#F4E1EE;--foot-ink:#623755;--foot-strong:#762D60;
 --cat-1:#9F4183;--cat-2:#A24978;--cat-3:#96408B;--cat-4:#AF5A90;--dur:#442C3DED;
}
body[data-theme] .video-hero{background:linear-gradient(115deg,var(--h1) 0%,var(--h2) 55%,var(--h3) 100%);border-bottom:1px solid var(--hero-line)}
body[data-theme] .video-hero::before{display:none}
body[data-theme]:has(.video-hero){background:var(--bg);color:var(--ink)}
body[data-theme]:has(.video-hero) footer{background:var(--foot-bg);color:var(--foot-ink);border-top:1px solid var(--line)}
body[data-theme]:has(.video-hero) footer strong{color:var(--foot-strong)}
body[data-theme]:has(.video-hero) footer span,body[data-theme] .footer-copyright,body[data-theme] .footer-credit{color:var(--muted)}
body[data-theme] .filter-row button{border-color:var(--btn-line);color:var(--btn-ink);background:var(--soft)}
body[data-theme] .filter-row button:hover{background:var(--hover-bg);border-color:var(--active)}
body[data-theme] .filter-row button[aria-pressed=true]{background:var(--active);color:#fff;border-color:var(--active)}
body[data-theme] .filter-row button:focus-visible,body[data-theme] .video-row:focus-visible{outline-color:var(--active)}
body[data-theme] .video-tools{color:var(--muted)}
body[data-theme] .video-tools select{color:var(--btn-ink);border-color:var(--btn-line);background:var(--soft)}
body[data-theme] .video-list .video-row{border-color:var(--line);color:var(--ink)}
body[data-theme] .video-list .video-row:last-child{border-bottom-color:var(--line)}
body[data-theme] .video-list .video-row{border-left-color:var(--category-color);box-shadow:0 3px 12px #00000008}
body[data-theme] .video-list .video-row:hover{background:var(--soft);box-shadow:0 5px 18px #00000012}
body[data-theme] .video-list .video-row:hover h3{color:var(--active)}
body[data-theme] .video-arrow{color:var(--btn-line)}
body[data-theme] .video-duration{background:var(--dur)}
body[data-theme] a{color:var(--active)}

/* 頁首右側裝飾：每個主題一種線條圖案（取代原本共用的大圓） */
body[data-theme] .video-hero::after{top:50%;right:max(2%,calc((100% - 1180px)/2));width:320px;height:183px;transform:translateY(-50%);border:0;border-radius:0;background:center/contain no-repeat}
body[data-theme=parent] .video-hero::after{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20420%20240'%20fill%3D'none'%20stroke%3D'white'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20transform%3D'rotate(-12%20210%20133)'%20d%3D'M210%20196C130%20150%20135%2070%20185%2070c20%200%2025%2018%2025%2018s5-18%2025-18c50%200%2055%2080-25%20126Z'%20stroke-opacity%3D'.24'%20stroke-width%3D'10'%2F%3E%3Cpath%20transform%3D'translate(-12%204)%20rotate(16%20310%20149)'%20d%3D'M310%20182C268%20158%20270%20116%20297%20116c10%200%2013%209%2013%209s3-9%2013-9c27%200%2029%2042-13%2066Z'%20stroke-opacity%3D'.32'%20stroke-width%3D'9'%2F%3E%3C%2Fsvg%3E")}
body[data-theme=psych] .video-hero::after{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20420%20240'%20fill%3D'none'%20stroke%3D'white'%20stroke-linecap%3D'round'%3E%3Cpath%20d%3D'M250%2040h120a28%2028%200%200%201%2028%2028v56a28%2028%200%200%201-28%2028h-62l-30%2026v-26h-28a28%2028%200%200%201-28-28V68a28%2028%200%200%201%2028-28z'%20stroke-opacity%3D'.17'%20stroke-width%3D'10'%2F%3E%3Cpath%20d%3D'M180%2070a60%2060%200%200%200%200%2080'%20stroke-opacity%3D'.16'%20stroke-width%3D'9'%2F%3E%3Cpath%20d%3D'M140%2045a100%20100%200%200%200%200%20130'%20stroke-opacity%3D'.10'%20stroke-width%3D'9'%2F%3E%3C%2Fsvg%3E")}
body[data-theme=balance] .video-hero::after{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20420%20240'%20stroke%3D'white'%20stroke-linecap%3D'round'%20stroke-width%3D'12'%3E%3Cpath%20d%3D'M130%2098v78'%20stroke-opacity%3D'0.24'%2F%3E%3Cpath%20d%3D'M156%20111v75'%20stroke-opacity%3D'0.23'%2F%3E%3Cpath%20d%3D'M182%20123v51'%20stroke-opacity%3D'0.18'%2F%3E%3Cpath%20d%3D'M208%20126v25'%20stroke-opacity%3D'0.13'%2F%3E%3Cpath%20d%3D'M234%20111v19'%20stroke-opacity%3D'0.12'%2F%3E%3Cpath%20d%3D'M260%2084v38'%20stroke-opacity%3D'0.16'%2F%3E%3Cpath%20d%3D'M286%2059v66'%20stroke-opacity%3D'0.21'%2F%3E%3Cpath%20d%3D'M312%2051v80'%20stroke-opacity%3D'0.24'%2F%3E%3Cpath%20d%3D'M338%2067v69'%20stroke-opacity%3D'0.22'%2F%3E%3Cpath%20d%3D'M364%2099v41'%20stroke-opacity%3D'0.16'%2F%3E%3Cpath%20d%3D'M390%20127v20'%20stroke-opacity%3D'0.12'%2F%3E%3C%2Fsvg%3E")}
@media(max-width:600px){body[data-theme] .video-hero::after{display:none}}



/* 其他衛教主題 */
.other-topics{margin-top:44px;padding-top:26px;border-top:1px solid var(--line)}
.other-topics h2{font-size:22px;margin:0 0 14px;color:var(--ink)}
.other-topics .row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.other-topics a{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:18px 20px;background:#fff;border:1px solid var(--line);border-left:6px solid var(--c);border-radius:16px;text-decoration:none;color:var(--ink);font-weight:700}
.other-topics a small{display:block;font-weight:400;font-size:15px;color:var(--muted)}
.other-topics a:hover{background:var(--soft)}

@media(max-width:600px){
 .other-topics .row{grid-template-columns:1fr}
}

#category-filters[hidden],.video-tools label[hidden]{display:none}


/* 頁尾地址、電話不在中間斷行 */
.nowrap{white-space:nowrap}
@media(max-width:600px){footer .sep{display:none}footer .nowrap{display:block}}
/* 其他衛教主題：標題用各自主題色，與左側色條一致 */
.other-topics a>div{color:var(--c)}
