/*  article-blue - 老麥文章樣式(prosilver 子樣式)
    只改文章頁(body.section-viewtopic),其他頁面維持 prosilver 原樣。
    -------------------------------------------------------------- */

@import url("../../prosilver/theme/stylesheet.css");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700&family=Noto+Serif+TC:wght@600;900&display=swap");

:root{
  --m-bg:#e9f1f8; --m-paper:#fbfaf6; --m-ink:#1d2b3a; --m-muted:#53657a; --m-accent:#2f6fa8; --m-line:#c5d5e5;
  --m-note:#fff7d6; --m-note-ink:#4a3d0a; --m-frame:#fdfcf8; --m-shadow:rgba(29,43,58,.18);
  --m-serif:"Noto Serif TC","Songti TC","PMingLiU",serif;
  --m-sans:"Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;
}
@media (prefers-color-scheme:dark){
  :root{
    --m-bg:#101a26; --m-paper:#172433; --m-ink:#e6eef6; --m-muted:#9db0c4; --m-accent:#7db7ea; --m-line:#2c3f54;
    --m-note:#3a3414; --m-note-ink:#f3e7a8; --m-shadow:rgba(0,0,0,.5);
  }
}

/* ---------- 頁面外框(全站套用此樣式的頁面皆適用) ---------- */
:root{--m-wrap:1000px;--m-fs:19px;--m-read:100%;--m-hot:#e5421f;--m-head-a:#ffffff;--m-head-b:#fff3ec;--m-logo:url("https://www.mydc.com.tw/styles/lmrepair/theme/images/laomai-mark.png")}
@media (prefers-color-scheme:dark){:root{--m-head-a:#1b2a3b;--m-head-b:#2a2530;--m-hot:#ff7a5c}}
html{background:var(--m-bg)}
html body{background:var(--m-bg);color:var(--m-ink);font-family:var(--m-sans);margin:0;padding:0 0 env(safe-area-inset-bottom,0)}
body #wrap{max-width:var(--m-wrap);width:auto;background:transparent;border:0;border-radius:0;box-shadow:none;margin:0 auto;padding:20px 28px 0;min-width:0}
body a{color:var(--m-accent)}

/* 頁首:圓角卡片 + 標誌 + 站名 + 副標 + 搜尋 */
body .headerbar{background:linear-gradient(135deg,var(--m-head-a) 0%,var(--m-head-b) 100%);color:var(--m-ink);border-radius:24px;box-shadow:0 8px 28px var(--m-shadow);margin:0;padding:14px 24px}
body .headerbar .inner{display:flex;align-items:center;justify-content:space-between;gap:16px}
body .site-description{float:none;width:auto;display:grid;grid-template-columns:auto 1fr;column-gap:14px;align-items:center}
body .site-description .logo{grid-row:1 / span 2;float:none;padding:0;margin:0;display:block}
body .site-description .site_logo{display:block;width:56px;height:56px;background:var(--m-logo) center/contain no-repeat}
body .site-description h1{grid-column:2;font-family:var(--m-sans);font-size:26px;font-weight:700;line-height:1.25;margin:0;color:var(--m-ink)}
body .site-description > p:not(.skiplink){grid-column:2;margin:2px 0 0;font-size:13px;color:var(--m-muted)}
body .search-header{float:none;margin:0;border-radius:18px;box-shadow:none;background:var(--m-paper);border:0}

/* 主選單 */
body .mai-nav{display:flex;flex-wrap:wrap;gap:6px 28px;padding:18px 6px 8px;font-size:15px;font-weight:700}
body .mai-nav a{color:var(--m-ink);text-decoration:none}
body .mai-nav a:hover{color:var(--m-accent)}
body .mai-nav .mai-nav-hot{margin-left:auto;color:var(--m-hot)}

/* prosilver 原有的快速連結/麵包屑列:縮小、去底色 */
body .navbar{background:transparent;border-radius:0;padding:0;border-bottom:1px solid var(--m-line)}
body .navbar *{color:var(--m-muted)}
body .navbar a:hover{color:var(--m-accent);text-decoration:none}
body #page-footer .navbar{border-bottom:0;border-top:1px solid var(--m-line);margin-top:48px}
body .copyright{color:var(--m-muted);font-size:12px;padding:12px 0 24px}

@media (max-width:640px){
  :root{--m-fs:18px}
  body #wrap{padding:14px 14px 0}
  body .headerbar{padding:12px 16px;border-radius:18px}
  body .site-description h1{font-size:21px}
  body .mai-nav{gap:6px 18px}
  body .mai-nav .mai-nav-hot{margin-left:0}
}

/* ---------- 文章標題 ---------- */
body.section-viewtopic h2.topic-title,body.section-viewtopic .post{max-width:var(--m-read);margin-left:auto;margin-right:auto}
body.section-viewtopic h2.topic-title{font-family:var(--m-serif);font-size:clamp(28px,6.2vw,42px);font-weight:900;line-height:1.35;letter-spacing:.01em;color:var(--m-ink);margin:36px 0 4px;padding:0;border:0}
body.section-viewtopic h2.topic-title a{color:inherit}
body.section-viewtopic h2.topic-title a:hover{text-decoration:none}

/* ---------- 文章本體 ---------- */
body.section-viewtopic .post{background:transparent;border:0;border-radius:0;box-shadow:none;margin:0;padding:0}
body.section-viewtopic .post .inner{padding:0}
body.section-viewtopic .postbody{float:none;width:auto;max-width:none;padding:0;color:var(--m-ink)}
body.section-viewtopic .postbody h3{font-family:var(--m-serif);font-size:calc(var(--m-fs) * 1.3);border:0;margin:40px 0 4px;padding:0;text-transform:none}
body.section-viewtopic .postbody h3 a{color:var(--m-ink)}
body.section-viewtopic .art-meta{margin:6px 0 0;color:var(--m-muted);font-size:15px;line-height:1.6}
body.section-viewtopic .art-by{margin-right:.6em;font-weight:700}
body.section-viewtopic .postbody .content{font-family:var(--m-sans);font-size:var(--m-fs);line-height:1.9;color:var(--m-ink);min-height:0;overflow:visible;padding:8px 0 0}
body.section-viewtopic .postbody .content a{color:var(--m-accent)}
body.section-viewtopic .postbody ul.post-buttons{opacity:.55;margin:0}
body.section-viewtopic .postbody ul.post-buttons:hover{opacity:1}
body.section-viewtopic .postbody .notice,
body.section-viewtopic .signature{color:var(--m-muted);border-color:var(--m-line)}
body.section-viewtopic .art-foot{background:transparent;border:0;margin:32px auto 0;max-width:var(--m-read)}

/* ---------- 自訂 BBCode 元件 ---------- */
.content .art-h2{color:var(--m-ink);border-bottom:0;font-family:var(--m-serif);font-size:calc(var(--m-fs) * 1.5);font-weight:600;line-height:1.35;margin:56px 0 0;padding-top:20px;border-top:2px solid var(--m-line)}
.content .art-lead{font-size:calc(var(--m-fs) + 2px);color:var(--m-muted);margin:16px 0 0}
.content .art-film{margin:24px auto;max-width:320px;background:var(--m-frame);padding:12px 12px 0;border-radius:3px;box-shadow:0 6px 18px var(--m-shadow)}
.content .art-film img{display:block;width:100%;height:auto;margin:0;border:0}
.content .art-film > figcaption{padding:12px 4px 14px;font-size:calc(var(--m-fs) - 3px);line-height:1.6;color:#4b5a6a;min-height:44px}
/* 1.0.9: the video attachment extension adds its own empty caption under the player; inside article frames the article caption follows instead. */
.content .art-film .attachmentvideo-caption,.content .art-diagram .attachmentvideo-caption{display:none}
.content .art-film .attachmentvideo{margin:0}
.content .art-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:24px 0;align-items:start}
.content .art-pair .art-film{margin:0 auto;max-width:360px;width:100%}
.content .art-pair .art-film:nth-child(odd){transform:rotate(-1deg)}
.content .art-pair .art-film:nth-child(even){transform:rotate(1deg)}
.content .art-diagram{margin:26px 0;background:#fff;border:1px solid var(--m-line);border-radius:4px;padding:10px}
.content .art-diagram img{display:block;width:100%;height:auto;margin:0;border:0}
.content .art-diagram > figcaption{color:#3d4d5e;font-size:calc(var(--m-fs) - 3px);line-height:1.6;padding:8px 6px 4px}
.content .art-note{background:var(--m-note);color:var(--m-note-ink);padding:18px 20px;border-radius:2px;margin:0}
.content .art-verdict{background:var(--m-paper);border-left:6px solid var(--m-accent);padding:16px 20px;margin:24px 0;font-weight:500}
.content .art-card{background:var(--m-paper);padding:14px 16px;border-radius:4px}
.content .art-pair > .art-note,.content .art-pair > .art-card{align-self:center}

/* [list=1] 做成圓形編號 */
.content ol,.content ol li{list-style:none !important}
.content ol{counter-reset:m;padding:0;margin:20px 0}
.content ol li{counter-increment:m;position:relative;padding:12px 0 12px 48px;border-bottom:1px solid var(--m-line);margin:0}
.content ol li::before{content:counter(m);position:absolute;left:0;top:12px;width:32px;height:32px;border-radius:50%;background:var(--m-accent);color:var(--m-bg);display:grid;place-items:center;font-weight:700;font-size:15px;line-height:1}

/* 區塊元件後面 phpBB 自動補的換行不要顯示 */
.content .art-h2 + br,.content .art-lead + br,.content figure + br,
.content .art-pair + br,.content .art-note + br,.content .art-verdict + br,.content .art-card + br,
.content .art-pair > br{display:none}

@media (max-width:480px){
  .content .art-pair{grid-template-columns:minmax(0,1fr)}
  body.section-viewtopic #wrap{padding:0 14px}
}

/* ---------- 內嵌附件版元件:[afilm] / [adiagram](圖片用 [attachment=N] 放在標籤裡) ---------- */
.content .art-att{font-size:calc(var(--m-fs) - 3px);line-height:1.6}
.content .art-film.art-att{padding:12px 12px 14px;color:#4b5a6a}
.content .art-diagram.art-att{color:#3d4d5e}
.content .art-att .inline-attachment{margin:0 0 10px;padding:0}
.content .art-att .inline-attachment dl,
.content .art-att .inline-attachment dl.thumbnail,
.content .art-att .inline-attachment dl.file{margin:0;padding:0;border:0;background:transparent;box-shadow:none;float:none;width:auto;max-width:none}
.content .art-att .inline-attachment dl dt{display:block;float:none;width:auto;margin:0;padding:0;border:0;background:transparent}
.content .art-att .inline-attachment dl dd{display:none}
.content .art-att .inline-attachment img,
.content .art-att .inline-attachment img.postimage{display:block;width:100%;max-width:100%;height:auto;max-height:none;margin:0;padding:0;border:0;background:transparent}
.content .art-att br{display:none}

/* [stack]:讓 [pair] 的一欄可放多個區塊(例如便利貼 + 結論框) */
.content .art-stack{display:flex;flex-direction:column;gap:16px;align-self:center;min-width:0}
.content .art-stack > br{display:none}
.content .art-stack .art-verdict{margin:0}
.content .art-stack + br{display:none}

/* ================= 版區列表(viewforum):文章卡片目錄 ================= */
body.section-viewforum h2.forum-title{font-family:var(--m-serif);font-size:clamp(28px,6.2vw,42px);font-weight:900;line-height:1.35;color:var(--m-ink);max-width:var(--m-read);margin:36px auto 6px;padding:0;border:0}
body.section-viewforum h2.forum-title a{color:inherit}
body.section-viewforum h2.forum-title a:hover{text-decoration:none}
body.section-viewforum .art-forum-desc{max-width:var(--m-read);margin:0 auto 8px;color:var(--m-muted);font-size:calc(var(--m-fs) - 1px);line-height:1.8}
.art-list{list-style:none;margin:24px auto 0;padding:0;max-width:var(--m-read)}
.art-item{background:var(--m-paper);border-radius:16px;box-shadow:0 4px 16px var(--m-shadow);padding:22px 28px;margin:0 0 16px;border-left:6px solid transparent;transition:transform .15s ease,box-shadow .15s ease}
.art-item:hover{transform:translateY(-2px);box-shadow:0 8px 24px var(--m-shadow)}
.art-item.is-unread{border-left-color:var(--m-accent)}
.art-item.reported{border-left-color:var(--m-hot)}
.art-item-title{margin:0;padding:0;border:0;font-family:var(--m-serif);font-size:calc(var(--m-fs) * 1.35);font-weight:600;line-height:1.45;text-transform:none}
.art-item-title a.topictitle{color:var(--m-ink);font-family:inherit;font-size:inherit;font-weight:inherit;text-decoration:none}
.art-item-title a.topictitle:hover{color:var(--m-accent)}
.art-item-meta{margin:8px 0 0;font-size:15px;color:var(--m-muted)}
.art-item-meta a{color:var(--m-muted)}
.art-badge{display:inline-block;margin-right:8px;padding:0 10px;border-radius:999px;background:var(--m-accent);color:var(--m-bg);font-size:13px;font-weight:700;line-height:22px;text-decoration:none}
.art-badge-new{background:var(--m-hot);color:#fff}
body.section-viewforum .art-foot{background:transparent;border:0;margin:28px auto 0;max-width:var(--m-read)}
body.section-viewforum .panel{background:var(--m-paper);color:var(--m-ink);border-radius:16px;max-width:var(--m-read);margin-left:auto;margin-right:auto}
@media (max-width:640px){.art-item{padding:18px 18px;border-radius:14px}}

/* ---------- 1.0.7:圖解卡片 —— 圖片置中、說明文字置中 ---------- */
.content .art-diagram{text-align:center}
.content .art-diagram img,
.content .art-diagram.art-att .inline-attachment img,
.content .art-diagram.art-att .inline-attachment img.postimage{display:block !important;width:auto !important;max-width:100% !important;height:auto !important;margin:0 auto !important}
.content .art-diagram .inline-attachment,
.content .art-diagram .attach-image,
.content .art-diagram.art-att .inline-attachment dl dt{width:100% !important;max-height:none !important;overflow:visible !important;text-align:center;margin-left:0;margin-right:0;padding:0;border:0}
.content .art-diagram.art-att .inline-attachment{margin-bottom:14px}
.content .art-diagram > figcaption{text-align:center;padding:10px 12px 6px}

/* ==========================================================================
 * 1.0.8 Repair Workbench article blocks
 * [casefile]/[row], [stamp], [ask]/[reply], [tip], [warn], [steps]/[step],
 * [timeline]/[tl], [cta], [consult], and their look on the workbench review page.
 * Uses the --m-* variables above, follows dark mode, and switches labels on English articles.
 * ========================================================================== */
/*
 * Repair Workbench article blocks.
 * Uses the article-blue theme variables (--m-*) with fallbacks, so the blocks follow the
 * forum's light and dark palettes. Selectors only match article BBCode, in forum posts
 * (.content) and on the workbench review page (.rw2-article).
 */
.content, .rw2-article {
	--rw-tip: #e9f5ee;
	--rw-tip-ink: #1f4d36;
	--rw-tip-mark: #2e8b57;
	--rw-warn: #fff0ea;
	--rw-warn-ink: #6b2410;
	--rw-reply: #fdf1ea;
	--rw-reply-line: #f0d2c4;
	--rw-reply-label: #b23a1d;
	--rw-hot: var(--m-hot, #e5421f);
	--rw-accent: var(--m-accent, #2f6fa8);
	--rw-paper: var(--m-paper, #fbfaf6);
	--rw-line: var(--m-line, #c5d5e5);
	--rw-muted: var(--m-muted, #53657a);
	--rw-ink: var(--m-ink, #1d2b3a);
	--rw-icon: FontAwesome, var(--m-sans, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif);
}
@media (prefers-color-scheme: dark) {
	.content, .rw2-article {
		--rw-tip: #16331f;
		--rw-tip-ink: #c9ecd5;
		--rw-tip-mark: #6fcf97;
		--rw-warn: #3a1d14;
		--rw-warn-ink: #ffd2c2;
		--rw-reply: #3a2620;
		--rw-reply-line: #5e3a2e;
		--rw-reply-label: #f1b9a6;
	}
}

/* Line breaks phpBB adds between blocks */
:is(.content, .rw2-article) .art-case + br, :is(.content, .rw2-article) .art-tip + br, :is(.content, .rw2-article) .art-warn + br, :is(.content, .rw2-article) .art-steps + br,
:is(.content, .rw2-article) .art-ask + br, :is(.content, .rw2-article) .art-reply + br, :is(.content, .rw2-article) .art-stamp + br, :is(.content, .rw2-article) .art-timeline + br,
:is(.content, .rw2-article) .art-cta + br, :is(.content, .rw2-article) .art-case > br, :is(.content, .rw2-article) .art-steps > br, :is(.content, .rw2-article) .art-timeline > br,
:is(.content, .rw2-article) .art-row > br { display: none; }

/* Repair file card: a ticket listing the case at a glance */
:is(.content, .rw2-article) .art-case {
	position: relative;
	margin: 28px 0;
	padding: 44px 22px 10px;
	background: var(--rw-paper);
	border: 1px solid var(--rw-line);
	border-top: 5px solid var(--rw-accent);
	border-radius: 4px 4px 10px 10px;
	box-shadow: 0 4px 14px var(--m-shadow, rgba(29, 43, 58, .12));
}
:is(.content, .rw2-article) .art-case::before {
	content: "\f0ad\00a0\00a0維修檔案";
	position: absolute;
	top: 12px;
	left: 22px;
	font-family: var(--rw-icon);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .12em;
	color: var(--rw-accent);
}
:is(.content, .rw2-article) .art-row {
	display: grid;
	grid-template-columns: 6.5em minmax(0, 1fr);
	gap: 14px;
	padding: 10px 0;
	border-top: 1px dashed var(--rw-line);
	line-height: 1.6;
}
:is(.content, .rw2-article) .art-row:first-child { border-top: 0; }
:is(.content, .rw2-article) .art-row strong { color: var(--rw-muted); font-weight: 600; font-size: .9em; }

/* Practical tip */
:is(.content, .rw2-article) .art-tip {
	position: relative;
	margin: 24px 0;
	padding: 16px 20px 16px 58px;
	background: var(--rw-tip);
	color: var(--rw-tip-ink);
	border-radius: 6px;
	line-height: 1.7;
}
:is(.content, .rw2-article) .art-tip::before {
	content: "\f0eb";
	position: absolute;
	left: 18px;
	top: 14px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--rw-tip-mark);
	color: #fff;
	font-family: FontAwesome;
	font-size: 16px;
	line-height: 28px;
	text-align: center;
}
:is(.content, .rw2-article) .art-tip strong { display: inline-block; margin-bottom: 2px; }

/* Caution */
:is(.content, .rw2-article) .art-warn {
	margin: 24px 0;
	padding: 14px 20px;
	background: var(--rw-warn);
	color: var(--rw-warn-ink);
	border-left: 6px solid var(--rw-hot);
	border-radius: 0 6px 6px 0;
	line-height: 1.7;
}
:is(.content, .rw2-article) .art-warn::before {
	content: "\f071\00a0\00a0注意";
	display: block;
	margin-bottom: 4px;
	font-family: var(--rw-icon);
	font-weight: 700;
	color: var(--rw-hot);
	letter-spacing: .08em;
}

/* Numbered steps */
:is(.content, .rw2-article) .art-steps { counter-reset: rw-step; margin: 26px 0; }
:is(.content, .rw2-article) .art-step {
	position: relative;
	counter-increment: rw-step;
	padding: 2px 0 22px 58px;
	line-height: 1.7;
}
:is(.content, .rw2-article) .art-step::before {
	content: counter(rw-step);
	position: absolute;
	left: 0;
	top: 0;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--rw-accent);
	color: #fff;
	font-family: var(--m-serif, Georgia, serif);
	font-size: 19px;
	font-weight: 700;
	line-height: 38px;
	text-align: center;
	box-shadow: 0 3px 8px var(--m-shadow, rgba(29, 43, 58, .18));
}
:is(.content, .rw2-article) .art-step:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 18px;
	top: 42px;
	bottom: 4px;
	border-left: 2px dashed var(--rw-line);
}
:is(.content, .rw2-article) .art-step strong { display: inline-block; font-size: 1.05em; margin-bottom: 2px; }

/* Customer and technician dialogue */
:is(.content, .rw2-article) .art-ask, :is(.content, .rw2-article) .art-reply {
	position: relative;
	width: fit-content;
	max-width: 82%;
	margin: 14px 0;
	padding: 12px 18px;
	border-radius: 18px;
	line-height: 1.7;
}
:is(.content, .rw2-article) .art-ask {
	background: var(--rw-paper);
	border: 1px solid var(--rw-line);
	border-bottom-left-radius: 4px;
}
:is(.content, .rw2-article) .art-reply {
	margin-left: auto;
	background: var(--rw-reply);
	border: 1px solid var(--rw-reply-line);
	border-bottom-right-radius: 4px;
}
:is(.content, .rw2-article) .art-ask::before, :is(.content, .rw2-article) .art-reply::before {
	display: block;
	margin-bottom: 2px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .1em;
}
:is(.content, .rw2-article) .art-ask::before { content: "客人"; color: var(--rw-muted); }
:is(.content, .rw2-article) .art-reply::before { content: "老麥"; color: var(--rw-reply-label); text-align: right; }

/* Ink stamp for the outcome */
:is(.content, .rw2-article) .art-stamp {
	display: block;
	width: fit-content;
	margin: -6px 18px 22px auto;
	padding: 6px 16px;
	border: 3px double var(--rw-hot);
	border-radius: 8px;
	color: var(--rw-hot);
	font-family: var(--m-serif, Georgia, serif);
	font-size: 22px;
	font-weight: 800;
	letter-spacing: .18em;
	transform: rotate(-6deg);
	opacity: .88;
	mix-blend-mode: multiply;
}
@media (prefers-color-scheme: dark) { :is(.content, .rw2-article) .art-stamp { mix-blend-mode: normal; } }

/* Repair timeline for repeat visits */
:is(.content, .rw2-article) .art-timeline {
	position: relative;
	margin: 28px 0;
	padding-left: 26px;
	border-left: 3px solid var(--rw-line);
}
:is(.content, .rw2-article) .art-tl { position: relative; padding: 0 0 22px 14px; line-height: 1.7; }
:is(.content, .rw2-article) .art-tl::before {
	content: "";
	position: absolute;
	left: -36px;
	top: 6px;
	width: 13px;
	height: 13px;
	border-radius: 50%;
	background: var(--rw-accent);
	border: 3px solid var(--rw-paper);
	box-shadow: 0 0 0 1px var(--rw-line);
}
:is(.content, .rw2-article) .art-tl strong { display: inline-block; color: var(--rw-accent); }

/* Closing invitation */
:is(.content, .rw2-article) .art-cta {
	margin: 48px 0 12px;
	padding: 26px 24px;
	text-align: center;
	background: linear-gradient(135deg, var(--m-head-b, #fff3ec), var(--rw-paper));
	border: 1px solid var(--rw-line);
	border-radius: 10px;
	font-size: 1.05em;
	line-height: 1.7;
}
:is(.content, .rw2-article) .art-cta-text { margin-bottom: 14px; }
:is(.content, .rw2-article) .art-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
:is(.content, .rw2-article) a.art-cta-btn {
	display: inline-block;
	padding: 10px 26px;
	border-radius: 999px;
	background: #c8381a;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 3px 10px rgba(200, 56, 26, .25);
}
/* Theme link colours must not reach the button: text, label spans and icon stay white. */
:is(.content, .rw2-article) a.art-cta-btn, :is(.content, .rw2-article) a.art-cta-btn:is(:link, :visited, :hover, :focus, :active),
:is(.content, .rw2-article) a.art-cta-btn span, :is(.content, .rw2-article) a.art-cta-btn::before { color: #fff !important; text-decoration: none !important; }
:is(.content, .rw2-article) a.art-cta-btn:is(:hover, :focus) { background: #ad2f14; }
:is(.content, .rw2-article) :is(a.art-cta-btn, a.art-consult):focus-visible { outline: 3px solid var(--rw-accent); outline-offset: 3px; }
:is(.content, .rw2-article) a.art-cta-btn::before { content: "\f086\00a0\00a0"; font-family: FontAwesome; }

/* In-text consultation link: a short, quiet pill sized to its label, also inside file-card rows. */
:is(.content, .rw2-article) a.art-consult {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	max-width: 100%;
	justify-self: start;
	align-self: center;
	margin: 0 2px;
	padding: 1px 12px;
	border: 1px solid #e8c9bf;
	border-radius: 999px;
	background: #fbf0ec;
	font-size: .9em;
	font-weight: 600;
	line-height: 1.8;
	white-space: nowrap;
	text-decoration: none;
}
:is(.content, .rw2-article) a.art-consult, :is(.content, .rw2-article) a.art-consult:is(:link, :visited, :hover, :focus, :active),
:is(.content, .rw2-article) a.art-consult::before { color: #9a3418 !important; text-decoration: none !important; }
:is(.content, .rw2-article) a.art-consult:is(:hover, :focus) { background: #f5e1d9; border-color: #d9a796; }
:is(.content, .rw2-article) a.art-consult::before { content: "\f086"; font-family: FontAwesome; margin-right: 6px; font-size: .9em; opacity: .8; }
@media (prefers-color-scheme: dark) {
	:is(.content, .rw2-article) a.art-consult { background: #3a231c; border-color: #6b3a2c; }
	:is(.content, .rw2-article) a.art-consult, :is(.content, .rw2-article) a.art-consult:is(:link, :visited, :hover, :focus, :active),
	:is(.content, .rw2-article) a.art-consult::before { color: #f1b9a6 !important; }
	:is(.content, .rw2-article) a.art-consult:is(:hover, :focus) { background: #4a2c22; }
}

/* Secondary button: the repair guide sits beside the consultation button. */
:is(.content, .rw2-article) a.art-cta-btn.art-cta-alt { background: var(--rw-paper); border: 2px solid #c8381a; padding: 8px 24px; box-shadow: none; }
:is(.content, .rw2-article) a.art-cta-btn.art-cta-alt, :is(.content, .rw2-article) a.art-cta-btn.art-cta-alt:is(:link, :visited, :hover, :focus, :active),
:is(.content, .rw2-article) a.art-cta-btn.art-cta-alt span, :is(.content, .rw2-article) a.art-cta-btn.art-cta-alt::before { color: #c8381a !important; }
:is(.content, .rw2-article) a.art-cta-btn.art-cta-alt:is(:hover, :focus) { background: #fff1ec; }
:is(.content, .rw2-article) a.art-cta-btn.art-cta-alt::before { content: "\f0f6\00a0\00a0"; }

/*
 * Labels follow the language of the article itself (:lang), not only the page: the review
 * page shows the Chinese and English drafts side by side, each marked with its own lang.
 */
:is(.content, .rw2-article) .art-en { display: none; }
:is(.content, .rw2-article) .art-zh:lang(en) { display: none; }
:is(.content, .rw2-article) .art-en:lang(en) { display: inline; }
:is(.content, .rw2-article) .art-case:lang(en)::before { content: "\f0ad\00a0\00a0Repair file"; }
:is(.content, .rw2-article) .art-warn:lang(en)::before { content: "\f071\00a0\00a0Caution"; }
:is(.content, .rw2-article) .art-ask:lang(en)::before { content: "Customer"; }
:is(.content, .rw2-article) .art-reply:lang(en)::before { content: "MYDC"; }

@media (max-width: 480px) {
	:is(.content, .rw2-article) .art-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
	:is(.content, .rw2-article) .art-ask, :is(.content, .rw2-article) .art-reply { max-width: 92%; }
	:is(.content, .rw2-article) .art-stamp { margin-right: 4px; }
}

/*
 * The original article blocks on the Repair Workbench review page (.rw2-article), which does not
 * use the .content rules above. :where() keeps these at the lowest specificity.
 */
:where(.rw2-article) .art-h2 { color: var(--m-ink, #1d2b3a); border-bottom: 0; font-family: var(--m-serif, "Noto Serif TC", "Songti TC", serif); font-size: 1.5em; font-weight: 600; line-height: 1.35; margin: 48px 0 0; padding-top: 18px; border-top: 2px solid var(--rw-line); }
:where(.rw2-article) .art-lead { font-size: 1.1em; color: var(--rw-muted); margin: 16px 0 0; }
:where(.rw2-article) .art-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 24px 0; align-items: start; }
:where(.rw2-article) .art-film { margin: 24px auto; max-width: 320px; background: var(--m-frame, #fdfcf8); padding: 12px 12px 14px; border-radius: 3px; box-shadow: 0 6px 18px var(--m-shadow, rgba(29, 43, 58, .18)); font-size: .9em; line-height: 1.6; color: #4b5a6a; }
:where(.rw2-article) .art-pair .art-film { margin: 0 auto; max-width: 360px; width: 100%; }
:where(.rw2-article) .art-pair .art-film:nth-child(2n+1) { transform: rotate(-1deg); }
:where(.rw2-article) .art-pair .art-film:nth-child(2n) { transform: rotate(1deg); }
:where(.rw2-article) .art-diagram { margin: 26px 0; background: #fff; border: 1px solid var(--rw-line); border-radius: 4px; padding: 10px; text-align: center; font-size: .9em; line-height: 1.6; color: #3d4d5e; }
:where(.rw2-article) .art-note { background: var(--m-note, #fff7d6); color: var(--m-note-ink, #4a3d0a); padding: 18px 20px; border-radius: 2px; margin: 0; }
:where(.rw2-article) .art-verdict { background: var(--rw-paper); border-left: 6px solid var(--rw-accent); padding: 16px 20px; margin: 24px 0; font-weight: 500; }
:where(.rw2-article) .art-card { background: var(--rw-paper); padding: 14px 16px; border-radius: 4px; }
:where(.rw2-article) .art-stack { display: flex; flex-direction: column; gap: 16px; align-self: center; min-width: 0; }
:where(.rw2-article) .art-stack .art-verdict { margin: 0; }
:where(.rw2-article) .art-pair > .art-note, :where(.rw2-article) .art-pair > .art-card { align-self: center; }
:where(.rw2-article) .art-att .inline-attachment { margin: 0 0 10px; padding: 0; }
:where(.rw2-article) .art-att .inline-attachment dl { margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; float: none; width: auto; max-width: none; }
:where(.rw2-article) .art-att .inline-attachment dl dt { display: block; float: none; width: auto; margin: 0; padding: 0; border: 0; background: transparent; }
:where(.rw2-article) .art-att .inline-attachment dl dd { display: none; }
:where(.rw2-article) .art-att .inline-attachment img, :where(.rw2-article) .art-att img.postimage, :where(.rw2-article) .art-att video { display: block; width: 100%; max-width: 100%; height: auto; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; }
:where(.rw2-article) .art-att br, :where(.rw2-article) .art-stack > br, :where(.rw2-article) .art-pair > br,
:where(.rw2-article) .art-h2 + br, :where(.rw2-article) .art-lead + br, :where(.rw2-article) figure + br,
:where(.rw2-article) .art-pair + br, :where(.rw2-article) .art-note + br, :where(.rw2-article) .art-verdict + br,
:where(.rw2-article) .art-card + br, :where(.rw2-article) .art-stack + br { display: none; }
@media (prefers-color-scheme: dark) {
	:where(.rw2-article) .art-diagram { background: #1e2d3e; color: #c9d6e3; }
	:where(.rw2-article) .art-film { color: #c9d6e3; }
}
@media (max-width: 480px) {
	:where(.rw2-article) .art-pair { grid-template-columns: minmax(0, 1fr); }
}
/* 1.1.0: same video-caption fix as in forum posts, on the workbench review page. */
:where(.rw2-article) .art-film .attachmentvideo-caption, :where(.rw2-article) .art-diagram .attachmentvideo-caption { display: none; }

/* ==========================================================================
 * 1.2.0 More article components, so articles do not all share the same boxes:
 * [pull] quote, [stats]/[stat] figures, [specs]/[spec] model data, [checklist]/[check],
 * [myth] belief vs reality, [versus]/[vs] two-way contrast, [faqs]/[faq] questions.
 * ========================================================================== */
:is(.content, .rw2-article) .art-pull { margin: 34px auto; max-width: 92%; padding: 26px 12px 18px; border-top: 1px solid var(--rw-line); border-bottom: 1px solid var(--rw-line); text-align: center; font-family: var(--m-serif, "Noto Serif TC", "Songti TC", serif); font-size: 1.35em; font-weight: 600; line-height: 1.6; color: var(--rw-ink); position: relative; quotes: none; background: transparent; border-left: 0; border-right: 0; }
:is(.content, .rw2-article) .art-pull::before { content: "\201C"; position: absolute; top: -0.55em; left: 50%; transform: translateX(-50%); padding: 0 12px; background: var(--m-bg, #e9f1f8); color: var(--rw-hot); font-size: 2.2em; line-height: 1; }
.rw2-article .art-pull::before { background: #fff; }

:is(.content, .rw2-article) .art-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 24px 0; }
:is(.content, .rw2-article) .art-stat { background: var(--rw-paper); border-radius: 10px; border-top: 4px solid var(--rw-accent); padding: 14px 16px 12px; color: var(--rw-muted); font-size: .88em; line-height: 1.5; box-shadow: 0 2px 8px rgba(29, 43, 58, .06); }
:is(.content, .rw2-article) .art-stat > b:first-child { display: block; margin-bottom: 4px; font-family: var(--m-serif, "Noto Serif TC", serif); font-size: 2em; line-height: 1.15; color: var(--rw-accent); font-weight: 900; }
:is(.content, .rw2-article) .art-stat:nth-child(3n+2) { border-top-color: var(--rw-hot); }
:is(.content, .rw2-article) .art-stat:nth-child(3n+2) > b:first-child { color: var(--rw-hot); }
:is(.content, .rw2-article) .art-stat:nth-child(3n) { border-top-color: var(--rw-tip-mark); }
:is(.content, .rw2-article) .art-stat:nth-child(3n) > b:first-child { color: var(--rw-tip-mark); }

:is(.content, .rw2-article) .art-specs { margin: 24px 0; border: 1px solid var(--rw-line); border-radius: 10px; overflow: hidden; font-size: .92em; }
:is(.content, .rw2-article) .art-specs::before { content: "機型資料"; display: block; padding: 8px 14px; background: var(--rw-ink); color: #fff; font-size: .8em; letter-spacing: .12em; font-weight: 700; }
:is(.content, .rw2-article) .art-specs:lang(en)::before { content: "Model facts"; }
:is(.content, .rw2-article) .art-spec { display: grid; grid-template-columns: minmax(6em, 30%) minmax(0, 1fr); gap: 12px; padding: 8px 14px; border-top: 1px solid var(--rw-line); line-height: 1.6; }
:is(.content, .rw2-article) .art-spec:nth-child(odd) { background: var(--rw-paper); }
:is(.content, .rw2-article) .art-spec > b:first-child { color: var(--rw-muted); font-weight: 600; }

:is(.content, .rw2-article) .art-checks { list-style: none !important; margin: 22px 0; padding: 8px 18px; background: var(--rw-paper); border-radius: 10px; border: 1px solid var(--rw-line); }
:is(.content, .rw2-article) .art-check { list-style: none !important; position: relative; margin: 0; padding: 11px 0 11px 36px; border-bottom: 1px dashed var(--rw-line); line-height: 1.6; }
:is(.content, .rw2-article) .art-check:last-child { border-bottom: 0; }
:is(.content, .rw2-article) .art-check::before { content: "\2713"; position: absolute; left: 0; top: 12px; width: 22px; height: 22px; border: 2px solid var(--rw-tip-mark); border-radius: 5px; color: var(--rw-tip-mark); font-size: 15px; font-weight: 900; line-height: 19px; text-align: center; }

:is(.content, .rw2-article) .art-myth { margin: 24px 0; padding: 14px 18px 16px; border: 1px solid var(--rw-line); border-left: 6px solid var(--rw-tip-mark); border-radius: 4px 10px 10px 4px; background: var(--rw-paper); line-height: 1.7; color: var(--rw-ink); }
:is(.content, .rw2-article) .art-myth::before { content: "常見誤解 \2192  實際情況"; display: block; margin-bottom: 6px; color: var(--rw-muted); font-size: .78em; font-weight: 700; letter-spacing: .08em; }
:is(.content, .rw2-article) .art-myth:lang(en)::before { content: "Common belief \2192  What is really going on"; }
:is(.content, .rw2-article) .art-myth > b:first-child { display: block; margin-bottom: 6px; color: var(--rw-hot); font-weight: 600; text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: rgba(229, 66, 31, .55); }
:is(.content, .rw2-article) .art-myth > br { display: none; }

:is(.content, .rw2-article) .art-versus { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 26px 0; }
:is(.content, .rw2-article) .art-versus::before { content: "VS"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; width: 40px; height: 40px; border-radius: 50%; background: var(--rw-hot); color: #fff; font-weight: 900; font-size: 14px; line-height: 40px; text-align: center; box-shadow: 0 0 0 4px var(--m-bg, #e9f1f8); }
:is(.content, .rw2-article) .art-vs { padding: 16px 18px; border-radius: 10px; background: var(--rw-paper); border: 1px solid var(--rw-line); line-height: 1.65; color: var(--rw-muted); }
:is(.content, .rw2-article) .art-vs:nth-child(2) { border: 2px solid var(--rw-accent); color: var(--rw-ink); }
:is(.content, .rw2-article) .art-vs > b:first-child { display: block; margin-bottom: 4px; font-size: .8em; letter-spacing: .1em; color: var(--rw-muted); }
:is(.content, .rw2-article) .art-vs:nth-child(2) > b:first-child { color: var(--rw-accent); }
:is(.content, .rw2-article) .art-vs > br { display: none; }

:is(.content, .rw2-article) .art-faqs { margin: 24px 0; border-top: 2px solid var(--rw-ink); }
:is(.content, .rw2-article) .art-faq { position: relative; padding: 14px 4px 14px 46px; border-bottom: 1px solid var(--rw-line); line-height: 1.7; color: var(--rw-muted); }
:is(.content, .rw2-article) .art-faq::before { content: "Q"; position: absolute; left: 4px; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--rw-accent); color: #fff; font-weight: 900; font-size: 14px; line-height: 28px; text-align: center; }
:is(.content, .rw2-article) .art-faq > b:first-child { display: block; margin-bottom: 2px; color: var(--rw-ink); font-weight: 700; }
:is(.content, .rw2-article) .art-faq > br { display: none; }

:is(.content, .rw2-article) :is(.art-pull, .art-stats, .art-specs, .art-checks, .art-myth, .art-versus, .art-faqs) + br,
:is(.content, .rw2-article) :is(.art-stats, .art-specs, .art-checks, .art-versus, .art-faqs) > br { display: none; }

@media (prefers-color-scheme: dark) {
	:is(.content, .rw2-article) .art-specs::before { background: #2c3f54; }
	.rw2-article .art-pull::before { background: #172433; }
}
@media (max-width: 560px) {
	:is(.content, .rw2-article) .art-versus { grid-template-columns: minmax(0, 1fr); gap: 26px; }
	:is(.content, .rw2-article) .art-spec { grid-template-columns: minmax(0, 1fr); gap: 0; }
	:is(.content, .rw2-article) .art-pull { font-size: 1.18em; }
}
