/* Shared IEOON shell with the two existing children's activities. */
.kids-library{max-width:1160px;padding:0 28px 36px;margin:auto;font-family:'Noto Sans KR','Malgun Gothic',sans-serif;color:#24483b;word-break:keep-all}
.kids-library .cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:28px 0}
.kids-library article{border:1px solid #cbd3bf;border-radius:12px;overflow:hidden;background:#fcfbf7}
.kids-library article>a{display:flex;flex-direction:column;height:100%;text-decoration:none;color:inherit}
.kids-library article img{width:100%;height:260px;object-fit:contain;display:block;background:#f3efdf;padding:14px}
.kids-library article img.map{background:#eaf0e7;padding:24px}
.kids-library article div{padding:24px;display:flex;flex-direction:column;align-items:flex-start;flex:1}
.kids-library h2{font-family:'Noto Sans KR',sans-serif;font-size:25px;font-weight:700;line-height:1.5;margin:0;color:#24483b}
.kids-library article p{font-size:17px;line-height:1.85;margin:10px 0 22px;color:#526354}
.kids-library article strong{display:inline-flex;align-items:center;min-height:48px;margin-top:auto;border:1px solid #ad8a3d;border-radius:26px;background:#eddda2;padding:10px 20px;font-size:16px;font-weight:700;line-height:1.5;color:#244f40}
.kids-library article>a:hover strong{background:#e8d698}
.kids-library article>a:focus-visible{outline:3px solid #35634c;outline-offset:-4px}
.kids-library aside{border-top:1px solid #cdd5c3;padding:18px 0;font-size:16px;line-height:1.85;margin:0;color:#526354}
.kids-library aside a{display:inline-flex;align-items:center;min-height:44px;margin-left:12px;color:#244f40;text-underline-offset:4px}
html.large .kids-library article p{font-size:21px}html.large .kids-library article strong,html.large .kids-library aside{font-size:20px}
@media(max-width:760px){.kids-library{padding:0 18px 28px}.kids-library .cards{grid-template-columns:1fr;gap:20px;margin:24px 0}.kids-library article img{height:210px}.kids-library article div{padding:22px}.kids-library h2{font-size:23px}.kids-library article p{font-size:16px}.kids-library aside a{margin-left:0}}
.kids-library .cards article{border:1px solid #c6bda6;border-radius:14px;background:#faf7ee;box-shadow:none}.kids-library .cards article img{width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;background:#faf7ee}.kids-library .cards h2,.kids-library .cards strong{font-family:"Noto Sans KR","Malgun Gothic",sans-serif}.kids-library .cards strong{background:#f0dfa6;color:#393a30;border:1px solid #b1a07a;border-radius:22px}
.kids-library .cards{display:flex;gap:24px}
.kids-library .cards .activity-card{display:flex;flex:1;min-width:0;flex-direction:column;border:1px solid #E6DEC9;border-radius:16px;background:#FAF8F4;padding:24px}
.kids-library .activity-card .image-wrapper{padding:0;display:block;flex:none;width:100%;aspect-ratio:4/3;max-height:280px;border-radius:12px;overflow:hidden}
.kids-library .cards .image-wrapper img{display:block;width:100%;height:100%;padding:0;object-fit:cover;object-position:center}
.kids-library .activity-card .content-wrapper{padding:0}
.kids-library .activity-card h3{font:700 20px/1.45 "Noto Sans KR","Malgun Gothic",sans-serif;color:#1C1B1A;margin:16px 0 8px}
.kids-library .activity-card p{font:400 14px/1.5 Pretendard,"Noto Sans KR",sans-serif;color:#5A5447;margin:0 0 20px}
.kids-library .action-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin-top:auto;border-radius:999px;background:#EBDCB9;color:#3E382B;font-size:14px;font-weight:600;padding:10px 20px;text-decoration:none;transition:background-color .2s,transform .1s}
.kids-library .action-btn span{margin-left:6px}.kids-library .action-btn:hover{background:#DCC89E}.kids-library .action-btn:active{transform:scale(.98)}.kids-library .action-btn:focus-visible{outline:3px solid #35634c;outline-offset:3px}
@media(max-width:760px){.kids-library .cards{flex-direction:column}}
@media(min-width:761px){.kids-library .cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}

.kids-library .activity-card .series-thumb.kinship-thumb{background-image:none}
.kids-library .cards .kinship-thumb img{object-position:center 14%}
.kids-library .activity-card .content-wrapper{display:flex;flex-direction:column;flex:1;align-items:flex-start}

/* Cover the printed scroll beneath the shared activity-card title. */
.kids-library .kinship-thumb::before {
  content:"";
  position:absolute;
  inset:0 34% auto 36%;
  height:30%;
  background:linear-gradient(90deg,#f7f7ed,#f7f7ef,#f7f7ed);
  pointer-events:none;
}

/* Equal illustration windows and aligned actions across the activity grid. */
.kids-library .cards .activity-card .image-wrapper {
  width:100%;
  aspect-ratio:21 / 9;
  max-height:none;
  border-radius:12px;
}
.kids-library .cards .activity-card .image-wrapper img {
  width:100%;
  height:100%;
  object-fit:cover;
}
.kids-library .cards .activity-card {
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.kids-library .cards .activity-card .content-wrapper {flex:1}
.kids-library .cards .activity-card .action-btn {margin-top:auto}
@media(min-width:761px) {
  .kids-library .cards {grid-auto-rows:1fr}
}

.kids-library .activity-card .series-thumb.standalone-thumb {background-image:none}
