/* SF Reader Wall - rectangular controls, site navy #192f65 (no pill buttons). 2026-11-03 */

/* ---------- gating ---------- */
.sfw-cut, .sfw-locked > .sfw-box ~ * { display: none !important; }
.sfw-fade { position: relative; }
.sfw-fade::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4.5em; background: linear-gradient(rgba(255,255,255,0), #fff); pointer-events: none; }

/* ---------- sign-in box ----------
 * One 360px column (.sfw-col) holds Google button, divider, label, input, button, checkbox and messages,
 * so every left edge lines up. Selectors are prefixed with .sfw-box to beat the theme's `.post_content p`. */
.sfw-box { box-sizing: border-box; margin: 8px 0 28px; padding: 28px 24px 22px; background: #f5f5f3; border-top: 3px solid #192f65; font-family: inherit; color: #222; text-align: center; }
.sfw-box *, .sfw-box *::before, .sfw-box *::after { box-sizing: border-box; }
.sfw-box [hidden] { display: none !important; }
.sfw-box p, .sfw-box h2, .sfw-box h3, .sfw-box label { text-indent: 0 !important; letter-spacing: normal !important; }

.sfw-box .sfw-h { margin: 0 0 8px !important; font-size: 22px !important; line-height: 1.35 !important; font-weight: 700; color: #192f65; text-align: center !important; }
.sfw-box .sfw-sub { margin: 0 auto 22px !important; max-width: 440px; font-size: 15px !important; line-height: 1.65 !important; color: #444; text-align: center !important; }

.sfw-box .sfw-col { width: 100%; max-width: 360px; margin: 0 auto; text-align: left; }
.sfw-box .sfw-google { display: flex; justify-content: center; min-height: 44px; }
.sfw-box .sfw-or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: #777; font-size: 13px; }
.sfw-box .sfw-or::before, .sfw-box .sfw-or::after { content: ""; flex: 1; border-top: 1px solid #ccc; }
.sfw-box .sfw-email { margin: 0; padding: 0; }
.sfw-box .sfw-lbl { display: block; margin: 0 0 6px !important; font-size: 13px !important; line-height: 1.4; color: #444; }
.sfw-input, .sfw-account input[type=text], .sfw-account input[type=email] { display: block; width: 100%; height: 44px; margin: 0; padding: 0 12px; font-size: 16px; font-family: inherit; border: 1px solid #b5b5b5; border-radius: 3px; background: #fff; color: #222; }
.sfw-input:focus, .sfw-account input:focus { outline: 2px solid #192f65; outline-offset: 1px; border-color: #192f65; }

.sfw-btn { display: inline-block; height: 44px; padding: 0 20px; font-size: 16px; font-family: inherit; font-weight: 600; line-height: 42px; color: #fff; background: #192f65; border: 1px solid #192f65; border-radius: 3px; cursor: pointer; text-align: center; }
.sfw-btn:hover { background: #0f1f47; }
.sfw-btn:disabled { opacity: .6; cursor: default; }
.sfw-btn-line { color: #192f65; background: #fff; }
.sfw-btn-line:hover { background: #eef0f5; }
.sfw-btn-danger { background: #a1121f; border-color: #a1121f; }
.sfw-btn-danger:hover { background: #7d0e18; }
.sfw-box .sfw-email .sfw-btn { display: block; width: 100%; margin: 10px 0 0; }

.sfw-box .sfw-nl { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0 !important; font-size: 14px !important; line-height: 1.5; color: #333; text-align: left; cursor: pointer; }
.sfw-box .sfw-nl input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: #192f65; }
.sfw-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.sfw-box .sfw-msg { margin: 10px 0 0 !important; font-size: 14px !important; line-height: 1.6 !important; text-align: left; }
.sfw-box .sfw-msg:empty { display: none; }
.sfw-msg.sfw-ok { color: #1d5e2a; }
.sfw-msg.sfw-bad { color: #a1121f; }

.sfw-box .sfw-fine { margin: 18px auto 0 !important; max-width: 360px; font-size: 12.5px !important; line-height: 1.6 !important; color: #666; text-align: center !important; }
.sfw-fine a, .sfw-signed a { color: #192f65; text-decoration: underline; }

/* step 2: link sent */
.sfw-box .sfw-step-sent { text-align: center; }
.sfw-box .sfw-sent-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin: 0 0 12px; color: #192f65; background: #fff; border: 1px solid #d6dae4; border-radius: 4px; }
.sfw-box .sfw-sent-h { margin: 0 0 10px !important; font-size: 19px !important; line-height: 1.4; font-weight: 700; color: #192f65; outline: none; }
.sfw-box .sfw-sent-p { margin: 0 0 10px !important; font-size: 15px !important; line-height: 1.65 !important; color: #444; text-align: center !important; }
.sfw-box .sfw-sent-em { color: #222; word-break: break-all; }
.sfw-box .sfw-sent-actions { margin: 14px 0 0 !important; font-size: 14px !important; color: #999; text-align: center !important; }
.sfw-box .sfw-sent-actions span { margin: 0 8px; }
.sfw-link { padding: 0; font: inherit; font-size: 14px; color: #192f65; background: none; border: 0; text-decoration: underline; cursor: pointer; }
.sfw-link:hover { color: #0f1f47; }
.sfw-link:disabled { opacity: .5; cursor: default; }
.sfw-box .sfw-sent-msg { text-align: center; }

.sfw-signed { margin: 12px 0 0; font-size: 13px !important; color: #666; }

/* ---------- /account page ---------- */
.sfw-account-wrap { padding: 32px 15px 48px; }
.sfw-account { max-width: 640px; margin: 0 auto; color: #222; }
.sfw-title { margin: 0 0 16px; font-size: 28px; font-weight: 700; color: #192f65; border-bottom: 1px solid #ddd; padding-bottom: 12px; }
.sfw-lead { font-size: 16px; color: #444; margin: 0 0 20px; }
.sfw-notice { padding: 12px 14px; background: #fdf3f3; border-left: 3px solid #a1121f; color: #7d0e18; }
.sfw-account .sfw-box { margin: 0 !important; padding: 0; background: none; border-top: 0; text-align: left; max-width: 360px; }
.sfw-account .sfw-box .sfw-col, .sfw-account .sfw-box .sfw-fine { margin-left: 0 !important; }
.sfw-account .sfw-box .sfw-fine { text-align: left !important; }
.sfw-account .sfw-box .sfw-google { justify-content: flex-start; }
.sfw-account .sfw-box .sfw-step-sent, .sfw-account .sfw-box .sfw-sent-p, .sfw-account .sfw-box .sfw-sent-actions, .sfw-account .sfw-box .sfw-sent-msg { text-align: left !important; }
.sfw-account form { margin-left: 0 !important; padding-left: 0 !important; }
.sfw-form { max-width: 420px; }
.sfw-row { margin: 0 0 16px; }
.sfw-row label { display: block; margin: 0 0 4px; font-size: 14px; color: #444; }
.sfw-account input[readonly], .sfw-account input:disabled { background: #f2f2f2; color: #555; }
.sfw-check label { font-size: 15px; color: #222; cursor: pointer; }
.sfw-meta { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 20px; font-size: 14px; }
.sfw-meta dt { color: #666; }
.sfw-meta dd { margin: 0; }
.sfw-section { margin-top: 32px; padding-top: 20px; border-top: 1px solid #ddd; }
.sfw-section h2 { margin: 0 0 8px; font-size: 18px; color: #222; }
.sfw-section p { font-size: 14px; color: #444; }
.sfw-section .sfw-btn { margin: 0 8px 8px 0; }
.sfw-form .sfw-msg { margin-left: 8px; font-size: 14px; }

@media (max-width: 600px) {
	.sfw-box { padding: 22px 16px 18px; }
	.sfw-box .sfw-h { font-size: 20px !important; }
	.sfw-account-wrap { padding-top: 20px; }
}

/* ---------- site dialog (replaces browser alert/confirm) ---------- */
html.sfw-dlg-open { overflow: hidden; }
.sfw-dlg-backdrop { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(14, 22, 44, .55); opacity: 0; transition: opacity .15s ease; }
.sfw-dlg-backdrop.sfw-in { opacity: 1; }
.sfw-dlg { box-sizing: border-box; width: 100%; max-width: 440px; background: #fff; border-top: 4px solid #192f65; border-radius: 4px; box-shadow: 0 18px 48px rgba(0,0,0,.28); padding: 24px 24px 20px; font-family: inherit; color: #222; transform: translateY(8px); transition: transform .15s ease; text-align: left; }
.sfw-dlg-backdrop.sfw-in .sfw-dlg { transform: none; }
.sfw-dlg-error { border-top-color: #a1121f; }
.sfw-dlg-title { margin: 0 0 10px; font-size: 19px; line-height: 1.4; font-weight: 700; color: #192f65; }
.sfw-dlg-error .sfw-dlg-title { color: #a1121f; }
.sfw-dlg-body { margin: 0 0 22px; font-size: 15px; line-height: 1.7; color: #444; }
.sfw-dlg-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.sfw-dlg-actions .sfw-btn { min-width: 96px; margin: 0; }
.sfw-dlg .sfw-btn:focus-visible { outline: 2px solid #192f65; outline-offset: 2px; }
.sfw-dlg .sfw-btn-danger:focus-visible { outline-color: #a1121f; }
@media (max-width: 480px) {
	.sfw-dlg-backdrop { align-items: flex-end; padding: 0; }
	.sfw-dlg { max-width: none; border-radius: 4px 4px 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); }
	.sfw-dlg-actions { flex-direction: column-reverse; }
	.sfw-dlg-actions .sfw-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .sfw-dlg-backdrop, .sfw-dlg { transition: none; } }

/* /account: make the page a full-height column so the footer sits at the bottom of the viewport
   (the theme's <body> has no class; :has() only matches the account template). */
body:has(> .sfw-account-wrap) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; margin: 0; }
body:has(> .sfw-account-wrap) > header, body:has(> .sfw-account-wrap) > footer { flex: none; width: 100%; }
body:has(> .sfw-account-wrap) > .sfw-account-wrap { flex: 1 0 auto; width: 100%; max-width: 1000px; margin-left: auto; margin-right: auto; box-sizing: border-box; }

/* /account alignment pass: one 400px column for signed-out and signed-in states */
.sfw-account .sfw-box, .sfw-account .sfw-box .sfw-col, .sfw-account .sfw-box .sfw-fine, .sfw-account .sfw-form { max-width: 400px !important; }
.sfw-account .sfw-lead { margin: 0 0 22px; font-size: 16px; line-height: 1.6; }
.sfw-account .sfw-row { margin: 0 0 18px; }
.sfw-account .sfw-row label { margin: 0 0 6px; font-size: 13px; line-height: 1.4; }
.sfw-account .sfw-check { margin: 0 0 20px; }
.sfw-account .sfw-check label { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 14px; line-height: 1.5; color: #333; }
.sfw-account .sfw-check input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: #192f65; }
.sfw-account .sfw-meta { margin: 0 0 24px; padding: 14px 0 0; border-top: 1px solid #eee; font-size: 14px; line-height: 1.5; }
.sfw-account .sfw-form p { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0; }
.sfw-account .sfw-form .sfw-msg { margin: 0; }
.sfw-account .sfw-section { margin-top: 36px; padding-top: 24px; }
.sfw-account .sfw-section h2 { margin: 0 0 10px; font-size: 17px; line-height: 1.4; font-weight: 700; color: #222; }
.sfw-account .sfw-section p { margin: 0 0 14px; font-size: 14px; line-height: 1.6; color: #555; max-width: 400px; }
.sfw-account .sfw-section p:last-child { margin-bottom: 0; }
.sfw-account .sfw-section .sfw-btn { margin: 0 10px 10px 0; }
.sfw-account > .sfw-fine { margin: 40px 0 0; padding-top: 18px; border-top: 1px solid #eee; font-size: 13px; line-height: 1.7; color: #777; }
.sfw-account > .sfw-fine a { color: #192f65; }
@media (max-width: 600px) {
	.sfw-account .sfw-title { font-size: 24px; }
	.sfw-account .sfw-section .sfw-btn { width: 100%; margin: 0 0 10px; }
	.sfw-account .sfw-form p .sfw-btn { width: 100%; }
}

.sfw-account .sfw-box form, .sfw-account .sfw-box .sfw-fine, .sfw-account .sfw-box .sfw-col { border: 0 !important; box-shadow: none !important; }

/* reCAPTCHA v3: badge hidden, required notice shown in the box instead */
.grecaptcha-badge { visibility: hidden !important; }
.sfw-box .sfw-rc-note { margin-top: 6px !important; font-size: 11.5px !important; color: #888; }

/* theme gives every <p> 20px bottom padding; none inside the box */
.sfw-box p { padding: 0 !important; }
.sfw-box .sfw-sub { margin-bottom: 22px !important; }

/* /account signed out (login): centred heading, intro, column and notes; labels stay left over their field */
.sfw-account:has(#sfw-signin) { max-width: 460px; text-align: center; }
.sfw-account:has(#sfw-signin) .sfw-title { text-align: center; }
.sfw-account:has(#sfw-signin) .sfw-lead { text-align: center; }
.sfw-account:has(#sfw-signin) .sfw-notice { text-align: left; }
.sfw-account #sfw-signin .sfw-box { margin: 0 auto !important; }
.sfw-account #sfw-signin .sfw-box .sfw-col { margin: 0 auto !important; }
.sfw-account #sfw-signin .sfw-box .sfw-google { justify-content: center; }
.sfw-account #sfw-signin .sfw-box .sfw-email { text-align: left; }
.sfw-account #sfw-signin .sfw-box .sfw-nl { justify-content: center; }
.sfw-account #sfw-signin .sfw-box .sfw-msg { text-align: center; }
.sfw-account #sfw-signin .sfw-box .sfw-fine { margin-left: auto !important; margin-right: auto !important; text-align: center !important; }
.sfw-account #sfw-signin .sfw-box .sfw-step-sent,
.sfw-account #sfw-signin .sfw-box .sfw-sent-p,
.sfw-account #sfw-signin .sfw-box .sfw-sent-actions,
.sfw-account #sfw-signin .sfw-box .sfw-sent-msg { text-align: center !important; }

/* /account signed in: profile card (Google photo or initial, name, email, sign-in method) */
.sfw-profile-card { display: flex; align-items: center; gap: 16px; max-width: 400px; margin: 0 0 26px; padding: 16px; background: #f5f6f8; border: 1px solid #e3e6ec; border-radius: 4px; }
.sfw-avatar { flex: none; display: block; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #dfe3ec; }
.sfw-avatar-init { display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; color: #fff; background: #192f65; }
.sfw-pc-text { min-width: 0; }
.sfw-pc-name { font-size: 18px; font-weight: 700; line-height: 1.35; color: #192f65; overflow-wrap: anywhere; }
.sfw-pc-email { margin-top: 2px; font-size: 14px; line-height: 1.5; color: #444; overflow-wrap: anywhere; }
.sfw-pc-via { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; color: #666; }
@media (max-width: 600px) { .sfw-profile-card { gap: 12px; padding: 14px; } .sfw-avatar { width: 56px; height: 56px; } }

/* ---------- unlock animation ---------- */
.sfw-fade::after { transition: opacity .5s ease; }
.sfw-fade.sfw-fade-out::after { opacity: 0; }
.sfw-box.sfw-done { display: flex; align-items: center; justify-content: center; transition: background-color .3s ease; }
.sfw-done-in { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; animation: sfw-pop .35s ease both; }
.sfw-done-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 4px; color: #fff; background: #1d6b3a; border-radius: 50%; animation: sfw-pop .35s .05s cubic-bezier(.2,1.4,.4,1) both; }
.sfw-done-in strong { font-size: 19px; color: #192f65; }
.sfw-done-in span:last-child { font-size: 14px; color: #555; }
.sfw-box.sfw-collapse { transition: height .55s cubic-bezier(.4,0,.2,1), opacity .4s ease, margin .55s cubic-bezier(.4,0,.2,1), padding .55s cubic-bezier(.4,0,.2,1), border-width .55s ease; opacity: 0; margin-top: 0 !important; margin-bottom: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; border-top-width: 0 !important; }
.sfw-reveal { animation: sfw-reveal .5s ease both; }
@keyframes sfw-reveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes sfw-pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sfw-reveal, .sfw-done-in, .sfw-done-icon { animation: none; } .sfw-box.sfw-collapse, .sfw-fade::after { transition: none; } }

/* ---------- /account signed in: balanced settings layout (2026-11-03) ----------
 * One centred 680px column: full-width profile header, then panels that use the full width.
 * Inside panels, labels sit in a fixed left column and controls fill the rest, so no dead space on the right. */
.sfw-account.sfw-acct-in { max-width: 680px; }
.sfw-acct-in .sfw-title { margin-bottom: 20px; }
.sfw-acct-in .sfw-pc { display: flex; align-items: center; gap: 18px; margin: 0 0 20px; padding: 20px 22px; background: #f5f6f8; border: 1px solid #e3e6ec; border-top: 3px solid #192f65; border-radius: 4px; }
.sfw-acct-in .sfw-avatar { width: 72px; height: 72px; }
.sfw-acct-in .sfw-pc-text { flex: 1; min-width: 0; }
.sfw-acct-in .sfw-pc-name { font-size: 20px; }
.sfw-acct-in .sfw-pc-out { flex: none; height: 38px; line-height: 36px; padding: 0 16px; font-size: 15px; margin: 0; }

.sfw-acct-in .sfw-panel { display: block; max-width: none !important; margin: 0 0 16px; padding: 4px 22px 18px; background: #fff; border: 1px solid #e3e6ec; border-radius: 4px; }
.sfw-acct-in .sfw-panel-h { margin: 0 -22px 4px; padding: 14px 22px 12px; font-size: 16px; font-weight: 700; line-height: 1.4; color: #222; border-bottom: 1px solid #eef0f3; }
.sfw-acct-in .sfw-field { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 8px 20px; padding: 14px 0; border-bottom: 1px solid #f1f2f5; }
.sfw-acct-in .sfw-field:last-of-type { border-bottom: 0; }
.sfw-acct-in .sfw-field-l { margin: 0; font-size: 14px; line-height: 1.4; color: #666; }
.sfw-acct-in .sfw-field-c { min-width: 0; }
.sfw-acct-in .sfw-field-v { font-size: 15px; color: #222; }
.sfw-acct-in .sfw-field-c input[type=text] { max-width: 100%; }
.sfw-acct-in .sfw-opt { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 15px; line-height: 1.5; color: #222; cursor: pointer; }
.sfw-acct-in .sfw-opt input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #192f65; }
.sfw-acct-in .sfw-opt small { display: block; margin-top: 2px; font-size: 13px; color: #777; }
.sfw-acct-in .sfw-panel-foot { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin: 4px -22px -18px; padding: 14px 22px; background: #fafbfc; border-top: 1px solid #eef0f3; border-radius: 0 0 4px 4px; }
.sfw-acct-in .sfw-panel-foot .sfw-btn { margin: 0; }
.sfw-acct-in .sfw-panel-foot .sfw-msg { margin: 0; font-size: 14px; }
.sfw-acct-in .sfw-split { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0 0; }
.sfw-acct-in .sfw-split p { flex: 1; margin: 0; font-size: 14px; line-height: 1.65; color: #555; }
.sfw-acct-in .sfw-split .sfw-btn { flex: none; margin: 0; }
.sfw-acct-in .sfw-panel-danger { border-color: #f0d6d9; border-left: 3px solid #a1121f; }
.sfw-acct-in .sfw-panel-danger .sfw-panel-h { color: #a1121f; }
.sfw-acct-in .sfw-acct-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 20px; margin: 26px 0 0; font-size: 13px; }
.sfw-acct-in .sfw-acct-links a { color: #666; text-decoration: underline; }
.sfw-acct-in .sfw-acct-links a:hover { color: #192f65; }

@media (max-width: 600px) {
	.sfw-acct-in .sfw-pc { flex-wrap: wrap; gap: 14px; padding: 16px; }
	.sfw-acct-in .sfw-avatar { width: 56px; height: 56px; }
	.sfw-acct-in .sfw-pc-out { width: 100%; }
	.sfw-acct-in .sfw-panel { padding: 4px 16px 16px; }
	.sfw-acct-in .sfw-panel-h { margin: 0 -16px 4px; padding: 12px 16px 10px; }
	.sfw-acct-in .sfw-field { grid-template-columns: 1fr; gap: 6px; }
	.sfw-acct-in .sfw-panel-foot { margin: 4px -16px -16px; padding: 12px 16px; flex-wrap: wrap; }
	.sfw-acct-in .sfw-panel-foot .sfw-btn { width: 100%; }
	.sfw-acct-in .sfw-split { flex-direction: column; align-items: stretch; gap: 12px; }
	.sfw-acct-in .sfw-split .sfw-btn { width: 100%; }
}
.sfw-account.sfw-acct-in form.sfw-panel { padding-left: 22px !important; padding-right: 22px !important; }
.sfw-acct-in .sfw-field:has(+ .sfw-panel-foot) { border-bottom: 0; }
@media (max-width: 600px) { .sfw-account.sfw-acct-in form.sfw-panel { padding-left: 16px !important; padding-right: 16px !important; } }

/* ---------- 管理電子報 card (one newsletter; layout follows HQ's portal, square-cornered buttons) ---------- */
.sfw-acct-in .sfw-nl-panel { padding-bottom: 22px; }
.sfw-nlcard { display: grid; grid-template-columns: 240px 1fr; gap: 0; margin-top: 18px; overflow: hidden; background: #fff; border: 1px solid #e3e6ec; border-radius: 4px; box-shadow: 0 1px 3px rgba(16, 24, 40, .06); }
.sfw-nlcard-img { position: relative; min-height: 100%; background: #192f65; }
.sfw-nlcard-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.sfw-nlcard-banner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #fff; background: radial-gradient(circle at 25% 20%, #2b4a8f 0, #192f65 55%, #101f45 100%); }
.sfw-nlcard-banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: #f8c623; }
.sfw-nlcard-banner img { width: 130px; height: auto; display: block; }
.sfw-nlcard-banner span { font-size: 22px; font-weight: 700; letter-spacing: .12em; }
.sfw-nlcard-banner small { font-size: 11px; letter-spacing: .3em; color: #f8c623; }
.sfw-nlcard-body { padding: 20px 22px; min-width: 0; }
.sfw-nlcard-label { font-size: 13px; color: #888; margin: 0 0 4px; }
.sfw-acct-in .sfw-nlcard-title { margin: 0 0 8px; font-size: 20px; line-height: 1.35; font-weight: 700; color: #111; }
.sfw-acct-in .sfw-nlcard-desc { margin: 0 0 18px; font-size: 15px; line-height: 1.7; color: #444; }
.sfw-nlcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sfw-nl-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 120px; margin: 0; }
.sfw-nl-toggle .sfw-nl-on { display: none; align-items: center; gap: 6px; }
.sfw-nl-toggle[aria-pressed="true"] .sfw-nl-on { display: inline-flex; }
.sfw-nl-toggle[aria-pressed="true"] .sfw-nl-off { display: none; }
.sfw-nl-toggle[aria-pressed="false"] { color: #192f65; background: #fff; }
.sfw-nl-toggle[aria-pressed="false"]:hover { background: #eef0f5; }
.sfw-nl-toggle.is-busy { opacity: .6; cursor: progress; }
.sfw-nlcard-preview { font-size: 15px; font-weight: 600; color: #192f65; text-decoration: none; border-bottom: 1px solid currentColor; }
.sfw-nlcard-preview:hover { color: #0f1f47; }
.sfw-acct-in .sfw-nlcard-msg { margin: 10px 0 0; font-size: 13.5px; }
.sfw-acct-in .sfw-nlcard-msg:empty { display: none; }
@media (max-width: 600px) {
	.sfw-nlcard { grid-template-columns: 1fr; }
	.sfw-nlcard-img { min-height: 0; aspect-ratio: 16 / 9; }
	.sfw-nlcard-body { padding: 16px; }
}

/* 管理電子報 card: vertical like HQ's portal; a real banner keeps its own shape (no cropping of its text) */
.sfw-nlcard { grid-template-columns: 1fr; }
.sfw-nlcard-img { min-height: 0; background: #22357f; }
.sfw-nlcard-img > img { position: static; width: 100%; height: auto; object-fit: initial; }
.sfw-nlcard-img:has(.sfw-nlcard-banner) { aspect-ratio: 16 / 5; }
.sfw-nlcard-body { padding: 20px 22px 22px; }


/* 管理電子報 card image: the real banner, full card width, natural shape on every screen (no crop, no forced box) */
.sfw-nlcard-img.has-img { aspect-ratio: auto !important; min-height: 0 !important; background: none; line-height: 0; border-bottom: 1px solid #e3e6ec; }
.sfw-nlcard-img.has-img > img { position: static; display: block; width: 100%; height: auto; object-fit: initial; }
.sfw-nlcard-img:not(.has-img) { aspect-ratio: 16 / 5; }
@media (max-width: 600px) { .sfw-nlcard-img:not(.has-img) { aspect-ratio: 16 / 6; } }
