/* Scoped to the library so theme form/list rules cannot squeeze its cards. */
.mhp-tool.mhp-library{color:#293d33;font:16px/1.6 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.mhp-tool.mhp-library *{box-sizing:border-box}
.mhp-tool .mhp-checker-header h1{font:400 clamp(1.8rem,4vw,2.5rem)/1.2 Georgia,serif;color:#293d33;margin:0 0 1rem}
.mhp-tool.mhp-library>p{max-width:72ch}
.mhp-tool .mhp-checker-header .mhp-library-nav{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0 1.5rem}
.mhp-tool .mhp-checker-header .mhp-library-nav a{display:inline-block;padding:.6rem 1rem;border:1px solid #d6ddd3;border-radius:24px;text-decoration:none;color:#3e5947;background:transparent;font-size:.9rem;line-height:1.5}
.mhp-tool .mhp-checker-header .mhp-library-nav a[aria-current=page]{background:#eaf0e6;border-color:#b2c1aa;font-weight:650}
.mhp-tool.mhp-library .mhp-library-search{margin:1.5rem 0;padding:0;border:0;background:none}
.mhp-tool.mhp-library .mhp-library-search label{display:block;font-size:.9rem;font-weight:600;margin:0 0 .5rem}
.mhp-tool.mhp-library .mhp-library-search>div{display:flex;align-items:stretch;gap:.65rem}
.mhp-tool.mhp-library .mhp-library-search input{flex:1;min-width:0;width:100%;margin:0;border:1px solid #b8c4b4;border-radius:10px;padding:.8rem 1rem;font:inherit;background:#fffdf9;color:#293d33;min-height:48px}
.mhp-tool.mhp-library .mhp-library-search button{flex:0 0 auto;width:auto;margin:0;padding:.8rem 1.15rem;border:1px solid #435c47;border-radius:10px;background:#435c47;color:#fff;font:600 .9rem/1.5 system-ui,sans-serif;cursor:pointer;min-height:48px}
.mhp-tool.mhp-library .mhp-library-search button:hover{background:#334b38}
.mhp-tool.mhp-library .mhp-library-toolbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem;padding:1rem 0;margin:0 0 .6rem;border-bottom:1px solid #dddcd3}
.mhp-tool.mhp-library .mhp-library-result-count{margin:0;font-size:.85rem;color:#647061;line-height:1.65}
.mhp-tool.mhp-library .mhp-library-result-count strong{font-size:1rem;font-weight:650;color:#293d33}
.mhp-tool.mhp-library .mhp-library-page-size{display:flex;align-items:center;flex-wrap:wrap;gap:.6rem;width:auto;margin:0 0 0 auto;padding:0;border:0;background:none}
.mhp-tool.mhp-library .mhp-library-page-size label{font-size:.8rem;font-weight:500;color:#5d685a;margin:0}
.mhp-tool.mhp-library .mhp-library-page-size select{display:block;width:auto;max-width:100%;min-width:140px;min-height:44px;margin:0;border:1px solid #b8c4b4;border-radius:8px;padding:.6rem 2rem .6rem .8rem;background-color:#fffdf9;color:#354d3b;font:inherit;font-size:.9rem}
.mhp-tool.mhp-library ul.mhp-library-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:1rem;list-style:none!important;padding:0!important;margin:1rem 0!important}
.mhp-tool.mhp-library li.mhp-library-card{display:block;list-style:none!important;position:relative;float:none;width:auto;min-width:0;margin:0;padding:1.5rem;border:1px solid #dedfd6;border-radius:14px;background:#fffdf9;box-shadow:0 3px 12px rgb(45 61 43 / 3%);text-align:left}
.mhp-tool.mhp-library li.mhp-library-card-with-photo{display:grid;grid-template-columns:88px minmax(0,1fr);align-items:start;gap:1rem}
.mhp-tool.mhp-library .mhp-library-card-body{display:flex;flex-direction:column;min-width:0;height:100%;width:100%}
.mhp-tool.mhp-library .mhp-library-card h2{font:400 1.2rem/1.4 Georgia,serif!important;color:#293d33;margin:0 0 .5rem!important;word-break:normal;overflow-wrap:break-word;hyphens:none}
.mhp-tool.mhp-library .mhp-library-card h2 a{color:inherit;text-decoration:none!important;font:inherit}
.mhp-tool.mhp-library .mhp-library-card h2 a:hover{text-decoration:underline!important;text-underline-offset:.2rem}
.mhp-tool.mhp-library .mhp-library-open{display:inline-block;align-self:flex-start;color:#3d5c42;font:600 .86rem/1.5 system-ui,sans-serif;text-decoration:underline;text-underline-offset:.25rem}
.mhp-tool.mhp-library .mhp-library-card .mhp-library-open{margin-top:auto}
.mhp-tool.mhp-library .mhp-library-card-warning{font-size:.73rem;line-height:1.6;color:#73796c;margin:.9rem 0 0;padding-top:.8rem;border-top:1px solid #ecebe3}
.mhp-tool.mhp-library .mhp-library-photo{width:88px;margin:0;min-width:0;text-align:center}
.mhp-tool.mhp-library .mhp-library-photo img{display:block;width:88px;max-width:100%;height:110px;object-fit:contain;border-radius:6px;background:#fff}
.mhp-tool.mhp-library .mhp-library-photo .mhp-photo-credit{display:block;font-size:.65rem;line-height:1.5;color:#6b7466;overflow-wrap:anywhere;margin-top:.5rem}
.mhp-tool.mhp-library .mhp-library-pagination{display:flex;justify-content:space-between;flex-wrap:wrap;gap:1rem;margin:1.5rem 0}
.mhp-tool.mhp-library .mhp-library-pagination a{color:#3d5c42;font-size:.9rem;text-underline-offset:.2rem}
.mhp-tool.mhp-library .mhp-library-not-found{border-top:1px solid #dddcd3;padding-top:1.5rem;margin-top:2rem}
.mhp-tool.mhp-library .mhp-library-not-found h2{font:400 1.45rem/1.4 Georgia,serif;margin:0 0 .6rem;color:#293d33}
.mhp-tool.mhp-library .mhp-library-not-found p{font-size:.9rem;color:#647061;max-width:65ch}
.mhp-tool.mhp-library .mhp-library-scope,.mhp-tool.mhp-library .mhp-library-warning{font-size:.8rem;line-height:1.65;color:#6a7463;margin:1rem 0 0}
.mhp-tool.mhp-library :is(a,button,input,select):focus-visible{outline:3px solid #6d8162;outline-offset:3px}
@media(max-width:850px){.mhp-tool.mhp-library ul.mhp-library-grid{grid-template-columns:1fr}}
@media(max-width:480px){.mhp-tool.mhp-library .mhp-library-search>div{flex-direction:column}.mhp-tool.mhp-library .mhp-library-search button{width:100%}.mhp-tool.mhp-library li.mhp-library-card{padding:1.15rem}.mhp-tool.mhp-library li.mhp-library-card-with-photo{grid-template-columns:64px minmax(0,1fr);gap:.8rem}.mhp-tool.mhp-library .mhp-library-photo,.mhp-tool.mhp-library .mhp-library-photo img{width:64px}.mhp-tool.mhp-library .mhp-library-photo img{height:85px}.mhp-tool.mhp-library .mhp-library-page-size{margin-left:0}.mhp-tool.mhp-library .mhp-library-toolbar{align-items:flex-start}}


.mhp-tool .mhp-checker-header{display:block;position:static;width:100%;margin:0 0 1.5rem;padding:0;border:0;background:none;box-shadow:none;text-align:left}.mhp-tool .mhp-checker-section-title{font:400 1.45rem/1.4 Georgia,serif;margin:0 0 .75rem;color:#293d33}.mhp-tool .mhp-checker-header .mhp-library-nav a:focus-visible{outline:3px solid #6d8162;outline-offset:3px}
.mhp-tool.mhp-library .mhp-library-card .mhp-library-advice{margin:.5rem 0 1rem;font-size:.95rem;line-height:1.5;font-weight:600;color:#5b6656}.mhp-tool.mhp-library .mhp-library-card .mhp-library-advice-prefer_alternative{color:#8c3932}.mhp-tool.mhp-library .mhp-library-card .mhp-library-advice-recommended{color:#345e42}.mhp-tool.mhp-library .mhp-library-card .mhp-library-card-warning{margin-top:auto}.mhp-tool.mhp-library .mhp-library-card h2 a{text-decoration:underline!important;text-decoration-color:#b3bfae!important;text-underline-offset:.22rem}

/* Separate verdict and explanation; native, keyboard-accessible disclosure. */
.mhp-tool.mhp-library .mhp-library-card .mhp-library-advice{margin-bottom:1rem}
.mhp-tool.mhp-library .mhp-library-card .mhp-library-advice-reason{margin:0 0 1rem;font-size:.95rem;line-height:1.65;font-weight:400;color:#39483d}
.mhp-tool.mhp-library .mhp-library-ingredient-details{margin:0 0 1.25rem;border-top:1px solid #e5e8df;padding-top:.75rem}
.mhp-tool.mhp-library .mhp-library-ingredient-details>summary{cursor:pointer;font-weight:600;line-height:1.5;color:#345e42}
.mhp-tool.mhp-library .mhp-library-ingredient-details>summary:focus-visible{outline:2px solid #345e42;outline-offset:4px}
.mhp-tool.mhp-library .mhp-library-ingredient-detail-body{font-size:.9rem;line-height:1.65}
.mhp-tool.mhp-library .mhp-library-ingredient-detail-body p{margin:.75rem 0}
.mhp-tool.mhp-library .mhp-library-original-inci{white-space:pre-wrap;overflow-wrap:anywhere}

.mhp-tool.mhp-library .mhp-ingredient-verdict{display:block;width:36px;height:36px}
.mhp-public-library [hidden]{display:none!important}.mhp-public-library{max-width:1120px;margin:auto}.mhp-public-library details{overflow-wrap:anywhere}.mhp-public-library input{display:block;width:min(100%,550px);padding:12px;margin:12px 0;font:inherit;border:1px solid #87917f;border-radius:6px}.mhp-public-library button{font:inherit;padding:10px 18px;border:1px solid #435c47;border-radius:8px;background:#435c47;color:white;cursor:pointer}.mhp-public-library button:disabled{opacity:.45;cursor:default}.mhp-public-library :focus-visible{outline:3px solid #80613d;outline-offset:4px}.mhp-public-library nav{display:flex;gap:16px;align-items:center;justify-content:center}.mhp-public-library .mhp-library-advice{font-weight:650}.mhp-public-library .mhp-library-advice span{font-size:28px}@media(max-width:600px){.mhp-public-library ul.mhp-library-grid{grid-template-columns:1fr}}

.mhp-public-library .mhp-library-product-link{margin:1rem 0}
.mhp-public-library .mhp-library-product-link a{display:inline-block;max-width:100%;padding:.6rem .9rem;border:1px solid #b2c1aa;border-radius:12px;color:#293d33;background:#f2f5ef;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.mhp-public-library .mhp-library-product-link a:focus-visible{outline:3px solid #345e42;outline-offset:3px}
.mhp-public-library .mhp-library-new-tab{font-size:.85em}

.mhp-public-library .mhp-library-page-size{display:flex;flex-wrap:wrap;align-items:center;gap:.65rem;margin:1rem 0}
.mhp-public-library .mhp-library-page-size select{font:inherit;color:#293d33;background:#fff;border:1px solid #87917f;border-radius:6px;padding:.55rem .8rem;min-width:5rem;max-width:100%}

.mhp-public-library .mhp-library-controls{display:flex;align-items:flex-end;justify-content:space-between;gap:1.5rem;margin:1rem 0}
.mhp-public-library .mhp-library-query-label{display:block;flex:1 1 550px;max-width:550px;min-width:0}
.mhp-public-library .mhp-library-query-label input{width:100%;margin:.6rem 0 0}
.mhp-public-library .mhp-library-controls .mhp-library-page-size{flex:0 0 auto;display:flex;flex-direction:column;align-items:flex-start;gap:.6rem;margin:0}
.mhp-public-library .mhp-library-controls select{min-width:8rem;min-height:50px}
@media(max-width:700px){.mhp-public-library .mhp-library-controls{flex-wrap:wrap;gap:1rem}.mhp-public-library .mhp-library-query-label{flex-basis:100%;max-width:none}.mhp-public-library .mhp-library-controls .mhp-library-page-size{margin-left:auto;flex-direction:row;align-items:center}}

/* Shared label spacing and field dimensions; select aligns to the card edge. */
.mhp-public-library .mhp-library-controls{align-items:flex-start}
.mhp-public-library .mhp-library-controls .mhp-library-query-label,
.mhp-public-library .mhp-library-controls .mhp-library-page-size{display:flex;flex-direction:column;align-items:stretch;gap:10px;line-height:1.6;margin:0}
.mhp-public-library .mhp-library-controls .mhp-library-page-size{width:190px}
.mhp-public-library .mhp-library-controls input,
.mhp-public-library .mhp-library-controls select{box-sizing:border-box;display:block;width:100%;height:52px;min-height:52px;margin:0;padding:12px;font:inherit;line-height:1.4;border:1px solid #87917f;border-radius:6px;background:#fff;color:#293d33}
@media(max-width:700px){.mhp-public-library .mhp-library-controls .mhp-library-page-size{margin-left:auto;max-width:100%}}

.mhp-public-library .mhp-library-results-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin:1rem 0}
.mhp-public-library .mhp-library-results-toolbar [data-mhp-count]{margin:0}
.mhp-public-library .mhp-library-results-toolbar .mhp-library-page-size{display:flex;flex-direction:row;align-items:center;gap:.65rem;flex-wrap:wrap;margin:0 0 0 auto}
.mhp-public-library .mhp-library-results-toolbar select{min-width:5rem;width:auto;height:44px;min-height:44px;margin:0;padding:.5rem .75rem}
