/* ============================================================================
   layout.css — hero, student bar, card grid, card chrome, footer
   ========================================================================== */

/* ============ HERO ============ */
.hero{
  position:relative;
  background:linear-gradient(180deg,var(--sky1),#dff3fd 78%);
  border:2px solid #fff;
  border-radius:14px;
  box-shadow:0 4px 12px #7db8d833;
  padding:10px 14px 28px;
  overflow:hidden;
  text-align:center;
}
.hero .cloud{position:absolute; background:#ffffffcc; border-radius:999px; filter:blur(1px);}
.hero .c1{width:78px;height:24px;top:9px;right:12%;}
.hero .c2{width:58px;height:19px;top:26px;left:14%;}
.hero .c3{width:46px;height:15px;top:7px;left:38%;}
.hero-badge{
  display:inline-block;
  background:#fff;
  color:#2668b3;
  font-size:25px;
  font-weight:800;
  padding:0 28px 2px;
  border-radius:13px;
  border:3px solid #9fd3f2;
  box-shadow:0 2.5px 0 #9fd3f266, 0 4px 10px #6aa9cc33;
  letter-spacing:.5px;
  position:relative; z-index:2;
}
.hero-title{
  display:inline-block;
  margin-top:7px;
  background:linear-gradient(180deg,#2f9c8a,#207f70);
  color:#fff;
  font-size:14px;
  font-weight:700;
  padding:3px 22px 5px;
  border-radius:999px;
  border:2px solid #ffffffdd;
  box-shadow:0 2.5px 8px #1e6d6044;
  position:relative; z-index:2;
}
.hero-decor{position:absolute; bottom:15px; z-index:2; line-height:1; user-select:none; display:flex; align-items:flex-end; gap:1px;}
.hero-decor.right{right:14px;}
.hero-decor.left{left:16px;}
.hero-decor .em{font-size:33px; display:inline-block;}
.hero-decor .em:nth-child(n+2){font-size:24px;}
.hero-decor img{height:44px; display:inline-block; vertical-align:bottom;}
.hero-decor img:nth-child(n+2){height:32px;}
.hero-grass{
  position:absolute; bottom:0; left:0; right:0; height:20px;
  background:
    radial-gradient(circle at 8% -5px, var(--grass) 0 16px, transparent 17px),
    radial-gradient(circle at 22% -2px, var(--grass-dark) 0 13px, transparent 14px),
    radial-gradient(circle at 36% -6px, var(--grass) 0 17px, transparent 18px),
    radial-gradient(circle at 52% -1px, var(--grass-dark) 0 12px, transparent 13px),
    radial-gradient(circle at 66% -5px, var(--grass) 0 16px, transparent 17px),
    radial-gradient(circle at 82% -2px, var(--grass-dark) 0 13px, transparent 14px),
    radial-gradient(circle at 96% -6px, var(--grass) 0 16px, transparent 17px),
    linear-gradient(180deg,var(--grass),var(--grass-dark));
}

/* ============ STUDENT BAR ============ */
.student-bar{
  display:flex; flex-wrap:wrap; gap:5px 16px;
  background:#fff;
  border:2px solid #cfe8f7;
  border-radius:999px;
  box-shadow:0 2.5px 8px #7db8d826;
  padding:4px 16px;
  margin:7px 0;
}
.student-field{display:flex; align-items:center; gap:5px; flex:1 1 170px;}
.student-field .ic{font-size:13px;}
.student-field .ic img{height:15px; vertical-align:middle;}
.student-field label{font-weight:700; font-size:11.5px; white-space:nowrap; color:#3b5a80;}
.student-field input{
  flex:1; min-width:40px;
  border:none; outline:none;
  border-bottom:1.6px dotted #9db8cf;
  background:transparent;
  font:inherit; font-size:11.5px; color:var(--ink);
  padding:1px 4px;
}
/* Filled in by the server, not by the reader: solid rule, no caret. */
.student-field.is-locked input{
  border-bottom-style:solid;
  border-bottom-color:var(--accent, #3d87d6);
  font-weight:800;
  cursor:default;
}

/* ============ GRID + CARDS ============ */
.grid{display:grid; grid-template-columns:repeat(3,1fr); gap:7px; align-items:stretch;}
.card{
  --c:#3d87d6; --tint:#e4f0fb;
  background:#fff;
  border:2px solid var(--c);
  border-radius:12px;
  box-shadow:0 3px 8px #7d9cb81f;
  padding:6px 7px 7px;
  display:flex; flex-direction:column; gap:5px;
  break-inside:avoid;
}
.card.sp2{grid-column:span 2;}
.card.sp3{grid-column:span 3;}
.card-head{
  display:flex; align-items:center; justify-content:center; gap:6px;
  background:var(--tint);
  border-radius:999px;
  padding:2.5px 8px;
  text-align:center;
}
.card-head .num{
  flex:0 0 auto;
  width:20px; height:20px;
  background:var(--c); color:#fff;
  border-radius:50%;
  display:grid; place-items:center;
  font-weight:800; font-size:12px;
  box-shadow:0 1.5px 3px #0002;
}
.card-head .t-ic{font-size:14px; line-height:1;}
.card-head .t-ic img{height:16px; vertical-align:middle;}
.card-head h2{font-size:12.5px; font-weight:800; color:var(--c); line-height:1.35;}
.instruction{font-size:10.5px; color:#5b6f8d; padding:0 2px; line-height:1.5;}
.hint{font-size:9px; color:#93a5bd; padding:0 2px;}

/* ============ FOOTER ============ */
.footer-grass{
  margin-top:7px; height:20px; border-radius:999px;
  background:linear-gradient(180deg,var(--grass),var(--grass-dark));
  display:flex; align-items:center; justify-content:center; gap:14px;
  font-size:10.5px; color:#fff; overflow:hidden;
}

/* ============ RESPONSIVE (screen only) ============
   Must stay at the bottom of this file: these rules have the same specificity
   as .page / .grid / .card above and win only by source order. */
@media screen and (max-width:820px){
  .page{width:100%;}
  .grid{grid-template-columns:1fr 1fr;}
  .card.sp2,.card.sp3{grid-column:span 2;}
}
@media screen and (max-width:560px){
  .grid{grid-template-columns:1fr;}
  .card.sp2,.card.sp3{grid-column:span 1;}
}
