/* ntdsf.tv base, header and footer (own theme, 2026-11-05) */
:root{--ntd-navy:#272c6c;--ntd-blue:#033378;--ntd-gold:#e0b018;--ntd-red:#d7262e;--ntd-ink:#1d1d1f;--ntd-line:#e3e4e8;
	--ntd-font:"PingFang TC","Noto Sans TC","Microsoft JhengHei","Heiti TC",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif}

/* ---------- base ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;overflow-x:hidden}
@supports (overflow:clip){html{overflow-x:clip}}
body{margin:0;font-family:var(--ntd-font);font-size:16px;line-height:1.6;color:var(--ntd-ink);background:#fff;overflow-x:hidden}
@supports (overflow:clip){body{overflow-x:clip}}
html.ntdhd-locked,html.ntdhd-locked body{overflow:hidden}
img,video,iframe{max-width:100%}
img{height:auto}
figure{margin:0 0 1em;max-width:100%}
.wp-caption{max-width:100%!important;height:auto}
.wp-caption img{display:block;width:100%;height:auto}
.wp-caption-text,figcaption{margin:6px 0 0;font-size:.85em;line-height:1.6;color:#555}
.aligncenter{margin-left:auto;margin-right:auto}
.alignleft{float:left;margin:0 1em 1em 0}
.alignright{float:right;margin:0 0 1em 1em}
@media (max-width:600px){.alignleft,.alignright{float:none;margin:0 0 1em}}
a{color:var(--ntd-blue)}
h1,h2,h3,h4{font-family:var(--ntd-font);line-height:1.35}
button,input,select,textarea{font-family:inherit}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link:focus{position:fixed!important;left:12px;top:12px;z-index:100000;width:auto;height:auto;clip:auto;padding:10px 16px;background:#fff;color:var(--ntd-navy);font-weight:700}
.site-content{min-height:50vh}

/* ---------- header ---------- */
.ntdhd{position:sticky;top:0;z-index:999;background:var(--ntd-navy);color:#fff;box-shadow:0 1px 0 rgba(255,255,255,.06)}
body.admin-bar .ntdhd{top:32px}
.ntdhd-in{max-width:1280px;margin:0 auto;padding:0 20px;height:72px;display:flex;align-items:center;gap:16px}
.ntdhd-logo{display:flex;align-items:center;flex:0 0 auto;margin-right:auto}
.ntdhd-nav{order:4}
.ntdhd-logo-img{display:block;height:50px;width:auto}
.ntdhd-logo-text{font-size:20px;font-weight:700;color:#fff}
.ntdhd-toggle,.ntdm-live{display:none}

.ntdhd-menu{display:flex;align-items:stretch;margin:0;padding:0;list-style:none;height:72px}
.ntdhd-menu > li{position:relative;display:flex}
.ntdhd-menu > li > a{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 15px;color:#fff;text-decoration:none;line-height:1.25;border-top:3px solid transparent;border-bottom:3px solid transparent;transition:border-color .15s,background .15s}
.ntdm-zh{display:block;font-size:16px;font-weight:700;letter-spacing:.04em}
.ntdm-en{display:block;font-size:10px;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:rgba(255,255,255,.6)}
.ntdm-is-live > a .ntdm-zh{position:relative}
.ntdm-is-live > a .ntdm-zh::before{content:"";position:absolute;left:-14px;top:50%;width:8px;height:8px;margin-top:-4px;border-radius:50%;background:#ff3d3d;animation:ntdm-blink 2s ease-in-out infinite}
@keyframes ntdm-blink{50%{opacity:.3}}
.ntdhd-menu > li:hover > a,.ntdhd-menu > li:focus-within > a,
.ntdhd-menu > .current-menu-item > a,.ntdhd-menu > .current-menu-ancestor > a,.ntdhd-menu > .current_page_parent > a{border-bottom-color:var(--ntd-gold);background:rgba(255,255,255,.05)}
.ntdhd-sub{display:none}
/* desktop dropdowns */
.ntdhd-menu .sub-menu{position:absolute;left:0;top:100%;min-width:210px;margin:0;padding:6px 0;list-style:none;background:#fff;border-top:3px solid var(--ntd-gold);box-shadow:0 10px 24px rgba(0,0,0,.18);opacity:0;visibility:hidden;transform:translateY(6px);transition:opacity .15s,transform .15s,visibility .15s;z-index:10}
.ntdhd-menu > li:hover > .sub-menu,.ntdhd-menu > li:focus-within > .sub-menu{opacity:1;visibility:visible;transform:none}
.ntdhd-menu .sub-menu a{display:block;padding:10px 18px;font-size:15px;font-weight:600;line-height:1.4;color:var(--ntd-ink);text-decoration:none}
.ntdhd-menu .sub-menu a:hover,.ntdhd-menu .sub-menu .current-menu-item > a{background:#f3f4f7;color:var(--ntd-navy)}

@media (min-width:961px) and (max-width:1100px){
	.ntdhd-menu > li > a{padding:0 10px}
	.ntdm-zh{font-size:15px}
	.ntdhd-logo-img{height:42px}
}

/* search button + drop-down bar */
.ntdhd-search-btn{order:5;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;margin-left:6px;padding:0;background:transparent;color:#fff;border:1px solid rgba(255,255,255,.35);border-radius:2px;cursor:pointer}
.ntdhd-search-btn svg{width:19px;height:19px}
.ntdhd-search-btn:hover,.ntdhd-search-btn.is-on{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.6)}
.ntdhd-search{background:#1d2156;border-top:1px solid rgba(255,255,255,.08)}
.ntdhd-search[hidden]{display:none}
.ntdhd-search-form{display:flex;max-width:760px;margin:0 auto;padding:14px 20px}
.ntdhd-search-form input{flex:1;min-width:0;height:46px;padding:0 14px;font-size:17px;color:#1d1d1f;background:#fff;border:0;border-radius:2px 0 0 2px;outline:0}
.ntdhd-search-form button{height:46px;padding:0 22px;font-size:16px;font-weight:700;color:#1d1d1f;background:var(--ntd-gold);border:0;border-radius:0 2px 2px 0;cursor:pointer}
.ntdhd-search-form button:hover{background:#f0c020}
.ntdhd-search-form input:focus{box-shadow:inset 0 0 0 2px var(--ntd-gold)}

/* ---------- phone / tablet ---------- */
@media (max-width:960px){
	.ntdhd-in{height:60px;padding:0 16px;gap:8px}
	.ntdhd-logo-img{height:40px}
	.ntdm-live{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 12px;background:var(--ntd-red);color:#fff!important;font-size:15px;font-weight:700;border-radius:2px;text-decoration:none!important;white-space:nowrap}
	.ntdm-live::before{content:"";width:7px;height:7px;border-radius:50%;background:#fff;animation:ntdm-blink 2s ease-in-out infinite}
	.ntdhd-search-btn{order:0;margin-left:0;border-color:rgba(255,255,255,.45)}
	.ntdhd-search-form{padding:12px 16px}
	.ntdhd-toggle{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;background:transparent;color:#fff;border:1px solid rgba(255,255,255,.45);border-radius:2px;cursor:pointer}
	.ntdhd-toggle svg{width:20px;height:20px}
	.ntdhd-ic-close{display:none}
	.ntdhd.is-open .ntdhd-ic-open{display:none}
	.ntdhd.is-open .ntdhd-ic-close{display:block}
	.ntdhd.is-open .ntdhd-toggle{background:rgba(255,255,255,.12)}
	.ntdhd-nav{display:none;position:absolute;left:0;right:0;top:60px;max-height:calc(100vh - 60px);max-height:calc(100dvh - 60px);overflow-y:auto;overscroll-behavior:contain;background:#fff;box-shadow:0 8px 16px rgba(0,0,0,.18)}
	.ntdhd.is-open .ntdhd-nav{display:block}
	.ntdhd-menu{display:block;height:auto}
	.ntdhd-menu > li{display:flex;flex-wrap:wrap;border-bottom:1px solid var(--ntd-line)}
	.ntdhd-menu > li > a{flex:1;flex-direction:row;align-items:baseline;justify-content:flex-start;gap:10px;min-height:54px;padding:14px 20px;color:var(--ntd-ink);border:0}
	.ntdhd-menu > li > a .ntdm-zh{display:inline;font-size:17px}
	.ntdhd-menu > li > a .ntdm-en{display:inline;font-size:12px;color:#8a8d93;letter-spacing:.06em}
	.ntdm-is-live > a{padding-left:34px!important}
	.ntdhd-menu > li:hover > a,.ntdhd-menu > li:focus-within > a{background:none}
	.ntdhd-menu > .current-menu-item > a{box-shadow:inset 4px 0 0 var(--ntd-gold);background:none}
	.ntdhd-sub{display:flex;align-items:center;justify-content:center;width:56px;min-height:54px;padding:0;background:none;border:0;color:#33363b;cursor:pointer}
	.ntdhd-sub svg{width:22px;height:22px;transition:transform .15s}
	.is-sub-open > .ntdhd-sub svg{transform:rotate(180deg)}
	.ntdhd-menu .sub-menu{position:static;flex-basis:100%;display:none;opacity:1;visibility:visible;transform:none;box-shadow:none;border:0;padding:0;background:#f6f6f6;min-width:0}
	.ntdhd-menu .is-sub-open > .sub-menu{display:block}
	.ntdhd-menu .sub-menu li{border-top:1px solid var(--ntd-line)}
	.ntdhd-menu .sub-menu a{padding:12px 20px 12px 34px;font-size:16px;color:#33363b}
}
@media (max-width:960px) and (min-width:601px){ body.admin-bar .ntdhd{top:46px} }
@media (max-width:600px){ body.admin-bar .ntdhd{top:0} }

/* ---------- footer ---------- */
.ntdft{background:var(--ntd-blue);color:#fff;margin-top:0}
.ntdft a{color:#fff}
.ntdft-in{max-width:1200px;margin:0 auto;padding:36px 20px 0}
.ntdft-top{display:flex;justify-content:space-between;gap:24px 40px;flex-wrap:wrap;padding-bottom:28px;border-bottom:1px solid rgba(255,255,255,.18)}
.ntdft-info{font-size:15px;line-height:1.9}
.ntdft-info p{margin:0}
.ntdft-info .wp-block-image{margin:0 0 12px}
.ntdft-info .wp-block-image img{width:200px!important;height:auto!important}
.ntdft-info a{text-decoration:none}
.ntdft-info a:hover{text-decoration:underline}
.ntdft-menu{display:flex;flex-wrap:wrap;gap:6px 22px;margin:0;padding:0;list-style:none}
.ntdft-menu a{font-size:15px;font-weight:600;text-decoration:none}
.ntdft-menu a:hover{color:var(--ntd-gold)}
.ntdft-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 0 22px;font-size:14px}
.ntdft-copy{margin:0;color:rgba(255,255,255,.85)}
.ntdft-social{display:flex;gap:6px;margin:0;padding:0;list-style:none}
.ntdft-social a{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border:1px solid rgba(255,255,255,.3);border-radius:2px}
.ntdft-social a:hover{background:rgba(255,255,255,.12)}
.ntdft-social svg{width:18px;height:18px;fill:#fff}
@media (max-width:767px){
	.ntdft-in{padding:28px 16px 0}
	.ntdft-top{flex-direction:column}
	.ntdft-bottom{flex-direction:column-reverse;align-items:flex-start}
}

/* back to top */
.ntdtop{position:fixed;right:18px;bottom:18px;z-index:900;display:flex;align-items:center;justify-content:center;width:44px;height:44px;background:var(--ntd-navy);color:#fff;border-radius:2px;box-shadow:0 4px 12px rgba(0,0,0,.2)}
.ntdtop[hidden]{display:none}
.ntdtop svg{width:22px;height:22px}
@media (prefers-reduced-motion:reduce){.ntdm-is-live > a .ntdm-zh::before,.ntdm-live::before{animation:none}}
