/* sf.epochtimes.com 2026 redesign, LIVE since 2026-11-16. Loaded last in <head> by includes/sf-2026.php on every
   front-end page. Tokens = 金山紀元 Design System artifact (https://claude.ai/artifact/VaHQ1jvakhvffbsb1fcNtD).

   Direction, from real Chinese news sites (HQ epochtimes.com/b5, CNA, BBC 中文, 報導者):
   - one brand-colour block per page: the navy masthead. No gold anywhere (no gold rules, links, buttons).
   - section headings = bold ink text over a 1px hairline, "更多 ›" in link blue on the right. No colour bars.
   - colour only where it means something: link blue for kickers / 更多, red only for 直播 / 播出中.
   - lists = plain rows split by hairlines; white page; navy footer matching the masthead; square-ish 2px corners, no pills.
   - sizes follow HQ (desktop lists 16px, phone 18px, article 20/36) - written in rem (1rem = 16px). */

:root {
	--s26-navy: #10357e;       /* the logo's own blue: masthead, footer, solid buttons (white text 11.5:1) */
	--s26-navy-deep: #10357e;  /* utility strip: same blue as the masthead, split by a thin line (was a darker band that read as purple) */
	--s26-ink: #16181d;        /* headings */
	--s26-text: #262626;       /* body + list text (HQ article colour) */
	--s26-meta: #646a73;       /* dates, captions, secondary (5.4:1 on white) */
	--s26-link: #1b4b91;       /* kickers, 更多, hover (8.5:1 on white) */
	--s26-live: #c8102e;       /* 直播 / 播出中 only */
	--s26-rule: #e3e5e9;       /* hairlines between rows */
	--s26-rule-strong: #c9cdd4;/* hairline under section headings */
	--s26-bg: #ffffff;
	--s26-bg-2: #f4f5f7;       /* quiet boxes */
	--s26-on-navy: #dfe5f1;    /* body text on navy (9.1:1) */
	--s26-on-navy-2: #b4c0d9;  /* secondary text on navy (6.3:1) */
	--s26-sans: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Heiti TC", "Microsoft YaHei", sans-serif;
	--s26-r: 2px;
}

