/* ==========================================================================
   衛教說得通 — 公開資源區（/learn/）
   沿用 app.css tokens 與 landing.css 的導覽、頁尾、按鈕；這裡只放資源區的版面與文章元件。
   分類色：溝通技巧＝brand、教學資源＝med、素材設計＝ink（深炭灰，和製作模式同色；陶土橘只給病友聲音，11/23 晚）
   ========================================================================== */
.lr { --tone: var(--brand); --tone-soft: var(--brand-soft); --tone-ink: var(--brand-ink); }
.lr .is-brand { --tone: var(--brand); --tone-soft: var(--brand-soft); --tone-ink: var(--brand-ink); }
.lr .is-med { --tone: var(--med); --tone-soft: var(--med-soft); --tone-ink: var(--med); }
.lr .is-ink { --tone: var(--ink); --tone-soft: var(--bg-2); --tone-ink: var(--ink); }
.lr :where(a) { color: var(--brand-ink); }
html:has(body.lr) { scroll-behavior: smooth; scroll-padding-top: 84px; }

/* ---------------------------------------------------------------- 共用小元件 */
.lr-crumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 13px; color: var(--muted); }
.lr-crumbs li { display: flex; align-items: center; min-width: 0; }
.lr-crumbs li + li::before { content: ""; width: 6px; height: 6px; margin: 0 10px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6; }
.lr-crumbs a { color: var(--ink-2); }
.lr-crumbs [aria-current] { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 22em; }
.lr-chip {
  display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px;
  background: var(--tone-soft); color: var(--tone-ink); font-size: 12.5px; font-weight: 700; letter-spacing: .04em;
}
a.lr-chip:hover { text-decoration: none; filter: brightness(.97); }
.lr-chip.is-plain { background: var(--bg-2); color: var(--ink-2); }

/* ---------------------------------------------------------------- Hero（總覽、分類） */
.lr-hero { position: relative; padding: 40px 0 64px; }
.lr-hero::before {
  content: ""; position: absolute; inset: -68px 0 0; z-index: -1; pointer-events: none;
  background: radial-gradient(55% 70% at 88% 25%, var(--tone-soft) 0%, transparent 70%),
              radial-gradient(40% 50% at 5% 95%, var(--bg-2) 0%, transparent 70%);
}
.lr-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.lr-hero h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.22; font-weight: 900; letter-spacing: .02em; }
.lr-hero h1 em { font-style: normal; color: var(--brand); background: linear-gradient(transparent 68%, color-mix(in srgb, var(--brand) 16%, transparent) 68%); }
.lr-hero.is-cat h1 { color: var(--ink); }
.lr-hero .lp-lead { margin-top: 18px; }
.lr-hero-art img { width: 100%; height: auto; border-radius: 26px; border: 6px solid var(--surface); box-shadow: var(--shadow-3); aspect-ratio: 16 / 9; object-fit: cover; }
.lr-count { margin-top: 18px; font-size: 13.5px; font-weight: 600; color: var(--tone-ink); }
.lr-jump { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.lr-jump a {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 14.5px; font-weight: 600; box-shadow: var(--shadow-1);
}
.lr-jump a:hover { text-decoration: none; border-color: var(--line-2); }
.lr-jump small { font-size: 12px; font-weight: 500; color: var(--muted); }

/* 三個分類大卡 */
.lr-cats { padding-bottom: 24px; }
.lr-cats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lr-cat {
  display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-1); color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.lr-cat:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.lr-cat img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.lr-cat-b { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; border-top: 4px solid var(--tone); }
.lr-cat-t { font-size: 20px; font-weight: 800; }
.lr-cat-d { font-size: 14.5px; line-height: 1.75; color: var(--ink-2); flex: 1; }
.lr-cat-ft { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--tone-ink); }

/* 區塊 */
.lr-sec { padding: 72px 0; }
.lr-sec.alt { background: var(--surface); border-block: 1px solid var(--line); }
.lr-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.lr-sec h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 900; margin-top: 8px; }
.lr-sec .lp-sub { max-width: 36em; }
.lr-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.lr-group-h { font-size: 20px !important; font-weight: 800 !important; margin: 0 0 20px !important; display: flex; align-items: center; gap: 10px; }
.lr-group-h::before { content: ""; width: 4px; height: 20px; border-radius: 4px; background: var(--tone); }

