.mp-library { margin: 26px 0 40px; padding: clamp(18px, 3vw, 32px); background: #f1f3eb; border: 1px solid #dce2d3; border-radius: 14px; scroll-margin-top: 140px; color: #29483d; }
.mp-library-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mp-eyebrow { color: #937039; font-size: 12px; letter-spacing: .13em; }
.mp-library h2 { font-family: 'Noto Serif TC', 'Songti TC', serif; margin: 10px 0; font-size: clamp(24px, 3vw, 30px); }
.mp-library-total { padding: 8px 12px; border: 1px solid #d6cfb6; border-radius: 24px; color: #7b653b; white-space: nowrap; font-size: 13px; }
.mp-library-intro, .mp-library-note { color: #697667; font-size: 14px; line-height: 1.9; }
.mp-categories { display: flex; flex-wrap: wrap; gap: 8px; margin: 23px 0 16px; }
.mp-categories a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px; background: #fffef9; border: 1px solid #d6ddcf; border-radius: 24px; text-decoration: none; font-weight: 700; }
.mp-categories a span { font-size: 12px; opacity: .75; font-weight: 400; }
.mp-categories a[aria-current] { background: #264f41; border-color: #264f41; color: #fff; }
.mp-filters { padding: 18px; background: #fffef9; border: 1px solid #dde2d5; border-radius: 10px; }
.mp-search-row { display: flex; align-items: end; gap: 12px; }
.mp-search-row label { flex: 1; }
.mp-filters label { display: grid; gap: 8px; font-size: 13px; font-weight: 600; min-width: 0; }
.mp-filters input, .mp-filters select { width: 100%; min-width: 0; height: 46px; padding: 10px 12px; font: inherit; color: #29483d; background: #fff; border: 1px solid #cbd5c5; border-radius: 6px; }
.mp-library button { cursor: pointer; font-family: inherit; }
.mp-search-row button { min-height: 46px; padding: 10px 17px; color: white; background: #264f41; border: 1px solid #264f41; border-radius: 6px; font-size: 14px; white-space: nowrap; }
.mp-search-row button span { margin-left: 12px; }
.mp-reset { padding: 12px 0; font-size: 13px; white-space: nowrap; text-underline-offset: 4px; }
.mp-more-filters { margin-top: 16px; border-top: 1px solid #e4e7dc; padding-top: 14px; }
.mp-more-filters summary { cursor: pointer; font-size: 13px; }
.mp-filter-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.mp-more-filters p { font-size: 12px; color: #697667; line-height: 1.8; margin-bottom: 0; }
.mp-result-summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; font-size: 13px; }
.mp-result-summary > span { color: #73806c; font-size: 12px; }
.mp-phrase-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mp-phrase-card { display: flex; flex-direction: column; position: relative; padding: 22px 20px 16px; background: #fffefb; border: 1px solid #dce1d5; border-radius: 9px; box-shadow: 0 3px 10px #31493605; min-width: 0; border-top: 3px solid #c9c3a5; }
.mp-phrase-meta { display: flex; justify-content: space-between; font-size: 12px; color: #788372; }
.mp-phrase-card h3 { font-family: 'Noto Serif TC', 'Songti TC', serif; color: #294c3f; font-weight: 600; font-size: 25px; line-height: 1.6; margin: 20px 0 10px; overflow-wrap: anywhere; white-space: pre-line; }
.mp-phrase-card h3[lang] { font-size: 21px; letter-spacing: 0; }
.mp-explanation { color: #667362; line-height: 1.9; font-size: 13px; margin: 0 0 18px; white-space: pre-line; }
.mp-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-bottom: 18px; }
.mp-tags a, .mp-religion { padding: 4px 7px; color: #6a775e; background: #f1f3e9; font-size: 12px; border-radius: 4px; text-decoration: none; }
.mp-tags .mp-religion { background: #f4eee1; color: #8b6c38; }
.mp-library .mp-copy { align-self: stretch; display: flex; align-items: center; justify-content: space-between; color: #315743; background: transparent; border: 0; border-top: 1px solid #e5e7dd; padding: 13px 0 0; min-height: 44px; font-size: 13px; text-align: left; }
.mp-library .mp-copy[hidden] { display: none; }
.hkf-public-design .mp-library .mp-copy { background: #edf2e8 !important; color: #315743 !important; border: 1px solid #d7dfcf !important; padding: 10px 13px !important; border-radius: 6px !important; }
.hkf-public-design .mp-library .mp-copy:hover { background: #e1ead9 !important; }
.mp-copy-status { font-size: 13px; line-height: 1.7; color: #315743; }
.mp-empty { grid-column: 1 / -1; padding: 30px; text-align: center; background: #fffef9; border: 1px dashed #cbd5c5; border-radius: 9px; }
.mp-pagination { margin: 24px 0; }
.mp-library a:focus-visible, .mp-library button:focus-visible, .mp-library input:focus-visible, .mp-library select:focus-visible, .mp-library summary:focus-visible { outline: 2px solid #a88444; outline-offset: 3px; }
.mp-library a:hover { color: #997334; }
@media (max-width: 900px) { .mp-phrase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
    .mp-library { margin-left: -4px; margin-right: -4px; scroll-margin-top: 120px; }
    .mp-library-heading { align-items: flex-end; gap: 8px; }
    .mp-library-total { padding: 7px 9px; font-size: 12px; margin-bottom: 12px; }
    .mp-search-row { flex-wrap: wrap; }
    .mp-search-row label { flex-basis: 100%; }
    .mp-search-row button { flex: 1; }
    .mp-reset { padding-left: 8px; }
    .mp-filters { padding: 14px; }
    .mp-filter-fields, .mp-phrase-grid { grid-template-columns: minmax(0, 1fr); }
    .mp-result-summary { display: block; padding-bottom: 16px; }
    .mp-result-summary p { margin-bottom: 5px; }
    .mp-categories { gap: 6px; }
    .mp-categories a { padding: 7px 11px; gap: 6px; font-size: 13px; }
    .mp-phrase-card { padding: 20px; }
}
