.plant-library {
    --library-teal: #114749;
    --library-line: #cdd9d3;
    width: min(1200px, calc(100% - clamp(36px, 8vw, 112px)));
    margin-inline: auto;
    padding-block: clamp(38px, 5vw, 76px) clamp(60px, 7vw, 98px);
    font-family: Plant, "Malgun Gothic", sans-serif;
    word-break: keep-all;
    overflow-wrap: anywhere;
}
.plant-library-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--library-teal);
}
.plant-library-head h1 {
    margin: 0;
    color: var(--library-teal);
    font: 760 clamp(36px, 4.2vw, 62px)/1.12 Plant, sans-serif;
    letter-spacing: -.065em;
}
.plant-library-head p { max-width: 345px; margin: 0; color: #50635e; font-size: 16px; line-height: 1.55; }
.plant-library-posts { margin-block-start: 24px; }
.plant-library-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 36px 26px; }
.plant-library-card,.plant-library-body { min-width: 0; }
.plant-library .plant-library-media {
    display: grid;
    aspect-ratio: 16/10;
    place-items: center;
    background: #edf2ef;
    border-radius: 8px;
    overflow: hidden;
}
.plant-library-media > img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.plant-library-placeholder { display: grid; width: 100%; height: 100%; place-items: center; background: #e5eeea; }
.plant-library-placeholder img { width: 50px; height: 50px; }
.plant-library-body { padding-block-start: 16px; }
.plant-library-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #52645f; }
.plant-library-meta span { font-weight: 680; color: var(--library-teal); }
.plant-library-meta time { font-variant-numeric: tabular-nums; }
.plant-library-card h2 {
    margin: 8px 0 0;
    color: #173b39;
    font: 720 clamp(20px, 1.6vw, 25px)/1.36 Plant, sans-serif;
    letter-spacing: -.045em;
}
.plant-library-card p { margin: 8px 0 0; color: #50605c; font-size: 15px; line-height: 1.6; }
.plant-library a { text-decoration: none; color: inherit; }
.plant-library-card h2 a:hover { text-decoration: underline; text-underline-offset: .17em; }
.plant-library a:focus-visible { outline: 3px solid #a46f17; outline-offset: 3px; }
.plant-library-grid.has-feature { display: block; }
.has-feature .plant-library-card {
    display: grid;
    grid-template-columns: 1fr 1.12fr;
    align-items: center;
    border-radius: 10px;
    background: #eaf0eb;
}
.has-feature .plant-library-media { border-radius: 10px 0 0 10px; background: #dbe4df; }
.has-feature .plant-library-body { padding: clamp(22px, 3.2vw, 48px); }
.has-feature h2 { max-width: 16em; font-size: clamp(25px, 2.7vw, 40px); line-height: 1.19; }
.has-feature p { max-width: 32em; margin-top: 14px; }
.plant-library .plant-library-read { display: inline-flex; align-items:center; gap: 16px; padding: 9px 16px; margin-top: 20px; border: 1px solid #b4c5bb; border-radius: 5px; color: var(--library-teal); font-size: 14px; font-weight: 660; }
.plant-library-read:hover { background: white; }
.plant-library-empty { padding-block:24px; }
.plant-library-empty a { text-decoration:underline; }
.plant-library-pages ul { display:flex; flex-wrap:wrap; justify-content:center; gap:6px; margin:38px 0 0; padding:0; list-style:none; }
.plant-library-pages .page-numbers:not(ul) { display:grid; place-items:center; min-width:44px; min-height:44px; padding-inline:8px; border:1px solid var(--library-line); border-radius:5px; }
.plant-library-pages .current { color:white; background:var(--library-teal); }
@media (max-width:1023px) {
    .plant-library-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:26px 20px; }
    .plant-library-head { align-items:flex-start; flex-direction:column; gap:12px; }
    .plant-library-head p { max-width: none; }
}
@media (max-width:639px) {
    .plant-library-grid,.has-feature .plant-library-card { grid-template-columns:minmax(0,1fr); }
    .plant-library-grid { gap:28px; }
    .plant-library-head { padding-bottom:18px; }
    .plant-library-head p { font-size:15px; }
    .plant-library-posts { margin-top:18px; }
    .has-feature .plant-library-media { border-radius:10px 10px 0 0; }
    .has-feature .plant-library-body { padding:20px; }
}
