/* ===========================
   Mae Adventures - Science Activity Sheets
   Loaded AFTER worksheet-print.css. Provides the boxed "stamp" header
   (shared with the editing/reading sheets) plus the activity-specific
   components: word grid, sort list, match columns, true/false, fill-in,
   and label-the-plant.
   =========================== */

/* Compact print sizing (preview = printed page) */
.ws-page { padding: 0.4in 0.5in 0.3in; min-height: auto; max-width: 8.5in; }
.ws-fields { margin-bottom: 0.35rem; font-size: 0.8rem; }

/* Boxed stamp header */
.ws-stamp { border: 1.5px solid #999; border-radius: 8px; padding: 0.35rem 0.7rem 0.45rem; margin: 0.3rem 0 0.4rem; background: #fcfcfc; }
.ws-stamp-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.3rem; padding-bottom: 0.3rem; border-bottom: 1px dashed #ccc; }
.ws-brand { display: flex; align-items: center; gap: 0.4rem; font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.15em; color: #666; }
.ws-brand-logo { width: 17px; height: 17px; flex-shrink: 0; display: block; }
.ws-grade-pill { font-size: 0.62rem; font-weight: 800; color: #555; padding: 0.1rem 0.45rem; border: 1.5px solid #aaa; border-radius: 12px; white-space: nowrap; }
.ws-title { font-size: 1.3rem; text-align: center; margin: 0; padding: 0; line-height: 1.1; }
.ws-meta { text-align: center; font-size: 0.7rem; color: #666; margin: 0.15rem 0 0; font-weight: 700; letter-spacing: 0.02em; }
.ws-instructions { font-style: italic; color: #555; border-left: 3px solid #ddd; padding: 0.05rem 0 0.05rem 0.55rem; margin: 0 0 0.5rem; font-size: 0.82rem; }

/* --- Two-column question rows (living/nonliving, true/false) --- */
.sci-rows { list-style: none; padding: 0; margin: 0; }
.sci-rows li {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.32rem 0.2rem; border-bottom: 1px dashed #ddd;
  font-size: 0.95rem;
}
.sci-rows li:last-child { border-bottom: none; }
.sci-prompt { font-weight: 600; }
.sci-choices { display: flex; gap: 0.6rem; flex-shrink: 0; }
.sci-opt {
  border: 1.5px solid #999; border-radius: 999px;
  padding: 0.1rem 0.7rem; font-size: 0.8rem; font-weight: 700; color: #555;
  white-space: nowrap;
}

/* --- Match two columns (animal homes) --- */
.sci-match { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; margin-top: 0.3rem; }
.sci-match-col { list-style: none; padding: 0; margin: 0; }
.sci-match-col li {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 0.2rem; font-size: 0.95rem; font-weight: 600;
}
.sci-match-col--right li { justify-content: flex-end; text-align: right; }
.sci-dot { width: 0.7rem; height: 0.7rem; border: 2px solid #888; border-radius: 50%; flex-shrink: 0; }

/* --- Fill in the blank (word bank) --- */
.sci-bank {
  border: 1.5px dashed #999; border-radius: 10px; padding: 0.45rem 0.7rem;
  margin: 0 0 0.7rem; text-align: center; font-weight: 700; font-size: 0.9rem;
  background: #fcfcfc;
}
.sci-bank-label { display: block; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.12em; color: #888; margin-bottom: 0.2rem; }
.sci-bank span { display: inline-block; margin: 0 0.5rem; }
.sci-fill { list-style: decimal; padding-left: 1.4rem; margin: 0; }
.sci-fill li { padding: 0.42rem 0; font-size: 0.98rem; line-height: 1.6; }
.sci-blank { display: inline-block; min-width: 6.5rem; border-bottom: 1.5px solid #333; }

/* (The Science Word Search sheet is produced by word-search.js, which carries
   its own grid styles inline; no word-grid CSS is needed here.) */

/* --- Label the plant --- */
.sci-label-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1rem; align-items: center; }
.sci-label-figure { position: relative; }
.sci-label-figure img { display: block; width: 100%; height: auto; border: 1.5px solid #ddd; border-radius: 10px; }
.sci-label-marker {
  position: absolute; transform: translate(-50%, -50%);
  width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: #81C784; color: #fff; font-weight: 800; font-size: 0.78rem;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.sci-label-blanks { list-style: none; counter-reset: lb; padding: 0; margin: 0; }
.sci-label-blanks li { counter-increment: lb; display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0; font-size: 1rem; }
.sci-label-blanks li::before {
  content: counter(lb); flex-shrink: 0;
  width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: #81C784; color: #fff; font-weight: 800; font-size: 0.78rem;
  display: flex; align-items: center; justify-content: center;
}
.sci-label-line { flex: 1; border-bottom: 1.5px solid #333; height: 1.2rem; }

/* Keep colors when printing */
.sci-opt, .sci-dot, .sci-label-marker, .sci-label-blanks li::before {
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
