.poem-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}.poem-list a{text-decoration:none;color:inherit}.poem-list h3{margin:.6em 0}.poem-list p{font-size:16px}.poem-filters{display:flex;flex-wrap:wrap;gap:20px;margin:20px 0;align-items:center}.poem-filters input[type=search]{max-width:100%;padding:12px}.poem-flash{min-height:200px;display:flex;flex-direction:column;justify-content:center;text-align:center}.poem-flash h2{font-size:clamp(28px,5vw,58px);line-height:1.6;margin:12px 0;overflow-wrap:anywhere}.poem-flash p{color:#557573;line-height:1.8}.poem-full{text-align:center;line-height:2}.poem-page select{max-width:100%;padding:8px}.poem-page .wisdom-actions label{min-width:0;max-width:100%}.poem-page details{margin:24px 0}.poem-page summary{cursor:pointer;font-weight:bold}@media(max-width:600px){.poem-page .card{padding:24px 18px}.poem-list{grid-template-columns:1fr}.poem-flash{min-height:180px}.poem-filters label{max-width:100%}}

/* Keep text inside the rounded cards at every catalogue width. */
.poem-library,.poem-page,.poetry-home{min-width:0;padding-bottom:96px}
.poem-library>.btn,.poem-page>.btn{display:inline-flex;margin-bottom:20px}
.poem-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.poem-list>a.card{display:flex;flex-direction:column;min-width:0;box-sizing:border-box;padding:24px;border-radius:24px;overflow-wrap:anywhere}
.poem-list>a.card>small{display:block;color:#596a63;line-height:1.7;font-size:13px}
.poem-list h3{font-family:"Songti SC","STSong",serif;font-size:23px;line-height:1.5;margin:10px 0 12px;overflow-wrap:anywhere}
.poem-list p{margin:0;line-height:1.8;color:#4c5550}
.poem-textbook{display:inline-block;font:600 12px/1.6 sans-serif;vertical-align:middle;color:#375a5a;margin-left:6px;white-space:nowrap}
.poem-list>a:focus-visible{outline:3px solid #375a5a;outline-offset:3px}
.poem-filters{gap:14px 20px;align-items:end}
.poem-filters>label{display:flex;flex-direction:column;gap:8px;min-width:0;max-width:100%;font-size:14px;color:#4c5550}
.poem-library .poem-filters>label:first-child{flex:1 1 280px}
.poem-library .poem-filters>label:not(:first-child){flex:0 1 150px}
.poem-filters input[type=search],.poem-filters select{width:100%;min-width:0;max-width:100%;box-sizing:border-box;min-height:44px;border:1px solid var(--line);border-radius:12px;background:#fffdf7;color:var(--ink);font:inherit;padding:10px 12px}
.poem-page>.card,.poetry-home .card{min-width:0;box-sizing:border-box;padding:clamp(22px,4vw,40px);overflow-wrap:anywhere}
.poem-page .wisdom-actions{max-width:100%;flex-wrap:wrap}
.poem-page .wisdom-actions select{min-width:0;box-sizing:border-box;width:100%}
.poem-page .wisdom-actions label{flex:1 1 220px}
@media(max-width:900px){.poem-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
 .poem-list{grid-template-columns:minmax(0,1fr);gap:14px}
 .poem-list>a.card{padding:22px;border-radius:22px}
 .poem-list h3{font-size:22px}
 .poem-library .poem-filters>label:first-child{flex-basis:100%}
 .poem-library .poem-filters>label:not(:first-child){flex:1 1 110px}
 .poem-page>.card,.poetry-home .card{padding:24px 20px}
}

.poem-work-nav{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;margin:24px 0;padding-top:20px;border-top:1px solid var(--line)}
.poem-work-nav .btn{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:center}.poem-edge{font-size:14px;color:#596a63}
@media(max-width:600px){.poem-work-nav .btn{flex:1 1 100%}}

.poem-appreciation{margin:28px 0 8px;padding:22px 24px;border-radius:18px;background:rgba(222,237,230,.45);text-align:left;min-width:0;overflow-wrap:anywhere}.poem-appreciation h2{font-size:20px;margin:0 0 12px}.poem-appreciation p{font-size:17px;line-height:1.95;margin:0;color:var(--ink)}
@media(max-width:600px){.poem-appreciation{padding:18px}.poem-appreciation p{font-size:16px}}

.poem-personal{margin-top:28px;padding-top:24px;border-top:1px solid var(--line)}.poem-personal h2{font-size:20px;margin:0 0 12px}.poem-personal label{display:block;margin-bottom:10px;color:#596a63}.poem-personal textarea{display:block;width:100%;box-sizing:border-box;resize:vertical;min-height:150px;padding:16px;border:1px solid var(--line);border-radius:14px;background:#fffdf7;color:var(--ink);font:inherit;line-height:1.8}.poem-personal p{font-size:13px;color:#596a63}
