/* Used by: includes/sf-article-end.php via sf_style('sf-article-end'). (theme file audit 2026-11-30) */
/* End of article, 2026-11-05: share row, previous/next, reactions, comments (includes/sf-article-end.php, comments.php).
   Navy #192f65, gold #f8c623, ink #1d2230, rule #e6e8ee. Square edges, no pills. Body text follows HQ sizes. */
.sfae-label { margin: 0 0 12px; font-size: 16px; font-weight: 700; line-height: 1.4; color: #1d2230; letter-spacing: .02em; }

/* share */
.share-single { float: none !important; width: auto !important; }
.sfae-share { margin: 28px 0 0; padding: 20px 0 0; border-top: 1px solid #e6e8ee; }
.sfae-share-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sfae-share-list li { margin: 0; padding: 0; list-style: none; }
.sfae-sbtn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; box-sizing: border-box;
	font: inherit; font-size: 15px; line-height: 1; color: #192f65; background: #fff; border: 1px solid #c9d0dc; border-radius: 0;
	text-decoration: none !important; cursor: pointer; }
.sfae-sbtn:hover { color: #fff; background: #192f65; border-color: #192f65; }
.sfae-sbtn:focus-visible { outline: 3px solid #f8c623; outline-offset: 2px; }
.sfae-sbtn svg { flex: none; }
.sfae-copied { min-height: 1.4em; margin: 6px 0 0; font-size: 14px; color: #192f65; }

/* previous / next */
.sfae-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 18px 0 0; border-top: 1px solid #e6e8ee; border-bottom: 1px solid #e6e8ee; }
.sfae-pn a { display: block; padding: 16px 0; color: #1d2230; text-decoration: none; }
.sfae-pn-prev { padding-right: 20px !important; }
.sfae-pn-next { padding-left: 20px !important; border-left: 1px solid #e6e8ee; text-align: right; }
.sfae-pn-empty + .sfae-pn-next { border-left: 0; }
.sfae-pn-l { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 700; color: #192f65; }
.sfae-pn-t { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 17px; font-weight: 500; line-height: 1.55; }
.sfae-pn a:hover .sfae-pn-t { color: #192f65; text-decoration: underline; text-underline-offset: 4px; }
.sfae-pn a:focus-visible { outline: 3px solid #f8c623; outline-offset: -3px; }

/* reactions */
.sfae-react { margin: 28px 0 8px; }
.sfae-react-list { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.sfae-react-list li { margin: 0; padding: 0; list-style: none; }
.sfae-rbtn { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; padding: 12px 4px 10px; box-sizing: border-box;
	font: inherit; color: #1d2230; background: #fff; border: 1px solid #d5dae3; border-radius: 0; cursor: pointer; }
.sfae-rbtn:hover:not(:disabled) { border-color: #192f65; background: #f6f8fc; }
.sfae-rbtn:focus-visible { outline: 3px solid #f8c623; outline-offset: 2px; }
.sfae-rbtn:disabled { cursor: default; }
.sfae-rbtn.is-on { border: 2px solid #192f65; padding: 11px 3px 9px; background: #fff8dc; }
.sfae-emo { font-size: 28px; line-height: 1.1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.sfae-rl { font-size: 15px; font-weight: 700; line-height: 1.3; }
.sfae-rn { font-size: 14px; line-height: 1.2; color: #5c6372; font-variant-numeric: tabular-nums; }
.sfae-react-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin: 12px 0 0; font-size: 15px; color: #5c6372; }
.sfae-total { color: #192f65; }
.sfae-tocomments { color: #192f65 !important; font-weight: 700; text-decoration: none; }
.sfae-tocomments:hover { text-decoration: underline; text-underline-offset: 3px; }

/* comments */
.commentary .block_title { display: none; }
.sfae-cmt { margin: 36px 0 12px; padding: 14px 0 0; border-top: 3px solid #192f65; }
.sfae-cmt-h { display: flex; align-items: baseline; gap: 10px; margin: 0 0 16px; padding: 0;
	font-family: "Noto Serif TC", "Songti TC", "PMingLiU", serif; font-size: 24px; font-weight: 700; line-height: 1.3; color: #192f65; }
.sfae-cmt-n { font-family: inherit; font-size: 16px; font-weight: 700; color: #fff; background: #192f65; padding: 1px 8px; line-height: 1.5; }
.sfae-cmt .comment-respond { margin: 0; padding: 18px 20px 20px; background: #f6f8fc; border: 1px solid #e6e8ee; }
.sfae-cmt .comment-reply-title { margin: 0 0 6px; }
.sfae-cmt-note, .sfae-cmt-who { margin: 0 0 14px; font-size: 15px; line-height: 1.6; color: #4b5260; }
.sfae-cmt-who span { margin: 0 8px; color: #9aa1ad; }
.sfae-cmt-who a { color: #192f65; }
.sfae-cmt-form p { margin: 0; }
.sfae-cmt-field { margin: 0 0 12px !important; }
.sfae-cmt-field label { display: block; margin: 0 0 6px; font-size: 15px; font-weight: 700; color: #1d2230; }
.sfae-cmt-form textarea#blog_audience, .sfae-cmt-form input#author {
	display: block; width: 100% !important; max-width: none; box-sizing: border-box; margin: 0; padding: 10px 12px;
	font: inherit; font-size: 17px; line-height: 1.6; color: #1d2230; background: #fff; border: 1px solid #b9c1cf; border-radius: 0; box-shadow: none; }
.sfae-cmt-form textarea#blog_audience { min-height: 130px; resize: vertical; }
.sfae-cmt-form input#author { max-width: 320px; height: 44px; }
.sfae-cmt-form textarea#blog_audience:focus, .sfae-cmt-form input#author:focus { outline: 3px solid #f8c623; outline-offset: 0; border-color: #192f65; }
.sfae-cmt-meta { display: flex; justify-content: space-between; gap: 12px; margin: -4px 0 14px !important; font-size: 14px; line-height: 1.5; color: #5c6372; }
.sfae-cmt-count { flex: none; font-variant-numeric: tabular-nums; }
.sfae-cmt-count.is-over { color: #b4232a; font-weight: 700; }
.sfae-cmt-actions { display: flex; justify-content: flex-end; margin: 4px 0 0 !important; }
.sfae-cmt-submit { height: 44px; padding: 0 26px; font: inherit; font-size: 16px; font-weight: 700; color: #fff; background: #192f65;
	border: 0; border-radius: 0; cursor: pointer; float: none !important; }
.sfae-cmt-submit:hover { background: #10224d; }
.sfae-cmt-submit:focus-visible { outline: 3px solid #f8c623; outline-offset: 2px; }
.sfae-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* back link (replaces the yellow 返回上一頁 button) */
.sfae-back { margin: 20px 0 8px; font-size: 15px; }
.sfae-back a { color: #192f65; text-decoration: none; }
.sfae-back a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 800px) {
	.sfae-react-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.sfae-pn { grid-template-columns: 1fr; }
	.sfae-pn-prev { padding-right: 0 !important; }
	.sfae-pn-next { padding-left: 0 !important; border-left: 0; border-top: 1px solid #e6e8ee; text-align: left; }
	.sfae-sbtn span { display: none; }
	.sfae-sbtn { width: 44px; height: 44px; padding: 0; justify-content: center; }
	.sfae-cmt .comment-respond { padding: 16px 14px; }
	.sfae-cmt-h { font-size: 22px; }
	.sfae-cmt-meta { flex-direction: column; gap: 2px; }
	.sfae-cmt-submit { width: 100%; }
}
.sfae-opt { font-weight: 400; color: #5c6372; }
/* the theme's old comment-form rules (#commentArea .submit etc.) win on specificity; restate the button and spacing */
#commentArea .sfae-cmt-form .sfae-cmt-submit, #commentArea #submit.sfae-cmt-submit { height: 44px !important; padding: 0 26px !important; font-size: 16px !important; font-weight: 700 !important;
	line-height: 44px !important; color: #fff !important; background: #192f65 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
#commentArea .sfae-cmt-form .sfae-cmt-submit:hover { background: #10224d !important; }
.sfae-cmt-note + .sfae-cmt-field, .sfae-cmt-form .sfae-hp + .sfae-cmt-field { margin-top: 4px !important; }
.sfae-cmt-note { margin-bottom: 18px !important; }
@media (max-width: 800px) { #commentArea .sfae-cmt-form .sfae-cmt-submit { width: 100% !important; } }

/* Long URLs in justified article text (2026-11-05, includes/sf-content-urls.php): a URL may break anywhere so the
   line before it is not stretched; the HQ source line is left-aligned and smaller. */
.sf-url { word-break: break-all; overflow-wrap: anywhere; }
.news-single .post_content p.etf-source, .etf-source { margin-top: 24px; text-align: left; text-align-last: left; font-size: 15px; line-height: 1.6; color: #6b6f75; }
.etf-source a { color: #192f65; }

/* 2026-11-25 share message box */
.sfae-text-l { display: block; margin: 16px 0 6px; font-size: 14px; color: #5c6372; }
.sfae-text { display: block; inline-size: 100%; box-sizing: border-box; padding: 10px 12px; font: inherit; font-size: 15px; line-height: 1.6; color: #1d2230; background: #f7f8fa; border: 1px solid #d5dae3; border-radius: 6px; resize: vertical; }
.sfae-text:focus { outline: 2px solid #192f65; outline-offset: 1px; background: #fff; }
.sfae-text { field-sizing: content; min-block-size: 5.5em; max-block-size: 14em; }   /* grows to fit the message where supported (phones showed it cut off) */

/* 2026-11-25 v2 share icons near the start (user: the boxed row was ugly): pushed to the right end of the 字級 line,
   no boxes, each service in its own colour (darker official shades where the brand green is too light on white),
   light grey square on hover. Phones: own line under 字級, left-aligned. */
html body .sfae-share.sfae-share--top { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: 0 0 0 auto !important; padding: 0 !important; border: 0 !important; }
.sfae-share--top .sfae-top-l { margin-inline-end: 6px; font-size: .875rem; color: #5c636e; }
html body .sfae-share.sfae-share--top .sfae-sbtn, html body .sfae-share.sfae-share--top .sfae-sbtn:hover, html body .sfae-share.sfae-share--top .sfae-sbtn:focus-visible {
	inline-size: 36px; block-size: 36px; padding: 0; justify-content: center; border: 0 !important; border-radius: 6px; background: transparent !important; color: var(--c, #5c636e) !important; }
html body .sfae-share.sfae-share--top .sfae-sbtn:hover, html body .sfae-share.sfae-share--top .sfae-sbtn:focus-visible { background: #eef0f4 !important; }
html body .sfae-share.sfae-share--top .sfae-sbtn svg { color: var(--c, #5c636e) !important; }
html body .sfae-share.sfae-share--top .sfae-sbtn:focus-visible { outline: 2px solid #192f65; outline-offset: 1px; }
.sfae-share--top .sfae-facebook { --c: #1877f2; }
.sfae-share--top .sfae-line { --c: #00983f; }
.sfae-share--top .sfae-x { --c: #16181d; }
.sfae-share--top .sfae-whatsapp { --c: #128c7e; }
.sfae-share--top .sfae-wechat { --c: #088a4b; }
.sfae-share--top .sfae-copy { --c: #5c636e; }
.sfae-share--top .sfae-copied { min-block-size: 0; margin: 0 0 0 6px; font-size: 13.5px; color: #192f65; }
.sfae-share--top .sfae-copied:empty { display: none; }
@media (max-width: 760px) {
	html body .sfae-share.sfae-share--top { margin: 4px 0 0 -8px !important; flex-basis: 100%; }
	.sfae-share--top .sfae-top-l { margin-inline-start: 8px; }
	html body .sfae-share.sfae-share--top .sfae-sbtn { inline-size: 44px; block-size: 44px; }
}
/* the 字級 line was only as wide as its contents, so the share icons could not sit at its right end */
.sfa-tools:has(> .sfae-share--top) { flex: 1 1 100%; }
.sfae-share--top .sfae-top-l { line-height: 36px; }
@media (max-width: 760px) { .sfae-share--top .sfae-top-l { line-height: 44px; } }

.sfae-share--top .sfae-email { --c: #5c636e; }
.sfae-share--top .sfae-print { --c: #5c636e; }

/* 2026-11-25 列印: print only the article - headline, date, photos, text and photo captions */
@media print {
	@page { margin: 16mm 14mm; }
	html body { background: #fff !important; }
	.sfhd, .sfhd-mini, .sfhd-drawer, header.header, .sff, footer, .sfa-side, .sfa-ad, .sfa-isc, .ads-side, .sfa-tools, .sfae-share, .share-single,
	.sfa-related, .sfa-more, .sfae-pn, .sfae-react, .sfae-cmt, #comments, .comments-area, .sfw-engage, .sfw-box, .sfw-pop, .pri-inline-ad, .sfa-crumbs, nav,
	.a11yw-toggle, [class*="a11yw"], #sfask-btn, #backtotop, #sfcc, iframe, video { display: none !important; }
	main.sfa .sfa-grid, main.sfa .sfa-wrap { display: block !important; max-inline-size: none !important; padding: 0 !important; }
	main.sfa .sfa-art { inline-size: auto !important; max-inline-size: none !important; }
	main.sfa h1 { font-size: 22pt !important; line-height: 1.35 !important; color: #000 !important; }
	main.sfa .post_content, main.sfa .post_content p { font-size: 12pt !important; line-height: 1.7 !important; color: #000 !important; }
	main.sfa img { max-inline-size: 100% !important; block-size: auto !important; break-inside: avoid; }
	main.sfa figure, main.sfa .sfa-lead { break-inside: avoid; }
	main.sfa a { color: #000 !important; text-decoration: none !important; }
	main.sfa .post_content::after { content: "金山紀元 sf.epochtimes.com"; display: block; margin-top: 12pt; font-size: 9pt; color: #555; }
}

/* 2026-11-25 phones: one line only (user: 不想要第二行) - no 字級/分享 labels, 34px buttons, X + Email folded into
   更多 (the phone's share sheet) where the phone has one */
.sfae-share--top .sfae-native { --c: #5c636e; }
@media (max-width: 760px) {
	.sfa-tools:has(> .sfae-share--top) { gap: 4px !important; }
	.sfa-tools:has(> .sfae-share--top.has-native) { flex-wrap: nowrap !important; }   /* phones without a share sheet keep X + Email and may wrap */
	.sfa-tools:has(> .sfae-share--top) .sfa-tool-l, .sfae-share--top .sfae-top-l { display: none !important; }
	.sfa-tools:has(> .sfae-share--top) :is(.sfa-fs, .sfa-zh a) { min-inline-size: 34px !important; min-block-size: 34px !important; block-size: 34px; padding: 0 8px !important; font-size: .9375rem !important; }
	html body .sfae-share.sfae-share--top { flex-basis: auto; margin: 0 -6px 0 auto !important; gap: 0; }
	html body .sfae-share.sfae-share--top.has-native { flex-wrap: nowrap; }
	html body .sfae-share.sfae-share--top .sfae-sbtn { inline-size: 34px; block-size: 34px; }
	html body .sfae-share.sfae-share--top .sfae-sbtn svg { inline-size: 19px; block-size: 19px; }
	.sfae-share--top.has-native .sfae-x, .sfae-share--top.has-native .sfae-email { display: none !important; }
	.sfae-share--top .sfae-copied { position: absolute; inset-inline-end: 16px; margin-block-start: 52px; padding: 2px 8px; background: #fff; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
}
@media (max-width: 760px) {
	.sfa-tools:has(> .sfae-share--top) :is(.sfa-fs, .sfa-zh, .sfa-zh a) { flex: none; white-space: nowrap; }
	.sfa-tools:has(> .sfae-share--top) :is(.sfa-fs, .sfa-zh a) { min-inline-size: 32px !important; min-block-size: 32px !important; block-size: 32px; padding: 0 7px !important; }
	html body .sfae-share.sfae-share--top .sfae-sbtn { inline-size: 32px; block-size: 32px; flex: none; }
}
@media (max-width: 400px) { .sfae-share--top.has-native .sfae-print { display: none !important; } }   /* narrowest phones: printing from a phone is rare */

/* ---- 2026-11-29 comment section restyle (user: rewrite the comment styling) ---------------------------------------
   Form: white box with a soft navy tint header line, 8px corners on fields and button (site rule: boxes 12-14, buttons
   6-8, no pills). List: plain editorial list, newest first, hairline rules, name / date / text; replies indented with a
   rule. No sort bar, votes or reply links (their scripts were gone). */
.sfae-cmt { margin: 44px 0 16px; padding: 18px 0 0; border-top: 3px solid #192f65; }
.sfae-cmt-h { margin-bottom: 18px; font-size: 26px; }
.sfae-cmt-n { font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif; font-size: 15px; padding: 2px 9px; border-radius: 6px; align-self: center; }
.sfae-cmt .comment-respond { padding: 22px 24px 24px; background: #f7f8fb; border: 1px solid #dfe3ec; border-radius: 12px; }
.sfae-cmt .comment-reply-title { margin: 0 0 4px; font-size: 19px; line-height: 1.4; color: #1d2230; }
.sfae-cmt-note, .sfae-cmt-who { font-size: 16px; color: #4b5260; }
.sfae-cmt-field label { font-size: 16px; }
.sfae-cmt-form textarea#blog_audience, .sfae-cmt-form input#author { border-radius: 8px; border-color: #aab3c4; font-size: 18px; line-height: 1.7; padding: 12px 14px; }
.sfae-cmt-form textarea#blog_audience { min-height: 140px; }
.sfae-cmt-form input#author { height: 48px; max-width: 340px; }
.sfae-cmt-meta { font-size: 15px; color: #565d6b; }
#commentArea .sfae-cmt-form .sfae-cmt-submit, #commentArea #submit.sfae-cmt-submit { height: 48px !important; padding: 0 30px !important; font-size: 17px !important; border-radius: 8px !important; }

#commentArea ol.sfae-clist, #commentArea ol.sfae-clist ol.children { list-style: none; margin: 0; padding: 0; }
#commentArea ol.sfae-clist { margin-top: 28px; border-top: 1px solid #dfe3ec; }
#commentArea .sfae-c { display: block; margin: 0; padding: 0; background: none; border: 0; float: none; width: auto; }
#commentArea .sfae-c::before { content: none; }
.sfae-c-in { padding: 18px 0 20px; border-bottom: 1px solid #dfe3ec; }
.sfae-c-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; margin: 0 0 8px; }
.sfae-c-name { font-size: 17px; font-weight: 700; line-height: 1.5; color: #192f65; overflow-wrap: anywhere; }
.sfae-c-time { font-size: 15px; line-height: 1.5; color: #5c6372; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sfae-c-text { font-size: 18px; line-height: 1.8; color: #1d2230; overflow-wrap: anywhere; }
#commentArea .sfae-c-text p { margin: 0 0 .7em; padding: 0; font-size: inherit; line-height: inherit; color: inherit; text-indent: 0; text-align: start; }
#commentArea .sfae-c-text p:last-child { margin-bottom: 0; }
.sfae-c-wait { margin: 10px 0 0 !important; padding: 8px 12px; font-size: 15px; line-height: 1.6; color: #6b4a00; background: #fff6da; border-radius: 8px; }
.sfae-c-foot { display: flex; align-items: center; gap: 16px; margin: 10px 0 0 !important; font-size: 15px; line-height: 1.5; color: #5c6372; }
.sfae-c-likes { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.sfae-c-likes svg { color: #8a93a6; }
.sfae-c-edit { color: #192f65; }
#commentArea ol.sfae-clist ol.children { margin-inline-start: 20px; padding-inline-start: 18px; border-inline-start: 3px solid #dfe3ec; }
#commentArea ol.children .sfae-c:last-child > .sfae-c-in { border-bottom: 0; }
#commentArea ol.sfae-clist > .sfae-c > ol.children { border-bottom: 1px solid #dfe3ec; }
@media (max-width: 800px) {
	.sfae-cmt-h { font-size: 23px; }
	.sfae-cmt .comment-respond { padding: 18px 16px 18px; }
	.sfae-cmt-form input#author { max-width: none; }
	.sfae-c-text { font-size: 17px; }
	#commentArea ol.sfae-clist ol.children { margin-inline-start: 4px; padding-inline-start: 14px; }
}

/* 2026-11-30 回覆 button + the form when it sits under a comment */
#commentArea .sfae-c-reply { display: inline-flex; align-items: center; gap: 6px; min-block-size: 36px; margin: 0; padding: 0 12px; font: inherit; font-size: 15px; font-weight: 700; line-height: 1; color: #192f65; background: #fff; border: 1px solid #c3cada; border-radius: 6px; cursor: pointer; }
#commentArea .sfae-c-reply:hover { background: #f0f3f9; border-color: #192f65; }
#commentArea .sfae-c-reply:focus-visible, #commentArea .sfae-c-cancel:focus-visible { outline: 3px solid #f8c623; outline-offset: 2px; }
.sfae-cmt .comment-respond.is-reply { position: relative; margin: 14px 0 22px; }
#commentArea ol.sfae-clist .comment-respond.is-reply + ol.children { margin-top: 0; }
#commentArea .sfae-c-cancel { position: absolute; inset-block-start: 18px; inset-inline-end: 20px; margin: 0; padding: 4px 2px; font: inherit; font-size: 15px; color: #192f65; background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#commentArea .sfae-c-cancel[hidden] { display: none; }
.sfae-cmt .comment-respond.is-reply .comment-reply-title { padding-inline-end: 96px; overflow-wrap: anywhere; }
@media (max-width: 800px) { #commentArea .sfae-c-cancel { inset-block-start: 14px; inset-inline-end: 14px; } }