/* ---------- base ---------- */
html body { background: var(--s26-bg); color: var(--s26-text); }
html body, html body .main, html body .main a, html body .sff, html body .sfcn,
html body .main .block_title .big_title a, html body .main .block_title .recm_icon a, html body .main .block_title .ins_news a,
html body .sfcn-h { font-family: var(--s26-sans); }
html body :focus-visible { outline: 2px solid var(--s26-link) !important; outline-offset: 2px; }
html body .main a { color: var(--s26-text); }
html body .main a:hover { color: var(--s26-link) !important; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- masthead (desktop) ---------- */
html body .header .top_row { background: var(--s26-navy-deep) !important; border-bottom: 1px solid rgba(255,255,255,.16) !important; }
html body .header .top_row a:not(.sfw-in), html body .header .top_row #ntd_date, html body .header .top_row .zh a { color: rgba(255,255,255,.88) !important; font-weight: 400 !important; }
html body .header .top_row a:not(.sfw-in):hover { color: #fff !important; text-decoration: underline; text-underline-offset: 3px; }
html body .header .top_row .sfw-account-link a { border-color: rgba(255,255,255,.55) !important; border-radius: var(--s26-r) !important; }
html body .header .nav_row { background: var(--s26-navy) !important; }
html body .header .navigation .menu > li > a { color: #fff !important; font-weight: 500; }
html body .header .navigation .menu > li.current-menu-item > a,
html body .header .navigation .menu > li.current-menu-ancestor > a,
html body .header .navigation .menu > li.current-menu-parent > a { color: #fff !important; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
html body .header .navigation .search.sf-sbox a, html body .header .sf-sbtn { border-radius: var(--s26-r) !important; }

/* dropdown panels: white, hairline border, no coloured top rule, no side bar on hover */
@media (min-width: 800px) {
	html body .header .navigation .menu > li > ul.sub-menu {
		border: 1px solid var(--s26-rule-strong) !important; border-top: 1px solid var(--s26-rule-strong) !important;
		border-radius: var(--s26-r); box-shadow: 0 8px 24px rgba(16, 24, 48, .14);
	}
	html body .header .navigation .menu > li > ul.sub-menu > li > a { color: var(--s26-text) !important; font-weight: 400; }
	html body .header .navigation .menu > li > ul.sub-menu > li > a:hover,
	html body .header .navigation .menu > li > ul.sub-menu > li > a:focus-visible { color: var(--s26-link) !important; background: var(--s26-bg-2); box-shadow: none; text-decoration: underline; text-underline-offset: 3px; }
	html body .header .navigation .menu > li > ul.sub-menu > li.current-menu-item > a { color: var(--s26-link) !important; font-weight: 700; }
}

/* ---------- masthead (phones, sfm-*) ---------- */
html body .sfm-util { background: var(--s26-navy-deep) !important; border-bottom: 1px solid rgba(255,255,255,.16) !important; }
html body .sfm-util a:not(.sfw-in) { color: rgba(255,255,255,.9) !important; font-weight: 400 !important; }
html body a.sfw-acct-link.sfw-in, html body .sfm-util nav a.sfw-acct-link.sfw-in { color: var(--s26-navy) !important; background: #fff !important; }
html body .sfm-sub { background: #fff !important; color: var(--s26-navy) !important; border-radius: var(--s26-r) !important; }
html body .sfm-tabs a[aria-current] { border-bottom-color: #fff !important; }
html body .sfm-menu .current-menu-ancestor > .sfm-row > a { box-shadow: none !important; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
html body .sfm-sbtn[aria-expanded=true] { color: #fff !important; }
html body .sf-spanel button:focus-visible, html body .sf-sbtn:focus-visible { outline-color: #fff !important; }

/* ---------- 灣區城市新聞 strip ---------- */
html body .sfcn { border-top: 0 !important; border-bottom: 1px solid var(--s26-rule) !important; }
html body .sfcn-h { color: var(--s26-ink) !important; font-size: 1.125rem !important; }
html body .sfcn a { color: var(--s26-text); }
html body .sfcn-all { color: var(--s26-link) !important; font-weight: 600 !important; }
html body .sfcn-reg h3, html body .sfcn-reg h3 a { color: var(--s26-ink) !important; }

/* ---------- section headings (homepage) ---------- */
html body .main .block_title,
html body .main .focus_center_news_bottom > .global_news {
	border-top: 0 !important; border-bottom: 1px solid var(--s26-rule-strong) !important;
	padding: 0 0 8px !important; margin-bottom: 14px !important; background: none !important;
}
html body .main .block_title .big_title a, html body .main .block_title .recm_icon a, html body .main .block_title .ins_news a,
html body .main .focus_center_news_bottom > .global_news, html body .main .focus_center_news_bottom > .global_news a {
	color: var(--s26-ink) !important; font-weight: 700 !important; font-size: 1.25rem !important; letter-spacing: 0;
}
html body .main .block_title .sub_cat a, html body .main .block_title .sub_cat a::after, html body .main .more a,
html body .main .middle_col .focus_center_news_bottom .more_news a, html body .main .middle_col .focus_center_news_bottom .more a { color: var(--s26-link) !important; font-weight: 600 !important; }
html body .main .block_title .sub_cat a::after { font-size: .875rem !important; }

/* small sub-headings (推薦文章 / 房屋信息 / 生活信息 / 投資理財 …): plain bold ink, no coloured side bar */
html body .main .section_title, html body .main .three_col_popular .section_title, html body .main .three-col .section_title,
html body .main .entertainment .section_title, html body .main .health .section_title, html body .main .culture .section_title {
	border: 0 !important; border-left: 0 !important; box-shadow: none !important; padding-left: 0 !important;
	color: var(--s26-ink) !important; font-weight: 700 !important; font-size: 1rem !important; background: none !important;
}
html body .main .section_title a { color: inherit !important; }
html body .main .section_title::before, html body .main .section_title::after { content: none !important; display: none !important; }

/* ---------- lists ---------- */
html body .main .one_post, html body .main .one_title, html body .main .recm_posts .one_post,
html body .main .instant_news .one_title, html body .main .focus_center_news_bottom .one_post { border-color: var(--s26-rule) !important; }
html body .main .one_post.title a, html body .main .one_post.title { color: var(--s26-text); }
/* the "·" bullets in the small lists stay, in the meta grey */
/* every divider between homepage bands: one hairline colour (was pink, green, navy) */
html body .main .dashccc, html body .main hr { border-color: var(--s26-rule) !important; background: var(--s26-rule) !important; }
html body .main .entertainment, html body .main .health, html body .main .culture, html body .main .life_food_sports,
html body .main .center_three, html body .main .bottom_three, html body .main .front_adsB,
html body .main .three-col, html body .main .center_right, html body .main .culture_shows { border-color: var(--s26-rule) !important; }

/* ---------- kickers / meta ---------- */
html body .main .tag, html body .main .cat_name { color: var(--s26-link) !important; }
/* 頭條 n/12 sits on the photo: stays white */
html body .main .slide_tag { color: #fff !important; }
html body .main time, html body .main .date, html body .main .time { color: var(--s26-meta); }

/* ---------- buttons ---------- */
html body .main button, html body .main input[type=submit], html body .main .btn { border-radius: var(--s26-r) !important; }

/* ---------- sidebar 視頻頻道 ---------- */
html body .sfvc-h { color: var(--s26-ink) !important; border-top: 0 !important; border-bottom: 1px solid var(--s26-rule-strong) !important; padding-bottom: 8px; }

/* ---------- footer: navy like the masthead, no gold rule ---------- */
html body .sff { background: var(--s26-navy) !important; color: var(--s26-on-navy) !important; border-top: 0 !important; }
html body .sff a { color: var(--s26-on-navy) !important; }
html body .sff a:hover { color: #fff !important; text-decoration: underline; text-underline-offset: 3px; }
html body .sff a:focus-visible { outline-color: #fff !important; }
html body .sff-h { color: #fff !important; letter-spacing: 0 !important; }
html body .sff-brand, html body .sff-brand * { color: var(--s26-on-navy) !important; }
html body .sff-brand .sff-word { color: #fff !important; }
html body .sff-sis, html body .sff-bot { border-color: rgba(255,255,255,.18) !important; }
html body .sff-sis, html body .sff-sis *, html body .sff-bot, html body .sff-bot * { color: var(--s26-on-navy-2) !important; }
html body .sff-sis a:hover, html body .sff-bot a:hover { color: #fff !important; }
/* the stacked lines above the footer: old main border + last section border */
html body main#main.main, html body .main.container, html body #main { border-bottom: 0 !important; }
html body .main .life_food_sports { border-bottom: 0 !important; }

/* ---------- /timeline band ---------- */
/* page title instead of a second navy band; one brand block per page */
html body .sftl-band { background: none !important; color: var(--s26-ink) !important; border: 0 !important; border-bottom: 1px solid var(--s26-rule-strong) !important; padding: 4px 0 10px !important; font-size: 1.75rem !important; }
html body .sftl-band svg { color: var(--s26-ink) !important; }
html body .sftl-item::before { background: var(--s26-rule-strong) !important; }
html body .sftl-item:has(.sftl-time.is-new)::before { background: var(--s26-navy) !important; border-color: var(--s26-navy) !important; }

/* ---------- 焦點 slider (sf-list.php) ---------- */
/* the slider panel is navy: light text, white current marker */
html body .sf-fs-kicker { color: var(--s26-on-navy-2) !important; letter-spacing: .02em !important; }
html body .sf-fs-dot[aria-current="true"] { background: #fff !important; }

/* ---------- /television ---------- */
html body .sftv { --sftv-gold: #fff; }
html body .sftv-tab[aria-selected="true"] { border-bottom-color: var(--s26-navy) !important; }
html body .sftv-sched-item.is-now { box-shadow: inset 2px 0 0 var(--s26-live) !important; }
html body .sftv-now { color: #ff6b7d !important; }

/* ---------- article end + forms: focus rings were gold ---------- */
html body .sfae-sbtn:focus-visible, html body .sfae-pn a:focus-visible, html body .sfae-rbtn:focus-visible, html body .sfae-cmt-submit:focus-visible { outline-color: var(--s26-link) !important; }

/* ---------- homepage leftovers that were tan, pink, purple, bright blue or red ---------- */
html body .main .slide a.active .slider_li-parent { border-color: var(--s26-navy) !important; }
html body .main .shenyun_creation_sidebar { border-color: var(--s26-rule) !important; border-radius: 0 !important; }
html body .main .traditional_culture ul.post li, html body .main .center_left, html body .main .three_col_popular,
html body .main .center_three *, html body .main .bottom_three * { border-color: var(--s26-rule) !important; }
html body .main .focus_center_news_bottom > .global_news, html body .main .focus_center_news_bottom > .global_news a { font-family: var(--s26-sans) !important; }
html body .main .nTab1 .block_title, html body .main .nTab1 .block_title *, html body .main .pickup_prog .block_title span { color: var(--s26-ink) !important; }
html body .TabTitle li { color: var(--s26-meta) !important; }
html body .TabTitle li.active { color: var(--s26-ink) !important; font-weight: 700; }
html body .ns-n, html body .sfcl-rank-n { color: var(--s26-navy) !important; }
/* 視頻頻道: one quiet outline button instead of eight red blocks */
html body .sfvc-sub { background: var(--s26-bg) !important; color: var(--s26-ink) !important; border: 1px solid var(--s26-rule-strong) !important; border-radius: var(--s26-r) !important; font-weight: 600 !important; }
html body .sfvc-sub:hover { border-color: var(--s26-ink) !important; }

/* ---------- sidebars on article / list pages: rank badges and tabs were red, orange and purple ---------- */
html body .top_right-child .seq { background: var(--s26-navy) !important; }
html body li.top1 .numb, html body li.top1 .text, html body li.top2 .numb, html body li.top2 .text,
html body li.top3 .numb, html body li.top3 .text { color: var(--s26-ink) !important; }
html body li.top1 .numb, html body li.top2 .numb, html body li.top3 .numb { color: var(--s26-navy) !important; font-weight: 700; }
html body .sfae-cmt-h { font-family: var(--s26-sans) !important; color: var(--s26-ink) !important; }
html body .pri-inline-ad__badge, html body .pri-inline-ad__cta, html body .sfae-back a { color: var(--s26-link) !important; }

/* ---------- every other heading style on inner pages: same as the homepage (text over a hairline) ---------- */
html body .news-single .block_title, html body .sidebar .block_title, html body .news-single .commentary .block_title,
html body .sfvr-head, html body .sfvc-h {
	border-top: 0 !important; border-bottom: 1px solid var(--s26-rule-strong) !important; padding-top: 0 !important; padding-bottom: 8px !important; margin-bottom: 12px !important;
}
html body .sidebar .block_title, html body .sidebar .block_title *, html body .news-single .block_title, html body .news-single .block_title * { color: var(--s26-ink); }
html body .sfae-cmt { border-top: 1px solid var(--s26-rule-strong) !important; }
html body .topbox { border: 1px solid var(--s26-rule) !important; }
html body .list_wrapper { border-top: 1px solid var(--s26-rule-strong) !important; }
/* 網站月排行 tabs: text tabs with an underline, not a bright blue bar */
html body .nTab1 .TabTitle { background: none !important; border-bottom: 1px solid var(--s26-rule-strong) !important; }
html body .nTab1 .TabTitle li, html body .nTab1 .TabTitle li a { background: none !important; color: var(--s26-meta) !important; }
html body .nTab1 .TabTitle li.active, html body .nTab1 .TabTitle li.active a { background: none !important; color: var(--s26-ink) !important; font-weight: 700; box-shadow: inset 0 -2px 0 var(--s26-ink); text-decoration: none !important; }

/* ---------- remaining gold, page by page (search, tags/categories, 分類廣告, 電子報, 投稿, 捐款, 關於, profile, reader wall, 404) ---------- */
/* small gold dash in front of kickers: removed; kicker stays as link-blue text */
html body .sft-kicker::before, html body .sfs-kicker::before, html body .sftg-kicker::before, html body .pr-archive [class*="kicker"]::before { content: none !important; display: none !important; }
html body .sft-kicker, html body .sfs-kicker, html body .sftg-kicker { color: var(--s26-link) !important; letter-spacing: .02em !important; }
/* list / tag / category page header: same as a homepage section heading, sans title in ink */
html body .sft-head { border-top: 0 !important; border-bottom: 1px solid var(--s26-rule-strong) !important; padding-top: 0 !important; }
html body .sft-title, html body .sfs-title, html body .sfab-name { font-family: var(--s26-sans) !important; color: var(--s26-ink) !important; }
/* "current" markers: ink underline instead of gold */
html body .sfs-frow a[aria-current="true"], html body .sfdir-subs a[aria-current], html body .sfep-other a[aria-current="page"],
html body .sf-sec-tabs a[aria-current="page"] { color: var(--s26-ink) !important; border-bottom-color: var(--s26-ink) !important; }
html body .sfcl-cats a[aria-current] { color: var(--s26-ink) !important; border-left-color: var(--s26-ink) !important; background: var(--s26-bg-2) !important; }
html body .sfep-thumbs a[aria-current="page"] img { border-color: var(--s26-navy) !important; }
/* call-to-action boxes had a 4px gold left bar: plain grey box */
html body .sfcl-cta, html body .sfcl-ad-call { border-left: 1px solid var(--s26-rule) !important; background: var(--s26-bg-2) !important; }
html body .sfep-badge { background: var(--s26-bg-2) !important; border-left: 0 !important; color: var(--s26-ink) !important; }
html body .sf404-code { border-bottom-color: var(--s26-rule-strong) !important; }
html body .sfabout-time li::before { background: var(--s26-bg) !important; border-color: var(--s26-navy) !important; }
/* pages that kept gold in a variable */
html body .pr-archive { --gd: var(--s26-navy); }
html body .sftg { --gd: var(--s26-link); }
html body .sfd { --g: #ffffff; }
html body .sfd-hero { background-image: none !important; border-bottom: 0 !important; }
html body .sfd-h1 { font-family: var(--s26-sans) !important; }
/* reader wall + profile */
html body .sfw-nlcard-banner::after { content: none !important; }
html body .sfw-nlcard-banner small, html body .sfw-pop-head span { color: #fff !important; }
html body .sfw-pop-head { background: var(--s26-navy) !important; border-bottom: 0 !important; }
html body .sfw-pc-badge, html body .sfp-hero .sfp-role { background: var(--s26-bg-2) !important; color: var(--s26-ink) !important; }
html body .sfp-hero img { border-color: var(--s26-rule-strong) !important; }
html body a.sfw-acct-link.sfw-in:hover, html body a.sfw-acct-link.sfw-in:focus-visible { background: #fff !important; border-color: #fff !important; color: var(--s26-navy) !important; }
html body .em-box { border-left-color: var(--s26-rule-strong) !important; }
/* old theme rules that still paint menu text gold on hover / current item (functions.php, global1.css) */
html body .navigation .menu > li:hover > a { color: #fff !important; }
html body .footer .nav_wrap .donate a { color: inherit !important; border-bottom-color: currentColor !important; }

/* ---------- one type family: headings that were set in Noto Serif move to the sans stack (the footer wordmark keeps it) ---------- */
html body .sfep-latest-txt h2, html body .sft-title, html body .sfa-initial, html body .sfa-name, html body .sftg-head h1, html body .sftg-done h2,
html body .sfd-h1, html body .sfd-h2, html body .sfs-title, html body .sf-top__zh, html body .sfcn-h { font-family: var(--s26-sans) !important; }
html body .sfd-tier-label em { background: var(--s26-bg-2) !important; color: var(--s26-ink) !important; }

/* ---------- the large solid navy areas use the logo blue (old #192f65 looked purple next to the logo) ----------
   Only big blocks whose text is always white. Buttons are NOT listed: several have outline variants with navy text
   (e.g. .sfw-btn-line), and forcing a navy background on them made their text invisible. Buttons keep the old navy. */
html, html body header.header, html body .footer, html body .footer .bottom_row, html body .sff, html body .sfm-head, html body .sf-fs,
html body .sfd-hero, html body .sfcc, html body .sfw-pop-head, html body .top_right-child .seq,
html body .sf-pager .sf-pg-cur, html body .sfs-pages .current, html body .sfdir-pager span[aria-current], html body .pr-archive .pagination .current { background-color: var(--s26-navy) !important; }
html body .sfd { --n: var(--s26-navy); --n2: var(--s26-navy); }
html body .pr-archive { --nv: var(--s26-navy); }
html body .sftg { --nv: var(--s26-navy); }
html body .sfm-head, html body .sfm-tabs { border-color: rgba(255,255,255,.16) !important; }

/* ---------- contrast fixes from the full audit (21 pages x desktop/phone x 5 states, 2026-11-16) ---------- */
/* text on the navy blocks above must be white */
html body .sf-pager .sf-pg-cur, html body .sfs-pages .current, html body .sfdir-pager span[aria-current], html body .pr-archive .pagination .current { color: #fff !important; }
/* 頭條 n/12 sits on the photo: give it its own dark ground */
html body .main .slide_tag { background: rgba(0, 0, 0, .68) !important; padding: 1px 6px !important; }
/* ad-card and sponsored links had per-card colours (light blue, pink, grey) */
html body .pri-buy-link, html body .pr-single-buy-btn, html body .pr-single-buy-wrap a { color: var(--s26-link) !important; border-color: var(--s26-link) !important; }
/* faint greys (#888-#999, 2.8-3.5:1) and pure red dates -> the meta grey (5.5:1) */
html body .pri-inline-ad__sponsor, html body .pri-inline-ad__line2, html body .date .highlight, html body .topbox .date,
html body .sfcl-n, html body .excerpt p.note, html body .excerpt p.meta time, html body .sfa-crumb span, html body .sfa-cities-l,
html body .sfd-story-d, html body .pr-card__meta span, html body .sf404-date,
html body .sfw-or span, html body .sfw-fine, html body .sfw-rc-note, html body .sfw-nlbox-fine { color: var(--s26-meta) !important; }
/* reporter page (author-news.php) still had the old light-blue headlines and chips */
html body .excerpt header h2 a { color: var(--s26-ink) !important; }
html body .excerpt header a.cat { background: none !important; color: var(--s26-link) !important; padding-left: 0 !important; }
/* last gold-ish label: 每日電子報 in the article sign-up box */
html body .sfw-nlbox-k { color: var(--s26-link) !important; }

/* ---------- thick rules (2-4px navy/black bars) on inner pages -> the same thin heading line everywhere ---------- */
html body .sfa-list-h, html body .subcat_title, html body .sfabout-body h2, html body .sf-sec-title, html body .sfs-head,
html body .sfcl-shead, html body .sfd-h2, html body .sfep-h2, html body .sftv-live-head, html body .sftv-sec-head, html body .cat_titleline {
	border-top: 0 !important; border-bottom: 1px solid var(--s26-rule-strong) !important; padding-top: 0 !important;
}
html body .sf-sec-title, html body .sfd-h2, html body .sfa-list-h { color: var(--s26-ink) !important; }
/* cards with a coloured bar on top -> plain hairline box */
html body .sfd-form-card, html body .sfa-card, html body .sftg-card, html body .sfcl-card, html body .sfabout-facts {
	border: 1px solid var(--s26-rule) !important; border-top: 1px solid var(--s26-rule) !important;
}
html body .sfabout-time { border-left-color: var(--s26-rule-strong) !important; }
html body .sf404-code { border-bottom-width: 1px !important; }
/* /nsc/video programme tabs: current tab was underlined in gold */
html body .sfvcat-tabs a[aria-current], html body .sfvcat-tabs a.is-on, html body .sfvcat-tabs a.current { color: var(--s26-ink) !important; border-bottom-color: var(--s26-ink) !important; }

/* ---------- reader account / sign-in boxes (sf-reader-wall): 3-4px navy top bars -> 1px box; error bars stay red (they mean something) ---------- */
html body .sfw-box, html body .sfw-dlg, html body .sfw-acct-in .sfw-pc, html body .sfw-engage, html body .sfw-claim { border-top: 1px solid var(--s26-rule) !important; }
html body .sfw-box { border: 1px solid var(--s26-rule) !important; }

/* ---------- cookie banner: was navy + gold ---------- */
html body .sfcc { border-top: 1px solid rgba(255,255,255,.2) !important; }
html body .sfcc-msg a { color: #fff !important; }
html body .sfcc .sfcc-btn { background: #fff !important; border-color: #fff !important; color: var(--s26-navy) !important; border-radius: var(--s26-r) !important; }
