/* 课程目录：儿童友好卡片（一张图 + 大字 + 一个按钮；详细内容折叠给家长看） */
.learning-hero .hero-description{display:none}
#outline-list{grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:18px;align-items:start}
#outline-list .lc-card.kid-card{position:relative;gap:0;padding:0;overflow:hidden;border:2px solid #e3ebe0;border-radius:22px;background:#fff;box-shadow:0 4px 14px rgba(49,91,60,.07);transition:transform .15s ease,box-shadow .15s ease}
#outline-list .kid-card:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(49,91,60,.13)}
#outline-list .kid-card.is-current{border-color:var(--mc-forest,#315b3c);box-shadow:0 0 0 3px rgba(49,91,60,.15)}
#outline-list .kid-card.is-past{background:#fff}
#outline-list .kid-card.is-past .kid-pic img{filter:saturate(.75)}
.kid-pic{position:relative;display:block;width:100%;aspect-ratio:4/3;padding:0;border:0;background:#f4f7f1;cursor:pointer}
.kid-pic img{display:block;width:100%;height:100%;object-fit:cover}
.kid-num{position:absolute;left:12px;top:12px;display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:var(--mc-forest,#315b3c);color:#fff;font:700 24px/1 "Noto Sans",sans-serif;box-shadow:0 2px 8px rgba(0,0,0,.18)}
.kid-pic .day-tag{position:absolute;right:12px;top:14px;padding:4px 12px!important;border-radius:999px;background:#e8737a;color:#fff;font-size:14px!important;font-weight:600}
.kid-pic .day-tag.kid-trial{top:auto;bottom:12px;background:#fff;color:#a4474d}
.kid-body{display:grid;gap:8px;padding:14px 18px 4px;text-align:center}
.kid-body p{margin:0}
.kid-date{color:var(--mc-muted,#66756b);font-size:15px;font-weight:600}
.kid-texts{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}
.kid-texts span{padding:3px 10px;border-radius:999px;background:#fdeceb;color:#8d3b41;font-size:15px;line-height:1.5}
.kid-texts span::before{content:"📖 ";font-size:13px}
.kid-chars{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}
.kid-chars b{display:grid;place-items:center;width:44px;height:44px;border:1.5px solid #cfe0c9;border-radius:10px;background:#f6faf4;color:var(--mc-ink,#1f2a22);font:400 30px/1 "Kaiti SC",STKaiti,KaiTi,"楷体",serif}
.kid-chars em{align-self:center;color:var(--mc-muted,#66756b);font-style:normal;font-size:15px;font-weight:600}
.kid-tags{display:flex;justify-content:center}
.kid-tag{padding:3px 12px;border-radius:999px;background:#eef3ff;color:#3d5a8c;font-size:15px}
.kid-tag.kid-py{font-family:"Noto Sans",sans-serif}
.kid-tag.kid-stroke{background:#fff4dc;color:#7a5a12}
.kid-tag.kid-py::before{content:"🔤 "}
.kid-tag.kid-stroke::before{content:"✏️ "}
#outline-list .kid-go{align-self:center;margin:12px auto 10px;min-height:48px;padding:0 30px;border:0;border-radius:999px;background:var(--mc-forest,#315b3c);color:#fff;font-size:18px;font-weight:700}
#outline-list .kid-go:hover,#outline-list .kid-go:focus-visible{background:#24452d}
.kid-more{border-top:1px dashed #e3ebe0;font-size:14px}
.kid-more summary{padding:10px 18px;color:var(--mc-muted,#66756b);text-align:center;cursor:pointer;list-style:none}
.kid-more summary::-webkit-details-marker{display:none}
.kid-more summary::after{content:" ▾"}
.kid-more[open] summary::after{content:" ▴"}
.kid-more dl{padding:0 18px 16px;margin:0!important}
@media(max-width:560px){#outline-list{grid-template-columns:1fr}.kid-chars b{width:40px;height:40px;font-size:27px}}
.kid-texts em{align-self:center;color:var(--mc-muted,#66756b);font-style:normal;font-size:14px;font-weight:600}
.kid-pic.kid-pic-wide{aspect-ratio:16/9}
@media(max-width:560px){.kid-pic{aspect-ratio:16/10}}
/* 用系统楷体（不用网站自带的 ClassroomKai） */
.kid-chars b,.kid-more .lc-chars,.kid-more .lc-combo{font-family:"Kaiti SC",STKaiti,KaiTi,"楷体",serif!important;font-weight:400!important}
.kid-chars{flex-wrap:nowrap}
.warm-review{margin-bottom:14px}
.warm-review summary{cursor:pointer;list-style:none}
.warm-review summary::-webkit-details-marker{display:none}
.warm-review summary::after{content:" ▾";color:var(--mc-muted,#66756b)}
.warm-review[open] summary::after{content:" ▴"}
/* 认字、写一写：本课汉字放在上面一行（可左右滑动），下面是图或田字格，不再占右边/左边一整列 */
.visual-lesson #flow-stage.stage-write,.visual-lesson #flow-stage.stage-learn{display:flex!important;flex-direction:column!important;gap:12px!important}
.visual-lesson .stage-write .write-picker,.visual-lesson .stage-learn .visual-character-picker.grouped{order:-1;display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center;gap:6px!important;width:100%!important;max-height:none!important;height:auto!important;overflow-x:auto!important;overflow-y:hidden!important;padding:6px 4px 10px!important;margin:0!important;scrollbar-width:thin}
.visual-lesson .stage-write .write-picker:before{content:none!important;display:none!important}
.visual-lesson .stage-write .write-group,.visual-lesson .stage-learn .pick-group{display:contents!important}
.visual-lesson .stage-write .write-picker button{flex:0 0 auto;width:50px!important;height:50px!important;font-size:32px!important}
.visual-lesson .stage-learn .pick-group button{flex:0 0 auto;width:60px!important;min-height:60px!important}
.visual-lesson .stage-learn .pick-big{font-size:34px!important}
.visual-lesson .stage-learn>.visual-character-picker{grid-row:auto!important}
.visual-lesson #flow-stage.stage-learn{align-items:stretch!important}
.visual-lesson .stage-learn>div:not(.visual-character-picker){width:100%;max-width:720px;margin:0 auto;align-self:center}
.visual-lesson .stage-learn .picture-stage{height:clamp(220px,42vh,380px)!important}
.visual-lesson .stage-learn .kids-actions{justify-content:center}
.visual-lesson #flow-stage.stage-write{align-items:stretch!important}

/* Keep lesson numbers quiet and readable over the card artwork. */
html body #outline-list .kid-pic .kid-num{
  left:10px!important;
  top:10px!important;
  width:30px!important;
  height:30px!important;
  padding:0!important;
  border:1px solid #d7e3d7!important;
  border-radius:6px!important;
  background:#fff!important;
  background-image:none!important;
  box-shadow:none!important;
  color:#315b3c!important;
  font:600 15px/1 "Noto Sans",Arial,sans-serif!important;
}

/* The lesson scheduled for this calendar week is marked by its border alone. */
html body #outline-list .kid-card.is-week{
  border:4px solid #315b3c!important;
  box-shadow:none!important;
}

/* Keep classroom controls in one readable UI font. */
html body .visual-lesson .warm-top,
html body .visual-lesson .warm-top button,
html body .visual-lesson .flow-steps button,
html body .visual-lesson .panel-buttons > *,
html body .visual-lesson .flow-nav,
html body .visual-lesson .flow-nav button,
html body #activities .pair-cue-modes button{
  font-family:"Noto Sans SC","Noto Sans",Arial,sans-serif!important;
  letter-spacing:0!important;
}

/* The icon label appears promptly on hover and keyboard focus. */
html body #activities .mini-card{position:relative}
html body #activities .mini-card::after{
  content:attr(data-label);
  position:absolute;
  left:50%;bottom:calc(100% + 8px);
  transform:translate(-50%,4px);
  padding:5px 9px;
  border-radius:7px;
  background:#315b3c;color:#fff;
  font:500 13px/1.3 "Noto Sans SC","Noto Sans",Arial,sans-serif;
  white-space:nowrap;pointer-events:none;opacity:0;
  transition:opacity .12s ease .3s,transform .12s ease .3s;
  z-index:10;
}
html body #activities .mini-card:is(:hover,:focus-visible)::after{opacity:1;transform:translate(-50%,0)}
html body #activities .hub-next{flex:none;border:1px solid #c8d8c8;background:#fff;color:#315b3c;border-radius:50%;width:38px;height:38px;font:600 24px/1 "Noto Sans",Arial,sans-serif;cursor:pointer}
html body #activities .hub-next:hover,html body #activities .hub-next:focus-visible{background:#eaf2e8}