/* 文章卡 */
.lr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.lr-card {
  display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; border-radius: 18px; background: var(--surface);
  border: 1px solid var(--line); color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; min-height: 100%;
}
.lr-sec.alt .lr-card { background: var(--bg); }
.lr-card:hover { text-decoration: none; border-color: var(--line-2); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.lr-card-top { display: flex; gap: 6px; flex-wrap: wrap; }
.lr-card-top:empty { display: none; }
.lr-card-t { font-size: 17px; font-weight: 800; line-height: 1.5; }
.lr-card-d { font-size: 14px; line-height: 1.75; color: var(--ink-2); flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lr-card-ft { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; font-size: 13px; color: var(--muted); }
.lr-card-ft svg { color: var(--brand); transition: transform .15s; }
.lr-card:hover .lr-card-ft svg { transform: translateX(3px); }

.lr-others { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lr-other { display: flex; align-items: center; gap: 18px; padding: 14px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); }
.lr-other:hover { text-decoration: none; border-color: var(--line-2); box-shadow: var(--shadow-2); }
.lr-other img { width: 132px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; flex: none; }
.lr-other span { display: flex; flex-direction: column; gap: 4px; }
.lr-other b { font-size: 16.5px; }
.lr-other small { font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }

/* 底部練習帶 */
.lr-band { padding: 72px 0; }
.lr-band-in {
  display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px; align-items: center;
  padding: 44px 48px; border-radius: 28px; color: #fff;
  background: radial-gradient(80% 120% at 100% 0%, #1A8379 0%, transparent 60%), linear-gradient(135deg, #0B4F4A, #0D6B65);
}
.lr-band .lp-kicker { color: #9FD8CF; }
.lr-band h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 900; margin-top: 8px; color: #fff; }
.lr-band p:not(.lp-kicker) { margin-top: 12px; color: #D3EAE6; line-height: 1.8; max-width: 34em; }
.lr-band-cta { display: flex; flex-direction: column; gap: 10px; }
.lr-band-cta .btn.primary { background: #fff; color: #0B4F4A; border-color: #fff; box-shadow: none; }
.lr-band-cta .btn.primary:hover { background: #F2FAF8; }
.lr-band-cta .lp-btn-line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.lr-band-cta .lp-btn-line:hover { border-color: #fff; }

/* ---------------------------------------------------------------- 文章頁 */
.lr-art-head { position: relative; padding: 32px 0 40px; border-bottom: 1px solid var(--line); }
.lr-art-head::before {
  content: ""; position: absolute; inset: -68px 0 0; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 80% at 90% 10%, var(--tone-soft) 0%, transparent 70%);
}
.lr-art-head-in { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.lr-art-head-in.no-art { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.lr-art-head h1 { margin-top: 14px; font-size: clamp(28px, 3.8vw, 42px); line-height: 1.3; font-weight: 900; letter-spacing: .015em; text-wrap: balance; }
.lr-art-lead { margin-top: 14px; font-size: 16.5px; line-height: 1.85; color: var(--ink-2); max-width: 40em; }
.lr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.lr-meta > span + span::before { content: "・"; margin: 0 6px; }
.lr-print { margin-left: 14px; }
.lr-art-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; border: 5px solid var(--surface); box-shadow: var(--shadow-2); }

.lr-art-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 64px; padding: 44px 0 80px; align-items: start; }
.lr-art-grid.one { grid-template-columns: minmax(0, 760px); justify-content: center; }
.lr-art-main { min-width: 0; max-width: 760px; }

/* 一段話回答 */
.lr-answer { padding: 22px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); position: relative; }
.lr-answer::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0; background: var(--brand); }
.lr-answer-k { font-size: 13px; font-weight: 800; letter-spacing: .16em; color: var(--brand); }
.lr-answer-t { margin-top: 8px; font-size: 16.5px; line-height: 1.9; color: var(--ink); font-weight: 500; }
.lr-take { margin-top: 14px !important; padding-top: 14px !important; border-top: 1px dashed var(--line-2); }

/* 手機目錄 */
.lr-toc-m { display: none; margin-top: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.lr-toc-m summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; font-weight: 700; cursor: pointer; list-style: none; }
.lr-toc-m summary::-webkit-details-marker { display: none; }
.lr-toc-m summary span { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.lr-toc-m summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-left: 10px; transition: transform .15s; }
.lr-toc-m[open] summary::after { transform: rotate(-135deg); }
.lr-toc-m ol { margin: 0; padding: 0 16px 14px 34px; display: grid; gap: 8px; font-size: 14.5px; }

/* 側欄 */
.lr-art-side { position: sticky; top: 92px; }
.lr-side-in { display: grid; gap: 20px; }
.lr-side-h { font-size: 12.5px; font-weight: 800; letter-spacing: .16em; color: var(--muted); }
.lr-toc { list-style: none; margin: 10px 0 0; padding: 0; border-left: 2px solid var(--line); display: grid; }
.lr-toc a { display: block; padding: 7px 0 7px 14px; margin-left: -2px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.lr-toc a:hover { color: var(--ink); text-decoration: none; }
.lr-toc a[aria-current] { color: var(--brand-ink); border-left-color: var(--brand); font-weight: 700; }
.lr-side-cta { display: grid; gap: 4px; padding: 16px 18px; border-radius: 16px; background: var(--brand-soft); color: var(--ink); }
.lr-side-cta:hover { text-decoration: none; filter: brightness(.98); }
.lr-side-cta-k { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--brand-ink); }
.lr-side-cta b { font-size: 16px; }
.lr-side-cta-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13.5px; font-weight: 700; color: var(--brand-ink); }

/* ---------------------------------------------------------------- 文章本文 */
.lr-prose { margin-top: 12px; font-size: 16.5px; line-height: 1.95; color: var(--ink); }
.lr-prose > * + * { margin-top: 18px; }
.lr-prose h2 { margin-top: 52px; font-size: 24px; line-height: 1.45; font-weight: 800; letter-spacing: .01em; scroll-margin-top: 90px; }
.lr-prose h2 + * { margin-top: 14px; }
.lr-prose h3 { margin-top: 32px; font-size: 18.5px; font-weight: 800; }
.lr-prose h3 + * { margin-top: 10px; }
.lr-prose p { color: var(--ink); }
.lr-prose strong { font-weight: 700; background: linear-gradient(transparent 62%, color-mix(in srgb, var(--brand) 16%, transparent) 62%); }
.lr-prose ul:not([class]), .lr-prose ol:not([class]) { padding-left: 1.4em; display: grid; gap: 8px; }
.lr-prose li::marker { color: var(--brand); font-weight: 700; }
.lr-prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--brand) 40%, transparent); }

/* 說法對照 */
.lr-prose .say { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; box-shadow: var(--shadow-1); }
.lr-prose .say-row { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 16px 20px; }
.lr-prose .say-row + .say-row { border-top: 1px solid var(--line); }
.lr-prose .say-k { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.lr-prose .say-k::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none; background-repeat: no-repeat; background-position: center; background-size: 12px; }
.lr-prose .say-row.no { background: var(--bg-2); }
.lr-prose .say-row.no .say-k { color: var(--ink-2); }
.lr-prose .say-row.no .say-k::before { background-color: var(--muted); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 3l6 6M9 3l-6 6' stroke='white' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.lr-prose .say-row.no p { color: var(--ink-2); }
.lr-prose .say-row.yes { background: color-mix(in srgb, var(--ok-soft) 55%, var(--surface)); }
.lr-prose .say-row.yes .say-k { color: var(--ok); }
.lr-prose .say-row.yes .say-k::before { background-color: var(--ok); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.4 2.3 4.6-5' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.lr-prose .say-row.yes p { font-weight: 600; }
.lr-prose .say-why { padding: 12px 20px 14px; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.8; color: var(--ink-2); margin: 0; }

/* 示意對話 */
.lr-prose .dlg { position: relative; display: grid; gap: 10px; padding: 34px 20px 20px; border-radius: 18px; background: var(--bg-2); }
.lr-prose .dlg::before { content: "示意對話"; position: absolute; top: 10px; left: 20px; font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--muted); }
.lr-prose .dlg p { margin: 0; max-width: 88%; padding: 10px 14px; border-radius: 16px; line-height: 1.75; font-size: 15.5px; }
.lr-prose .dlg b { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; margin-bottom: 2px; opacity: .8; }
.lr-prose .dlg-p { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; justify-self: start; }
.lr-prose .dlg-p b { color: var(--ink-2); }
.lr-prose .dlg-c { background: var(--brand); color: var(--on-brand); border-bottom-right-radius: 4px; justify-self: end; }
.lr-prose .dlg-c b { color: inherit; }

/* 步驟 */
.lr-prose ol.steps { list-style: none; padding: 0; display: grid; gap: 0; counter-reset: st; font-size: inherit; text-align: left; }
.lr-prose ol.steps > li { position: relative; counter-increment: st; padding: 0 0 22px 56px; }
.lr-prose ol.steps > li::before {
  content: counter(st); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-weight: 900; font-size: 16px;
}
.lr-prose ol.steps > li::after { content: ""; position: absolute; left: 18px; top: 44px; bottom: 6px; width: 2px; background: var(--line); }
.lr-prose ol.steps > li:last-child { padding-bottom: 0; }
.lr-prose ol.steps > li:last-child::after { display: none; }
.lr-prose ol.steps b { display: block; font-size: 17px; font-weight: 800; line-height: 1.6; padding-top: 5px; }
.lr-prose ol.steps p { margin-top: 4px; color: var(--ink-2); font-size: 15.5px; line-height: 1.85; }

/* 提示框 */
.lr-prose .note { display: grid; gap: 4px; padding: 16px 20px 16px 52px; border-radius: 16px; background: var(--brand-soft); position: relative; }
.lr-prose .note::before {
  content: ""; position: absolute; left: 18px; top: 18px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11'/%3E%3C/svg%3E") center / contain no-repeat;
}
.lr-prose .note::after { content: "i"; position: absolute; left: 18px; top: 18px; width: 22px; height: 22px; display: grid; place-items: center; color: var(--on-brand); font-weight: 900; font-size: 13px; font-style: italic; font-family: Georgia, serif; }
.lr-prose .note b { color: var(--brand-ink); font-size: 15px; }
.lr-prose .note p { font-size: 15px; line-height: 1.85; color: var(--ink); margin: 0; }
.lr-prose .note p + p { margin-top: 6px; }
.lr-prose .note.warn { background: var(--warn-soft); }
.lr-prose .note.warn::before { background: var(--warn); }
.lr-prose .note.warn::after { content: "!"; font-style: normal; font-family: inherit; }
.lr-prose .note.warn b { color: var(--warn); }

/* 檢核清單（文章與「簡單說」共用） */
.lr .check { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.lr .check li { position: relative; padding-left: 32px; line-height: 1.75; }
.lr .check li::before {
  content: ""; position: absolute; left: 0; top: .25em; width: 20px; height: 20px; border-radius: 6px; background-color: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.4 2.3 4.6-5' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 13px;
}
.lr-answer .check li { font-size: 15px; }

/* 表格 */
.lr-prose .tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.lr-prose .tbl { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.7; }
.lr-prose .tbl th, .lr-prose .tbl td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.lr-prose .tbl thead th { background: var(--surface-2); font-size: 13.5px; font-weight: 800; color: var(--ink-2); white-space: nowrap; }
.lr-prose .tbl tbody tr:last-child > * { border-bottom: 0; }
.lr-prose .tbl tbody th { font-weight: 700; }

/* 衛教單好壞對照 */
.lr-prose .cmp { margin-inline: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lr-prose .cmp figcaption { grid-column: 1 / -1; font-size: 14px; line-height: 1.8; color: var(--ink-2); }
.lr-prose .cmp-col { display: grid; gap: 10px; align-content: start; padding: 16px; border-radius: 18px; }
.lr-prose .cmp-col.bad { background: var(--bg-2); }
.lr-prose .cmp-col.good { background: color-mix(in srgb, var(--ok-soft) 60%, var(--bg)); }
.lr-prose .cmp-k { font-size: 13px; font-weight: 800; letter-spacing: .06em; }
.lr-prose .cmp-col.bad .cmp-k { color: var(--ink-2); }
.lr-prose .cmp-col.good .cmp-k { color: var(--ok); }
/* 紙張示意：固定淺色（印出來的紙本來就是白的），深色模式也一樣 */
.lr-prose .leaf {
  background: #FFFFFF; color: #1C2629; border-radius: 6px; padding: 22px 20px; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 8px 24px -12px rgba(0,0,0,.25);
  font-size: 15px; line-height: 1.8; display: grid; gap: 10px; align-content: start; min-height: 220px;
}
.lr-prose .leaf p, .lr-prose .leaf li { color: inherit; margin: 0; }
.lr-prose .leaf-h { font-size: 20px; font-weight: 900; line-height: 1.4; color: #0D6B65 !important; }
.lr-prose .leaf ul, .lr-prose .leaf ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.lr-prose .leaf-steps { list-style: none; padding: 0 !important; counter-reset: lf; }
.lr-prose .leaf-steps li { counter-increment: lf; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; font-weight: 600; }
.lr-prose .leaf-steps li::before { content: counter(lf); width: 28px; height: 28px; border-radius: 50%; background: #0D6B65; color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 15px; }
.lr-prose .leaf-call { margin-top: 4px !important; padding: 10px 12px; border-radius: 8px; background: #FFF3D6; color: #6E4500 !important; font-weight: 800; }
.lr-prose .leaf li::marker { color: #0D6B65; }
.lr-prose .leaf.small { font-size: 11.5px; line-height: 1.45; }
.lr-prose .leaf.small .leaf-h { font-size: 14px; }
.lr-prose .leaf.dense { line-height: 1.35; gap: 2px; padding: 12px 12px; font-size: 13px; }
.lr-prose .leaf.dense .leaf-h { font-size: 15px; }
.lr-prose .leaf.lowc { color: #A9B0B2; }
.lr-prose .leaf.lowc .leaf-h { color: #9DC9C4 !important; }
.lr-prose .leaf.many { font-size: 13px; line-height: 1.5; gap: 6px; }
.lr-prose .leaf.many .leaf-h { font-size: 15px; }

/* 可列印的學習單 */
.lr-prose .sheet {
  margin-top: 28px; padding: 28px; border-radius: 10px; background: #FFFFFF; color: #1C2629;
  border: 1px solid var(--line); box-shadow: var(--shadow-2); font-size: 14.5px; line-height: 1.7;
}
.lr-prose .sheet * { color: inherit; }
.lr-prose .sheet + .sheet { margin-top: 24px; }
.lr-prose .sheet-h { margin: 0 0 12px; font-size: 20px; font-weight: 900; color: #0D6B65 !important; padding-bottom: 10px; border-bottom: 2px solid #0D6B65; }
.lr-prose .sheet-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 16px; font-size: 14px; }
.lr-prose .sheet-meta span { flex: 1 1 140px; padding-bottom: 6px; border-bottom: 1px solid #9AA3A5; }
.lr-prose .sheet .tbl { font-size: 14px; background: #fff; }
.lr-prose .sheet .tbl th, .lr-prose .sheet .tbl td { border: 1px solid #C9CFD0; padding: 8px 10px; color: #1C2629; }
.lr-prose .sheet .tbl thead th { background: #EEF4F3; color: #1C2629; }
.lr-prose .sheet td.box { width: 54px; text-align: center; }
.lr-prose .sheet td.box::before { content: ""; display: inline-block; width: 16px; height: 16px; border: 1.5px solid #5E686B; border-radius: 3px; vertical-align: middle; }
.lr-prose .sheet-q { margin: 18px 0 0; font-weight: 700; }
.lr-prose .sheet-line { height: 34px; border-bottom: 1px solid #9AA3A5; margin: 0; }
.lr-prose .sheet .tbl-wrap { border-color: #C9CFD0; background: #fff; }

/* 常見問題 */
.lr-faq { margin-top: 56px; }
.lr-faq h2 { font-size: 24px; font-weight: 800; margin-bottom: 16px; scroll-margin-top: 90px; }
.lr-faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.lr-faq details + details { margin-top: 10px; }
.lr-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; font-size: 16px; font-weight: 700; cursor: pointer; list-style: none; line-height: 1.6; }
.lr-faq summary::-webkit-details-marker { display: none; }
.lr-faq summary::after { content: ""; width: 9px; height: 9px; flex: none; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
.lr-faq details[open] summary::after { transform: rotate(-135deg); }
.lr-faq details p { padding: 0 20px 18px; font-size: 15.5px; line-height: 1.9; color: var(--ink-2); }

/* 練習卡 */
.lr-practice {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; margin-top: 40px;
  padding: 22px 24px; border-radius: 20px; background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent);
}
.lr-practice img { background: #fff; border-radius: 12px; padding: 6px; box-sizing: content-box; }
.lr-practice-k { font-size: 12.5px; font-weight: 800; letter-spacing: .14em; color: var(--brand-ink); }
.lr-practice-t { font-size: 18px; font-weight: 800; margin-top: 2px; }
.lr-practice-d { font-size: 14.5px; line-height: 1.75; color: var(--ink-2); margin-top: 4px; }
.lr-disclaimer { margin-top: 28px; font-size: 13px; line-height: 1.8; color: var(--muted); }
.lr-disclaimer a { margin-left: 4px; }

/* ---------------------------------------------------------------- 響應式 */
@media (max-width: 1020px) {
  .lr-hero-in { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .lr-hero-art { max-width: 640px; }
  .lr-cats-grid { grid-template-columns: minmax(0, 1fr); }
  .lr-cat { flex-direction: row; }
  .lr-cat img { width: 38%; aspect-ratio: auto; }
  .lr-cat-b { border-top: 0; border-left: 4px solid var(--tone); }
  .lr-art-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .lr-art-side { display: none; }
  .lr-toc-m { display: block; }
  .lr-art-main { margin-inline: auto; }
  .lr-art-head-in { grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; }
}
@media (max-width: 820px) {
  .lr-band-in { grid-template-columns: minmax(0, 1fr); padding: 36px 28px; }
  .lr-band-cta { flex-direction: row; flex-wrap: wrap; }
  .lr-others { grid-template-columns: minmax(0, 1fr); }
  .lr-art-head-in { grid-template-columns: minmax(0, 1fr); }
  .lr-art-img { display: none; }
}
@media (max-width: 600px) {
  .lr-hero { padding: 20px 0 44px; }
  .lr-jump a { height: 38px; padding: 0 13px; font-size: 13.5px; }
  .lr-cat { flex-direction: column; }
  .lr-cat img { width: 100%; aspect-ratio: 16 / 9; }
  .lr-cat-b { border-left: 0; border-top: 4px solid var(--tone); padding: 16px 18px 18px; }
  .lr-sec { padding: 52px 0; }
  .lr-sec-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .lr-card { padding: 18px; }
  .lr-band { padding: 52px 0; }
  .lr-band-cta .btn { flex: 1 1 100%; }
  .lr-art-head { padding: 20px 0 28px; }
  .lr-art-lead { font-size: 15.5px; }
  .lr-print { margin: 10px 0 0; flex-basis: 100%; width: max-content; }
  .lr-meta > .lr-print::before { content: none; }
  .lr-art-grid { padding: 28px 0 56px; }
  .lr-prose { font-size: 16px; line-height: 1.9; }
  .lr-prose h2 { font-size: 21px; margin-top: 44px; }
  .lr-prose .say-row { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 16px; }
  .lr-prose .say-why { padding: 12px 16px; }
  .lr-prose .dlg { padding: 32px 14px 14px; }
  .lr-prose .dlg p { max-width: 94%; }
  .lr-prose ol.steps > li { padding-left: 48px; }
  .lr-prose .cmp { grid-template-columns: minmax(0, 1fr); }
  .lr-prose .sheet { padding: 18px 14px; margin-inline: -4px; }
  .lr-practice { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .lr-practice img { display: none; }
  .lr-practice .btn { width: 100%; }
  .lr-other img { width: 96px; }
  .lr-crumbs [aria-current] { max-width: 12em; }
}

/* ---------------------------------------------------------------- 列印：只印文章（學習單、評分表） */
@media print {
  @page { margin: 14mm 12mm; }
  :root { --bg: #fff; --surface: #fff; --ink: #000; --ink-2: #222; --line: #ccc; }
  html, body { background: #fff !important; }
  .lp-nav, .lp-foot, .lr-art-side, .lr-related, .lr-practice, .lr-toc-m, .lr-print, .lr-crumbs, .lr-band, .lp-skip, .lr-art-img, .lr-disclaimer { display: none !important; }
  .lr-art-head { padding: 0 0 8px; border: 0; }
  .lr-art-head::before { display: none; }
  .lr-art-grid { display: block; padding: 0; }
  .lr-art-main { max-width: none; }
  .lp-wrap { width: 100%; }
  .lr-prose { font-size: 11.5pt; line-height: 1.7; }
  .lr-prose h2 { break-after: avoid; margin-top: 20px; font-size: 15pt; }
  .say, .dlg, .note, .cmp, .tbl-wrap, .lr-faq details { break-inside: avoid; box-shadow: none !important; }
  .lr-faq details { border: 0; }
  .lr-faq details:not([open]) p { display: block; }
  /* 可列印的文章：只印學習單本身，每張一頁 */
  .lr-art.is-print .lr-art-head, .lr-art.is-print .lr-answer, .lr-art.is-print .lr-faq,
  .lr-art.is-print .lr-prose > :not(.sheet) { display: none !important; }
  .lr-art.is-print .lr-prose .sheet { box-shadow: none; border: 0; padding: 0; margin: 0; break-after: page; font-size: 11pt; }
  .lr-art.is-print .lr-prose .sheet:last-of-type { break-after: auto; }
}

/* ---------------------------------------------------------------- 修正（11/22 走查） */
.lr img { height: auto; }
.lr .lp-nav-cta { margin-left: auto; }
.lr-sub-h { font-size: 15px; font-weight: 800; letter-spacing: .08em; color: var(--muted); margin: 0 0 14px; }
.lr-grid + .lr-sub-h { margin-top: 32px; }
.lr-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 262px), 1fr)); }
.lr-prose .sheet { overflow-x: auto; }
.lr-prose .sheet .tbl tbody tr:last-child > * { border-bottom: 1px solid #C9CFD0; }
.lr-meta { column-gap: 0; }
@media (max-width: 600px) {
  .lr-crumbs li:last-child { display: none; }
  .lr-crumbs ol { margin-bottom: 14px; }
  .lr-meta { gap: 4px 14px; }
  .lr-meta > span + span::before { content: none; }
  .lr-prose .sheet .tbl { min-width: 520px; }
}
.lr-art-main { width: 100%; }
@media (max-width: 600px) {
  .lr-cats-grid { gap: 12px; }
  .lr-cat { flex-direction: row; border-radius: 18px; }
  .lr-cat img { width: 108px; aspect-ratio: 1; flex: none; }
  .lr-cat-b { border-top: 0; border-left: 4px solid var(--tone); padding: 14px 16px; gap: 4px; }
  .lr-cat-t { font-size: 17px; }
  .lr-cat-d { font-size: 13.5px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .lr-cat-ft { font-size: 13px; margin-top: 2px; }
}
/* 無障礙（axe）修正 */
.lr-prose .dlg b { opacity: 1; }
.lr-disclaimer a, .lr-prose a { text-decoration: underline; text-underline-offset: 3px; }
.lr-prose .cmp-col.good .cmp-k { color: color-mix(in srgb, var(--ok) 78%, var(--ink)); }
.lr-prose .cmp-col.bad .cmp-k { color: var(--ink-2); }
.lr-prose .sheet:focus-visible, .lr-prose .tbl-wrap:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-glow); }
.lr-prose .note.warn b { color: color-mix(in srgb, var(--warn) 72%, var(--ink)); }
.lr-chip { color: color-mix(in srgb, var(--tone-ink) 80%, var(--ink)); }

/* ---------------------------------------------------------------- 總覽頁：依角色路線、分類索引（第二批，11/22） */
.lr-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lr-path { padding: 22px 22px 18px; border-radius: 20px; background: var(--bg); border: 1px solid var(--line); border-top: 4px solid var(--tone); }
.lr-path-h { font-size: 18px; font-weight: 800; display: flex; flex-direction: column; gap: 4px; }
.lr-path-h small { font-size: 13px; font-weight: 500; color: var(--muted); }
.lr-path-l { list-style: none; margin: 16px 0 0; padding: 0; counter-reset: p; }
.lr-path-l li { counter-increment: p; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 4px 10px; align-items: baseline;
  padding: 11px 0; border-top: 1px dashed var(--line); font-size: 15px; line-height: 1.6; }
.lr-path-l li::before { content: counter(p); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--tone-soft); color: color-mix(in srgb, var(--tone-ink) 80%, var(--ink)); font-size: 12.5px; font-weight: 800; align-self: start; margin-top: 1px; }
.lr-path-l a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.lr-path-l a:hover { text-decoration-color: var(--tone); }
.lr-path-l span { font-size: 12.5px; color: var(--muted); white-space: nowrap; }

.lr-idx { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lr-idx.n1 { grid-template-columns: minmax(0, 1fr); }
.lr-idx.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lr-idx-col { padding: 20px 22px 10px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.lr-sec.alt .lr-idx-col { background: var(--bg); }
.lr-idx-h { display: flex; align-items: center; gap: 10px; font-size: 15.5px; font-weight: 800; margin-bottom: 6px; }
.lr-idx-h::before { content: ""; width: 4px; height: 18px; border-radius: 4px; background: var(--tone); }
.lr-idx-h span { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.lr-idx ul { list-style: none; margin: 0; padding: 0; }
.lr-idx li { display: flex; align-items: baseline; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.6; }
.lr-idx li:first-child { border-top: 0; }
.lr-idx li a { color: var(--ink); font-weight: 600; flex: 1; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.lr-idx li a::after { content: "›"; margin-left: 6px; color: var(--tone); font-weight: 800; }
.lr-idx li a:hover { text-decoration-color: var(--tone); }
.lr-idx .lr-chip { height: 22px; font-size: 11.5px; flex: none; }
@media (max-width: 1020px) {
  .lr-paths, .lr-idx.n3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .lr-idx { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- 「在衛教說得通產生」工具推薦（11/23 製作模式） */
.lr-tool-wrap { margin-top: -24px; margin-bottom: 8px; }
.lr-tool {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; margin: 0 0 22px;
  padding: 18px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--ink);
}
.lr-sec.alt .lr-tool { background: var(--bg); }
.lr-tool-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--bg-2); color: var(--ink); }
.lr-tool-ic .i { width: 22px; height: 22px; }
.lr-tool-k { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--muted); }
.lr-tool-t { margin-top: 2px; font-size: 17px; font-weight: 800; }
.lr-tool-d { margin-top: 4px; font-size: 14px; line-height: 1.75; color: var(--ink-2); max-width: 46em; }
.lr-tool-a { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.lr-tool-more { font-size: 13.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 820px) {
  .lr-tool { grid-template-columns: auto minmax(0, 1fr); }
  .lr-tool-a { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; gap: 14px; }
  .lr-tool-wrap { margin-top: -32px; }
}

/* ---------------------------------------------------------------- 11/23 審查修正 */
.lr-print-src, .sheet-src { display: none; }
.lr-sheet-hint { display: none; margin: 16px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--bg-2); font-size: 13.5px; color: var(--ink-2); }
@media (max-width: 600px) { .lr-sheet-hint { display: block; } }
@media print {
  .lr-prose .sheet .sheet-src { display: block !important; margin-top: 10mm; padding-top: 3mm; border-top: 1px solid #bbb; font-size: 8.5pt; color: #444 !important; }
  .lr-sheet-hint { display: none !important; }
  /* 給長輩的表單（.sheet.lg）：字級與勾選框照「長者看得清楚的衛教單」的建議 */
  .lr-art.is-print .lr-prose .sheet.lg { font-size: 14pt; }
  .lr-art.is-print .lr-prose .sheet.lg .tbl { font-size: 14pt; }
  .lr-art.is-print .lr-prose .sheet.lg .tbl th, .lr-art.is-print .lr-prose .sheet.lg .tbl td { padding: 3.2mm 2.4mm; }
  .lr-art.is-print .lr-prose .sheet.lg td.box::before { width: 6.5mm; height: 6.5mm; border-width: 2px; }
}
.lr-prose .sheet.lg .tbl { font-size: 16px; }
.lr-prose .sheet.lg .tbl thead th { font-weight: 800; }
.lr-prose .sheet.lg td.box::before { width: 22px; height: 22px; border-width: 2px; }
.lr-practice-a { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.lr-practice-a small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.lr-404-paths { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; }
.lr-404-paths a { display: block; padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.lr-404-paths a:hover { text-decoration: none; border-color: var(--brand); }
.lr-path-d { margin-top: 4px; font-size: 13px; color: var(--muted); }
.lr-idx-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.lr-idx-hd .lr-idx-h { margin-bottom: 0; }
.lr-idx-hd > span { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--muted); }
/* 點擊區：連結本身撐開（以前 padding 在 li 上，點到空白沒反應） */
.lr-idx li { padding: 0; }
.lr-idx li a { display: block; padding: 11px 0; }
.lr-idx li .lr-chip { align-self: center; }
.lr-toc-m ol a { display: block; padding: 6px 0; }
.lp-foot nav a { display: block; padding: 6px 0; }
@media (max-width: 600px) {
  .lr-hero:not(.is-cat) .lr-hero-art { display: none; }
  .lr-hero:not(.is-cat) { padding-bottom: 32px; }
  .lp-foot nav a { padding: 10px 0; }
}

@media print {
  /* 觀察評分表：註記欄寫原話，列高加大把一頁用滿 */
  .lr-art.is-print .lr-prose .rubric-tbl tbody td { height: 19mm; vertical-align: top; }
}

/* ---------------------------------------------------------------- 11/23 晚 UX 修正 */
/* 「要避免的做法」清單：灰色 ✕，不用綠勾（綠勾看起來像建議照做） */
.lr .avoid { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.lr .avoid li { position: relative; padding-left: 32px; line-height: 1.75; }
.lr .avoid li::before {
  content: ""; position: absolute; left: 0; top: .25em; width: 20px; height: 20px; border-radius: 6px; background-color: var(--bg-2);
  border: 1px solid var(--line-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.5 3.5l5 5M8.5 3.5l-5 5' stroke='%23646E71' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 12px;
}
/* 中文標題：balance 會把詞切成兩半（「說一／次」），pretty 只避免最後一行剩一個字 */
.lr-art-head h1, .lr-hero h1, .lr-sec h2 { text-wrap: pretty; }
.lr-hero h1 em { white-space: nowrap; }   /* 「實用指南」不拆開 */
/* 可列印文章：表單上方的列印列 */
.lr-sheet-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 36px !important;
  padding: 12px 16px; border-radius: 14px; background: var(--brand-soft); scroll-margin-top: 90px; }
.lr-sheet-bar p { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.lr-sheet-bar + .sheet { margin-top: 16px; }
/* 工具卡（手機）：圖示和標題同一行，說明用滿寬度 */
.lr-tool-pw { font-size: 12px; color: var(--muted); white-space: nowrap; }
.lr-side-cta-pw { font-size: 12px; color: var(--muted); }
@media (max-width: 600px) {
  .lr-tool { grid-template-columns: 40px minmax(0, 1fr); grid-template-areas: "ic k" "ic t" "d d" "a a"; gap: 2px 12px; padding: 16px; }
  .lr-tool-b { display: contents; }
  .lr-tool-ic { grid-area: ic; width: 40px; height: 40px; border-radius: 12px; align-self: center; }
  .lr-tool-k { grid-area: k; } .lr-tool-t { grid-area: t; }
  .lr-tool-d { grid-area: d; margin-top: 8px; }
  .lr-tool-a { grid-area: a; margin-top: 10px; flex-wrap: wrap; }
}
/* 列印：系統是深色模式時，強制改回淺色（深色變數的選擇器權重比 :root 高，要用同樣權重蓋掉） */
@media print {
  :root, :root[data-theme], :root:not([data-theme="light"]) {
    --bg: #fff !important; --bg-2: #F3F3F1 !important; --surface: #fff !important; --surface-2: #fff !important;
    --ink: #000 !important; --ink-2: #222 !important; --muted: #444 !important; --line: #ccc !important; --line-2: #bbb !important;
    --brand: #0D6B65 !important; --brand-ink: #094E4A !important; --brand-soft: #E2F0EE !important; --on-brand: #fff !important;
    --med: #2D5DA6 !important; --med-soft: #E9EFF9 !important; --voice: #B4532A !important; --voice-soft: #FBEEE6 !important;
    --ok: #2F7D4F !important; --ok-soft: #E5F3EA !important; --warn: #A86A12 !important; --warn-soft: #FBF1DE !important;
    --danger: #BF3B2F !important; --danger-soft: #FBE8E5 !important;
    color-scheme: light;
  }
  .lp, .lr, .au { --muted: #444 !important; }
  html, body, .lr, main, .lr-art, .lr-art-grid, .lr-art-main { background: #fff !important; color: #000 !important; }
  .lr-sheet-bar { display: none !important; }
}
.lr-art-head h1 .ph { display: inline-block; }   /* 標題片語不拆行（learn.py _phrase） */
.lr .avoid strong { background: none; font-weight: 700; }   /* 錯誤做法不加品牌色螢光底 */
/* 11/24：一個分類可以有兩張工具卡；「檢查我的衛教」用石板藍灰 */
.lr-tool + .lr-tool { margin-top: 12px; }
.lr-tool.is-chk .lr-tool-ic { background: var(--chk-soft); color: var(--chk); }
.lr-tool.is-chk { border-left-color: var(--chk); }

/* ======================================================================== 產品頁（12/01：/features/、/for/；app/pages.py） */
.pg-hero { background: linear-gradient(180deg, var(--brand-soft), transparent 92%); padding: 28px 0 40px; }
.pg-hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.pg-kicker { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--brand-ink); margin-top: 6px; }
.pg h1 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.3; font-weight: 900; letter-spacing: .01em; margin-top: 10px; }
.pg h1 .ph { display: inline-block; }
.pg-lead { margin-top: 16px; font-size: 17px; line-height: 1.85; color: var(--ink-2); max-width: 34em; }
.pg-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.pg-note { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.pg-hero-art img { width: 100%; height: auto; border-radius: 24px; border: 6px solid var(--surface); box-shadow: 0 24px 48px -28px rgba(16, 40, 38, .45); display: block; }
.pg-answer { margin-top: 8px; padding: 22px 26px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--brand); }
.pg-answer-t { margin-top: 6px; font-size: 16.5px; line-height: 1.9; color: var(--ink); }
.pg-sec h2 { font-size: clamp(23px, 2.8vw, 30px); }
.pg-sec h3 { font-size: 17px; font-weight: 800; line-height: 1.45; }
.pg-pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
.pg-pain { padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.pg-pain p, .pg-feat p, .pg-use p, .pg-steps p { margin-top: 6px; color: var(--ink-2); line-height: 1.8; font-size: 15px; }
.pg-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); margin-bottom: 12px; }
.pg-ic .i { width: 22px; height: 22px; }
.pg-steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; counter-reset: s; }
.pg-steps li { display: flex; gap: 14px; padding: 20px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); }
.pg-step-n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--on-brand, #fff); font-weight: 800; }
.pg-feats, .pg-uses { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 26px; }
.pg-feat { padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); border-top: 4px solid var(--brand); }
.pg-use { padding: 22px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); display: flex; flex-direction: column; }
.pg-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 12px; font-weight: 700; font-size: 14.5px; color: var(--brand-ink); min-height: 40px; }
.pg-more .i { width: 16px; height: 16px; }
.pg-sample { margin: 26px 0 0; }
.pg-sample img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 18px 40px -30px rgba(16, 40, 38, .5); }
.pg-sample figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.pg-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.pg-topic { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.pg-topic:hover { text-decoration: none; border-color: var(--brand); }
.pg-topic img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.pg-topic span { padding: 12px 14px; font-weight: 700; line-height: 1.5; font-size: 15px; }
.pg-all { margin-top: 16px; font-weight: 700; }
.pg-reads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.pg-faq { padding: 64px 0 24px; max-width: 860px; }
.pg-rel, .pg-hub { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.pg-hub { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 0; }
.pg-rel-i, .pg-hub-i { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.pg-rel-i:hover, .pg-hub-i:hover { text-decoration: none; border-color: var(--brand); box-shadow: 0 14px 30px -24px rgba(16, 40, 38, .5); }
.pg-rel-i img, .pg-hub-i img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.pg-rel-k { display: block; padding: 12px 14px 0; font-size: 12.5px; color: var(--muted); letter-spacing: .06em; }
.pg-rel-t { display: block; padding: 2px 14px 14px; font-weight: 800; line-height: 1.5; }
.pg-hub-b { display: flex; flex-direction: column; flex: 1; padding-bottom: 6px; }
.pg-hub-b .pg-rel-k { padding: 16px 20px 0; }
.pg-hub-t { padding: 4px 20px 0; font-size: 19px; font-weight: 900; }
.pg-hub-d { padding: 6px 20px 0; color: var(--ink-2); line-height: 1.75; font-size: 14.5px; }
.pg-hub-b .pg-more { padding: 12px 20px 10px; }
.pg-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pg-chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.pg-chips a:hover { text-decoration: none; border-color: var(--brand); color: var(--brand-ink); }
.pg-band { margin: 56px 0 0; background: linear-gradient(135deg, #0B4F4A, #13867C); color: #fff; }
.pg-band-in { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding: 48px 0; }
.pg-band h2 { font-size: clamp(22px, 2.8vw, 30px); font-weight: 900; color: #fff; }
.pg-band p { margin-top: 8px; color: #D7ECE8; font-size: 16px; }
.pg-band-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.pg-btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .6); }
.pg-btn-ghost:hover { background: rgba(255, 255, 255, .12); text-decoration: none; color: #fff; }
.pg-others { padding: 28px 0 8px; }
.pg-others div { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; }
.pg-others a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink-2); font-weight: 600; }
@media (max-width: 900px) {
  .pg-hero-in { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .pg-hero-art { order: -1; }
  .pg-pains { grid-template-columns: minmax(0, 1fr); }
  .pg-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-rel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-hub, .pg-reads { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .pg-hero { padding: 16px 0 28px; }
  .pg-lead { font-size: 16px; }
  .pg-cta .btn { flex: 1 1 100%; justify-content: center; }
  .pg-answer { padding: 18px; }
  .pg-topics { grid-template-columns: minmax(0, 1fr); }
  .pg-band-cta .btn { flex: 1 1 100%; justify-content: center; }
}
.pg-sample { max-width: 980px; margin-inline: auto; }
.pg-sample.portrait { max-width: 560px; }
.pg-band-cta { align-items: center; }
.pg-band-cta .btn { margin-top: 0; height: 52px; padding: 0 26px; font-size: 16px; }
.pg-topic span { display: flex; flex-direction: column; gap: 2px; }
.pg-topic b { font-size: 16px; font-weight: 900; }
.pg-topic small { font-size: 13px; font-weight: 500; color: var(--ink-2); line-height: 1.55; }
/* 衛教主題分類頁（12/01）：依專科跳到、插圖卡 */
.lr-topic-jump { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 24px; }
.lr-topic-jump a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 14.5px; }
.lr-topic-jump a:hover { text-decoration: none; border-color: var(--brand); color: var(--brand-ink); }
.lr-topic-jump span { font-size: 12px; color: var(--muted); }
.lr-topic-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 18px; }
@media (max-width: 1100px) { .lr-topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .lr-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .lr-topic-grid { grid-template-columns: minmax(0, 1fr); } }
.pg-band a.lp-btn-light, .pg-band a.lp-btn-light:visited { color: #0B4F4A; }   /* 深色模式的連結色不能套到白底按鈕上 */
