/* ════════════════════════════════════════════════════════════════
   STEMigoo — Activity Packs
   packs/index.php (landing) + packs/view.php (print-ready packs)
════════════════════════════════════════════════════════════════ */

/* ── Packs landing hero ──────────────────────────────────────────── */
.packs-hero {
  background: linear-gradient(135deg, #0d1b2a 0%, #1a3a5c 100%);
  padding: 64px 24px 52px;
  text-align: center;
}
.packs-hero-inner { max-width: 620px; margin: 0 auto; }
.packs-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #90e0ef;
  margin: 0 0 10px;
}
.packs-hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 14px;
}
.packs-hero-sub {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  margin: 0;
  line-height: 1.65;
}

/* ── Pack cards section ──────────────────────────────────────────── */
.packs-cards-section {
  background: #f4f7fb;
  padding: 16px 24px 44px;
  border-bottom: 1px solid #e8edf2;
}
.packs-cards-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.pack-card {
  background: #fff;
  border-radius: 14px;
  border-top: 5px solid var(--pack-color, #0d1b2a);
  padding: 24px 22px 22px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
}
.pack-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.pack-card-emoji { font-size: 2rem; line-height: 1; }
.pack-card-age {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: #8a9ab0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pack-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0d1b2a;
  margin: 0 0 4px;
  min-height: 3.75rem;
}
.pack-card-tagline {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.8rem;
  color: var(--pack-color, #0d1b2a);
  font-weight: 600;
  margin: 0 0 10px;
}
.pack-card-desc {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.85rem;
  color: #5a6e7f;
  margin: 0;
  line-height: 1.55;
}

/* ── Email gate section ──────────────────────────────────────────── */
.packs-gate-section {
  padding: 52px 24px 64px;
  background: #fff;
}
.packs-gate-inner {
  max-width: 660px;
  margin: 0 auto;
}

/* Form */
.packs-form-wrap { text-align: center; }
.packs-form-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: #0d1b2a;
  margin: 0 0 8px;
}
.packs-form-sub {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  color: #5a6e7f;
  margin: 0 0 28px;
}
.packs-error-banner {
  background: #fff0f0;
  border: 1.5px solid #f44336;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  text-align: left;
}
.packs-error-banner p {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.88rem;
  color: #c62828;
  margin: 0;
}
.packs-field-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.packs-field {
  flex: 1;
  text-align: left;
}
.packs-field label {
  display: block;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #2d3e50;
  margin-bottom: 6px;
}
.packs-field input[type="email"] {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid #dde4ec;
  border-radius: 8px;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  color: #0d1b2a;
  box-sizing: border-box;
  transition: border-color 0.14s;
}
.packs-field input[type="email"]:focus {
  outline: none;
  border-color: #00b4d8;
  box-shadow: 0 0 0 3px rgba(0,180,216,0.15);
}
.packs-field.has-error input { border-color: #f44336; }
.packs-field-error {
  display: block;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.8rem;
  color: #c62828;
  margin-top: 4px;
}
.packs-submit-btn {
  background: #00b4d8;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 13px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.14s;
  flex-shrink: 0;
}
.packs-submit-btn:hover { background: #0096b4; }
.packs-privacy {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.78rem;
  color: #9aa6b2;
  margin: 12px 0 0;
  text-align: center;
}

/* Success state */
.packs-success { text-align: center; }
.packs-success-icon { font-size: 3rem; margin-bottom: 12px; }
.packs-success-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: #0d1b2a;
  margin: 0 0 10px;
}
.packs-success-msg {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  color: #5a6e7f;
  margin: 0 0 28px;
  line-height: 1.6;
}
.packs-download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 600px;
  margin: 0 auto;
}
.packs-dl-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 12px 16px;
  background: #f4f7fb;
  border: 2px solid var(--pack-color, #0d1b2a);
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.14s, transform 0.12s;
}
.packs-dl-btn:hover {
  background: #fff;
  transform: translateY(-2px);
}
.packs-dl-emoji { font-size: 2rem; line-height: 1; }
.packs-dl-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0d1b2a;
  text-align: center;
  line-height: 1.3;
}
.packs-dl-action {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.72rem;
  color: var(--pack-color, #0d1b2a);
  font-weight: 600;
}

/* Landing responsive */
@media (max-width: 760px) {
  .packs-cards-inner { grid-template-columns: 1fr; }
  .packs-field-row { flex-direction: column; }
  .packs-submit-btn { width: 100%; }
  .packs-download-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════════
   PRINTABLE PACK PAGES  (packs/view.php)
════════════════════════════════════════════════════════════════ */

/* ── Screen: print bar ───────────────────────────────────────────── */
.pack-print-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0d1b2a;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  flex-wrap: wrap;
}
.pack-print-back {
  color: #90e0ef;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}
.pack-print-back:hover { text-decoration: underline; }
.pack-print-hint {
  flex: 1;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  margin: 0;
}
.pack-print-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pack-print-btn {
  background: #00b4d8;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  border: none;
  padding: 9px 18px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.14s;
}
.pack-print-btn:hover { background: #0096b4; }
.pack-gray-btn {
  background: transparent;
  color: rgba(255,255,255,0.75);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1.5px solid rgba(255,255,255,0.3);
  padding: 8px 16px;
  border-radius: 7px;
  cursor: pointer;
  transition: border-color 0.14s, color 0.14s;
}
.pack-gray-btn:hover { border-color: rgba(255,255,255,0.7); color: #fff; }

/* ── Education Tracks section ───────────────────────────────────── */
.tracks-section {
  background: #f4f7fb;
  padding: 64px 24px 72px;
  border-top: 1px solid #dde6ef;
}
.tracks-inner { max-width: 1100px; margin: 0 auto; }
.tracks-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #00b4d8;
  margin: 0 0 10px;
}
.tracks-heading {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: #0d1b2a;
  margin: 0 0 10px;
  letter-spacing: -0.3px;
}
.tracks-sub {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  color: #6b7f8e;
  line-height: 1.65;
  max-width: 640px;
  margin: 0 0 40px;
}
.tracks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.track-card {
  background: #fff;
  border-radius: 20px;
  border: 1.5px solid #e4eaf2;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(13,27,42,0.06);
  transition: box-shadow 0.2s, transform 0.15s;
}
.track-card:not(.track-card--coming):hover {
  box-shadow: 0 8px 28px rgba(13,27,42,0.13);
  transform: translateY(-3px);
}
.track-card--coming {
  opacity: 0.72;
  cursor: default;
}
.track-card-header {
  background: linear-gradient(160deg, #e4f5fa 0%, #f0f8fd 40%, #ffffff 100%);
  padding: 22px 24px 18px;
  border-bottom: 1.5px solid #e4eaf2;
}
.track-card-badge {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #00b4d8;
  background: rgba(0,180,216,0.1);
  border: 1px solid rgba(0,180,216,0.25);
  border-radius: 20px;
  padding: 3px 10px;
  margin-bottom: 10px;
}
.track-card-badge--soon {
  color: #8a9ab0;
  background: rgba(138,154,176,0.1);
  border-color: rgba(138,154,176,0.25);
}
.track-card-emoji {
  display: block;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 8px;
}
.track-card-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: #0d1b2a;
  margin: 0 0 4px;
}
.track-card-ages {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.78rem;
  color: #6b7f8e;
  margin: 0;
}
.track-card-body {
  padding: 18px 24px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.track-card-tagline {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.82rem;
  color: #4a6274;
  line-height: 1.55;
  margin: 0 0 16px;
}
.track-card-concepts {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.track-concept-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.track-concept-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #eef3f8;
  border: 1px solid #dde6ef;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  color: #4a6274;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.track-concept-text {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.82rem;
  color: #0d1b2a;
}
.track-card-cta {
  display: block;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: #fff;
  padding: 11px 20px;
  border-radius: 24px;
  letter-spacing: 0.3px;
  transition: opacity 0.2s, transform 0.1s;
}
.track-card:not(.track-card--coming) .track-card-cta:hover { opacity: 0.88; }
.track-card-cta--soon {
  background: #c8d4e0 !important;
  cursor: default;
  color: #fff;
}
@media (max-width: 860px) {
  .tracks-grid { grid-template-columns: 1fr; max-width: 480px; }
}

/* ── Grayscale mode ──────────────────────────────────────────────── */
body.pack-grayscale .page-sheet { filter: grayscale(1); }
@media print {
  body.pack-grayscale .page-sheet { filter: grayscale(1); -webkit-filter: grayscale(1); }
}

/* Pack page body */
body.pack-page {
  background: #f4f7fb;
  margin: 0;
}

/* ── Page sheet (one "page" of the pack) ─────────────────────────── */
.page-sheet {
  width: 8.5in;
  min-height: 11in;
  margin: 0 auto 8px;
  box-sizing: border-box;
  background: #fff;
  position: relative;
  box-shadow: 0 2px 24px rgba(0,0,0,0.22);
}

/* ── Cover page ──────────────────────────────────────────────────── */
.pack-cover {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 80px;
}
.pack-cover-inner { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }

/* Logo image replaces text logo */
.pack-cover-logo-img {
  height: 44px;
  width: auto;
  margin-bottom: 28px;
}

/* Education Track badge */
.pack-cover-track-badge {
  display: inline-block;
  background: #00b4d8;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 20px;
}

/* Concept list on cover */
.pack-cover-concepts {
  margin: 20px auto 0;
  max-width: 420px;
  text-align: left;
  border: 1.5px solid #e8edf2;
  border-radius: 14px;
  padding: 18px 22px;
  background: #f4f7fb;
}
.pack-cover-concepts-label {
  color: #00b4d8;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 12px !important;
}
.pack-cover-concept-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 9px;
}
.pack-cover-concept-num {
  background: #00b4d8;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pack-cover-concept-text {
  color: #0d1b2a;
  font-size: 0.88rem;
  line-height: 1.3;
}
.pack-cover-concepts-cta {
  color: #8a9ab0;
  font-size: 0.78rem;
  font-style: italic;
  margin: 14px 0 0 !important;
  text-align: center;
}
.pack-cover-emoji {
  font-size: 5rem;
  line-height: 1;
  margin-bottom: 28px;
}
.pack-cover-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: #0d1b2a;
  margin: 0 0 14px;
  line-height: 1.15;
}
.pack-cover-sub {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.1rem;
  color: #5a6e7f;
  margin: 0 0 32px;
}
.pack-cover-badge {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.85rem;
  color: #5a6e7f;
  border: 1.5px solid #c8d8e8;
  padding: 8px 24px;
  border-radius: 100px;
}
.pack-cover-footer {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.8rem;
  color: #8a9ab0;
  text-align: center;
  padding-top: 20px;
}

/* ── Activity sheet ──────────────────────────────────────────────── */
.pack-activity {
  padding: 40px 52px 36px;
  display: flex;
  flex-direction: column;
  border-top: 6px solid var(--act-color, #0d1b2a);
}

/* Hero image — floated left inside the activity header */
.pack-act-hero-img {
  float: left;
  width: 130px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  margin: 2px 18px 8px 0;
  display: block;
  flex-shrink: 0;
}
.pack-act-header {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1.5px solid #e8edf2;
  overflow: hidden; /* contain the floated hero image */
}
.pack-act-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--act-color, #0d1b2a);
  display: block;
  margin-bottom: 6px;
}
.pack-act-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #0d1b2a;
  margin: 0 0 8px;
}
.pack-act-learn {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.88rem;
  color: #5a6e7f;
  margin: 0;
}
.pack-act-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  flex: 1;
  min-width: 0;
}
.pack-act-col {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}
.pack-act-col h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--act-color, #0d1b2a);
  margin: 0 0 8px;
  padding-bottom: 4px;
  border-bottom: 1.5px solid var(--act-light, #e8edf2);
}
.pack-act-col ul,
.pack-act-col ol {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.84rem;
  color: #2d3e50;
  margin: 0 0 16px;
  padding-left: 18px;
  line-height: 1.65;
}
.pack-act-col p {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.84rem;
  color: #2d3e50;
  margin: 0 0 10px;
  line-height: 1.6;
}

/* ── Science note box ────────────────────────────────────────────── */
.pack-science-box {
  background: var(--act-light, #f4f7fb);
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 8px;
}
.pack-science-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--act-color, #0d1b2a);
  margin: 0 0 6px !important;
}
.pack-science-box p:last-child { margin: 0 !important; }

/* ── Education Track project reference link ─────────────────────── */
.pack-track-ref {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.72rem;
  color: var(--act-color, #0d1b2a);
  opacity: 0.55;
  margin-top: 12px !important;
  font-style: italic;
}

/* ── Continuation header (injected by JS before print, hidden on screen) ── */
.pack-act-cont-hdr { display: none; }

/* ── Observation boxes ───────────────────────────────────────────── */
/* ── Workspace component system (ws-*) ─────────────────────────────── */

/* Write lines */
.ws-write-lines          { margin: 0 0 8px; }
.ws-write-lines.ws-mt,
.ws-label-line.ws-mt,
.ws-field-row.ws-mt,
.ws-checkbox-row.ws-mt,
.ws-sketch-box.ws-mt,
.ws-sketch-grid.ws-mt,
.ws-data-table.ws-mt,
.ws-calc-box.ws-mt,
.ws-fill-block.ws-mt,
.ws-highlight.ws-mt      { margin-top: 12px; }
.ws-write-lines .ws-label { display: block; font-size: 0.8rem; color: #2d3e50; margin-bottom: 3px; line-height: 1.4; }
.ws-line                  { display: block; width: 100%; height: 22px; border-bottom: 1.5px solid #c0cdd8; margin-bottom: 4px; box-sizing: border-box; }

/* Field row */
.ws-field-row             { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 8px; align-items: baseline; }
.ws-field-item            { display: inline-flex; align-items: baseline; gap: 4px; }
.ws-field-item .ws-label  { font-size: 0.8rem; color: #2d3e50; white-space: nowrap; }
.ws-fill                  { display: inline-block; border-bottom: 1.5px solid #c0cdd8; height: 20px; vertical-align: bottom; }
.ws-fill--short           { min-width: 60px; }
.ws-fill--medium          { min-width: 110px; }
.ws-fill--long            { min-width: 200px; }
.ws-fill--flex            { flex: 1; min-width: 80px; }
.ws-field-suffix          { font-size: 0.8rem; color: #2d3e50; }

/* Checkbox row */
.ws-checkbox-row          { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin: 0 0 8px; font-size: 0.8rem; color: #2d3e50; }
.ws-checkbox-row .ws-label { font-weight: 600; white-space: nowrap; }
.ws-option                { white-space: nowrap; }

/* Sketch box */
.ws-sketch-box            { border: 1.5px solid #dde4ec; border-radius: 6px; width: 100%; box-sizing: border-box; background: #fafbfc; margin: 0 0 8px; }
.ws-sketch-prompt         { font-size: 0.75rem; color: #8a9ab0; padding: 6px 8px 0; margin: 0; }

/* Sketch grid */
.ws-sketch-grid           { display: grid; gap: 8px; margin: 0 0 8px; }
.ws-sketch-grid--2        { grid-template-columns: 1fr 1fr; }
.ws-sketch-grid--3        { grid-template-columns: 1fr 1fr 1fr; }
.ws-sketch-label          { font-size: 0.72rem; color: #8a9ab0; text-align: center; margin: 0 0 3px; }
.ws-sketch-cell .ws-sketch-box { margin-bottom: 0; }

/* Data table */
.ws-data-table            { width: 100%; border-collapse: collapse; font-size: 0.78rem; color: #2d3e50; margin: 0 0 8px; }
.ws-data-table th         { background: var(--act-light, #f4f7fb); font-family: 'Montserrat', sans-serif; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 6px 8px; border: 1px solid #dde4ec; text-align: left; }
.ws-data-table td         { padding: 7px 8px; border: 1px solid #dde4ec; height: 24px; vertical-align: top; font-family: 'Open Sans', sans-serif; }
.ws-td-write              { background: #fafbfc; }

/* Calc box */
.ws-calc-box              { background: #f4f7fb; border-radius: 8px; padding: 12px; margin: 0 0 8px; }
.ws-calc-formula          { font-family: monospace; font-size: 0.82rem; color: #2d3e50; margin: 0 0 4px; }
.ws-calc-note             { font-family: 'Open Sans', sans-serif; font-size: 0.75rem; color: #6b7f8e; margin: 0; }

/* Fill block */
.ws-fill-block            { background: #f4f7fb; border-radius: 8px; padding: 12px; margin: 0 0 8px; font-size: 0.82rem; line-height: 1.9; }
.ws-fill-block p          { margin: 0; color: #2d3e50; }
.ws-blank                 { display: inline-block; border-bottom: 1.5px solid #aab8c4; min-width: 110px; height: 17px; vertical-align: bottom; margin: 0 2px; }

/* Repeat block */
.ws-repeat-item           { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #e4edf4; }
.ws-repeat-item.ws-repeat-last { border-bottom: none; margin-bottom: 0; }
.ws-repeat-heading        { font-size: 0.8rem; color: #2d3e50; margin: 0 0 6px; }

/* Label line */
.ws-label-line            { font-size: 0.8rem; color: #2d3e50; margin: 0 0 6px; line-height: 1.4; }

/* Highlight box */
.ws-highlight             { background: #f4f7fb; border-radius: 8px; padding: 10px 14px; margin: 0 0 8px; font-size: 0.82rem; }
.ws-highlight .ws-label   { display: block; font-size: 0.8rem; color: #2d3e50; margin-bottom: 4px; font-weight: 600; }

/* Spacer */
.ws-spacer                { height: 10px; }

/* ── Activity cost chip ─────────────────────────────────────────────── */
.pack-cost-chip {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  background: #fff;
  border: 1.5px solid #dde4ec;
  border-radius: 20px;
  padding: 3px 10px;
  color: #3a4a5a;
  margin-left: 8px;
  vertical-align: middle;
  white-space: nowrap;
}
.pack-cost-chip--free {
  background: #f0faf4;
  border-color: #b7ddc8;
  color: #2d6a4f;
}

/* ── End workspace component system ────────────────────────────────── */

.pack-field-label {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.8rem;
  color: #2d3e50;
  margin: 0 0 6px;
  line-height: 1.5;
}
.pack-tally-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.78rem;
  color: #2d3e50;
}
.pack-tally-table th {
  background: var(--act-light, #f4f7fb);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 8px;
  border: 1px solid #dde4ec;
  text-align: left;
}
.pack-tally-table td {
  padding: 8px 8px;
  border: 1px solid #dde4ec;
  height: 24px;
  vertical-align: top;
}
.pack-sketch-box {
  border: 1.5px solid #dde4ec;
  border-radius: 6px;
  height: 150px;
  width: 100%;
  box-sizing: border-box;
  background: #fafbfc;
}
.pack-sketch-box.large { height: 180px; }
.pack-sketch-cell { min-height: 50px; }

/* ── Cloud guide (text-based) ────────────────────────────────────── */
.pack-cloud-guide {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.pack-cloud-type {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.8rem;
  color: #2d3e50;
  padding: 5px 8px;
  background: var(--act-light, #f4f7fb);
  border-radius: 5px;
  line-height: 1.4;
}
.pack-cloud-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.76rem;
  color: #2d3e50;
}
.pack-cloud-table th {
  background: var(--act-light, #f4f7fb);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 6px;
  border: 1px solid #dde4ec;
  text-align: left;
}
.pack-cloud-table td {
  border: 1px solid #dde4ec;
  padding: 0;
  height: 36px;
  vertical-align: top;
  padding: 3px 4px;
}

/* ── Leaf journal ────────────────────────────────────────────────── */
.pack-leaf-entry {
  background: #fafbfc;
  border: 1px solid #e8edf2;
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 8px;
}
.pack-leaf-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--act-color, #0d1b2a);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 4px;
}
.pack-rubbing-box {
  border: 1px dashed #c8d6e0;
  border-radius: 4px;
  height: 48px;
  background: #fff;
  margin-top: 4px;
}

/* ── Moon grid ───────────────────────────────────────────────────── */
.pack-moon-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.pack-moon-entry { text-align: center; }
.pack-moon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #2d3e50;
  background: #fff;
  margin: 0 auto 3px;
}
.pack-moon-night {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.55rem;
  font-weight: 700;
  color: #0d1b2a;
  margin: 0;
}
.pack-moon-date-line {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.5rem;
  color: #8a9ab0;
  margin: 0;
}

/* ── Back cover ──────────────────────────────────────────────────── */
.pack-back-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 80px;
}
.pack-back-inner { text-align: center; }
.pack-back-logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #0d1b2a;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.pack-back-tagline {
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  color: #5a6e7f;
  margin: 0 0 6px;
}
.pack-back-url {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #00b4d8;
  margin: 0 0 40px;
  letter-spacing: 1px;
}
.pack-back-msg {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  color: #2d3e50;
  line-height: 1.65;
  margin: 0 0 14px;
}
.pack-back-other {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.85rem;
  color: #5a6e7f;
  margin: 0;
}

/* ════════════════════════════════════════════════════════════════
   PACK BUILDER  (packs/index.php — new builder UI)
════════════════════════════════════════════════════════════════ */

/* Collapse hidden sections — no ghost space */
.pack-preview-section[style*="display:none"],
.pack-email-section[style*="display:none"] { margin: 0 !important; padding: 0 !important; }

/* Builder section */
.pack-builder-section {
  background: #f4f7fb;
  padding: 48px 24px 0;
}
.pack-builder-inner {
  max-width: 860px;
  margin: 0 auto;
}

/* Steps */
.pack-step { margin-bottom: 20px; }
.pack-step-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #0d1b2a;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pack-step-hint {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: #8a9ab0;
}
.pack-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #00b4d8;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* Option buttons (age + category) */
.pack-option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pack-opt-btn {
  background: #fff;
  border: 1.5px solid #c8d8e8;
  border-radius: 30px;
  color: #0d1b2a;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 10px 20px;
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s, color 0.16s, transform 0.1s;
  box-shadow: 0 1px 4px rgba(13,27,42,0.06);
}
.pack-opt-btn:hover {
  border-color: #00b4d8;
  color: #00b4d8;
  transform: translateY(-1px);
}
.pack-opt-btn.is-selected {
  background: #00b4d8;
  border-color: #00b4d8;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,180,216,0.25);
}

/* Preview section */
.pack-preview-section {
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  margin: 32px 0 0;
  box-shadow: 0 2px 16px rgba(13,27,42,0.07);
}
.pack-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}
.pack-preview-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0d1b2a;
  margin: 0;
}
.pack-shuffle-btn {
  background: none;
  border: 1.5px solid #c8d8e8;
  border-radius: 20px;
  color: #6b7f8e;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 16px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.pack-shuffle-btn:hover { border-color: #00b4d8; color: #00b4d8; }
.pack-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pack-preview-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: #8a9ab0;
  font-size: 0.88rem;
  padding: 20px 0;
}
.pack-preview-card {
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(13,27,42,0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pack-preview-card:hover { box-shadow: 0 8px 28px rgba(13,27,42,0.13); transform: translateY(-6px); }
.pack-preview-img {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  background: #f4f7fb;
}
.pack-preview-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.pack-preview-card:hover .pack-preview-img img { transform: scale(1.06); }
.pack-preview-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
}
.pack-preview-badge {
  position: absolute;
  top: 14px;
  bottom: auto;
  left: 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.67rem;
  font-weight: 800;
  color: #fff;
  padding: 4px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.pack-preview-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.pack-preview-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.67rem;
  font-weight: 800;
  color: #00b4d8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}
.pack-preview-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #0d1b2a;
  margin: 0;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.pack-preview-meta {
  font-size: 0.68rem;
  color: #8a9ab0;
  margin: 0;
}

/* Pack CTA section */
.pack-email-section {
  background: #fff;
  border-radius: 18px;
  padding: 32px 36px 40px;
  margin-top: 20px;
  box-shadow: 0 2px 16px rgba(13,27,42,0.07);
  text-align: center;
}

/* Primary download block */
.pack-download-primary {
  margin-bottom: 6px;
}
.packs-submit-btn--large {
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 10px;
}
.pack-download-note {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.78rem;
  color: #8a9ab0;
  margin: 10px 0 0;
}

/* "or" divider */
.pack-notify-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: #c8d4de;
  font-size: 0.78rem;
  font-family: 'Open Sans', sans-serif;
}
.pack-notify-divider::before,
.pack-notify-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e8edf4;
}

/* Optional notify block */
.pack-notify-opt { text-align: left; }
.pack-notify-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #4a6274;
  margin: 0 0 12px;
}
.packs-notify-btn {
  background: transparent;
  border: 2px solid #00b4d8;
  color: #00b4d8;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.packs-notify-btn:hover {
  background: #00b4d8;
  color: #fff;
}

/* Curated packs divider */
.packs-curated-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #8a9ab0;
  text-align: center;
  margin: 0 0 28px;
  letter-spacing: 0.5px;
}
.pack-card-cta {
  display: inline-block;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  margin-top: auto;
  align-self: flex-start;
  transition: opacity 0.15s;
}
.pack-card-cta:hover { opacity: 0.85; }

/* Dynamic pack: cover TOC */
.pack-cover-toc {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 28px auto;
  max-width: 480px;
  text-align: left;
}
.pack-cover-toc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f4f7fb;
  border: 1.5px solid #e8edf2;
  border-radius: 10px;
  padding: 10px 16px;
}
.pack-cover-toc-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  color: #8a9ab0;
  width: 20px;
  flex-shrink: 0;
}
.pack-cover-toc-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0d1b2a;
  flex: 1;
}
.pack-cover-toc-cat {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  color: #fff;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

/* Dynamic pack: activity meta chips */
.pack-act-meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.pack-act-chip {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--act-light, #f0f2f5);
  color: var(--act-color, #0d1b2a);
  padding: 4px 12px;
  border-radius: 20px;
}

/* Dynamic pack: observation lines */
.pack-obs-lines { display: flex; flex-direction: column; gap: 0; }
.pack-obs-line {
  height: 28px;
  border-bottom: 1px solid #dde4ec;
}

/* Responsive */
@media (max-width: 720px) {
  .pack-preview-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .pack-preview-grid { grid-template-columns: 1fr; }
  .pack-email-section { padding: 24px 20px; }
}

/* ════════════════════════════════════════════════════════════════
   PRINT STYLES  (@media print)
════════════════════════════════════════════════════════════════ */
@media print {
  @page {
    size: letter portrait;
    margin: 0;
  }

  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }

  body { margin: 0; padding: 0; background: #fff; }

  .no-print { display: none !important; }

  .page-sheet {
    width: 100%;
    margin: 0;
    box-shadow: none;
  }

  /* Cover: own page */
  .pack-cover {
    min-height: 100vh;
    break-after: page;
  }

  /* Back cover: own page, compact print layout */
  .pack-back-cover {
    min-height: unset;
    break-before: page;
    break-after: avoid;
    padding: 28px 44px;          /* screen is 60px 80px — tighter for print */
    align-items: flex-start;
    justify-content: flex-start;
  }
  /* Full-width inner container */
  .pack-back-cover .pack-back-inner {
    width: 100%;
  }
  /* Remove the narrow max-width constraints so content spans the page */
  .pack-back-cover .pack-back-inner > div {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  /* Tighten element spacing on back cover */
  .pack-back-cover .pack-back-logo    { margin-bottom: 6px; }
  .pack-back-cover .pack-back-tagline { margin-bottom: 4px; }
  .pack-back-cover .pack-cover-logo-img { height: 48px !important; margin-bottom: 12px !important; }

  /* ── Activity pages: instructions column ─────────────────────── */
  /* Each activity starts a new page */
  .pack-activity {
    break-before: page;
    overflow: visible;
    padding: 28px 40px 24px;
    display: block;         /* override flex so columns stack */
  }

  /* Hero image: keep float in print, slightly smaller */
  .pack-act-hero-img {
    width: 110px;
    height: 82px;
  }

  /* Convert the two-column body to a single stacked column */
  .pack-act-body {
    display: block;
    gap: 0;
  }

  /* Left col (instructions): full width, flows naturally */
  .pack-act-col {
    width: 100%;
  }

  /* ── Workspace column: always starts a fresh page ───────────── */
  /* This is the right column: observations, sketch boxes, writing lines */
  .pack-act-col:last-child {
    break-before: page;
    border-top: 6px solid var(--act-color, #0d1b2a);
    padding-top: 28px;
    /* Full-width workspace = more room to write and sketch */
  }

  /* Continuation header: shown only in print (injected by JS) */
  .pack-act-cont-hdr {
    display: block;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1.5px solid var(--act-light, #e8edf2);
  }
  .pack-act-cont-hdr .pack-act-num {
    display: block;
    margin-bottom: 6px;
  }
  .pack-act-cont-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #5a6e7f;
    display: block;
    margin-bottom: 4px;
    line-height: 1.2;
  }
  .pack-act-cont-badge {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--act-color, #0d1b2a);
    background: var(--act-light, #f4f7fb);
    padding: 3px 10px;
    border-radius: 20px;
  }

  /* Workspace content: keep logical chunks together */
  .pack-tally-table tr  { break-inside: avoid; }
  .pack-sketch-box      { break-inside: avoid; }
  .pack-science-box     { break-inside: avoid; }
  .pack-leaf-entry      { break-inside: avoid; }
  .pack-moon-entry      { break-inside: avoid; }

  /* Keep section headings attached to their first content */
  .pack-act-col h3           { break-after: avoid; }
  .pack-act-col h3 + *       { break-before: avoid; }
  .pack-field-label          { break-inside: avoid; }
  .pack-obs-lines            { break-inside: avoid; }

  /* Workspace component print rules */
  .ws-line {
    height: 20px !important;
    border-bottom: 2px solid #000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .ws-fill, .ws-fill--short, .ws-fill--medium, .ws-fill--long, .ws-fill--flex {
    border-bottom: 2px solid #000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .ws-blank {
    border-bottom: 2px solid #000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .pack-obs-line {
    border-bottom: 2px solid #000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .ws-write-lines  { break-inside: avoid; }
  .ws-field-row    { break-inside: avoid; }
  .ws-checkbox-row { break-inside: avoid; }
  .ws-sketch-box   { break-inside: avoid; background: #fff !important; }
  .ws-sketch-grid  { break-inside: avoid; }
  .ws-data-table   { break-inside: avoid; }
  .ws-calc-box     { break-inside: avoid; background: #f4f7fb !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ws-fill-block   { break-inside: avoid; background: #f4f7fb !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ws-repeat-item  { break-inside: avoid; }
  .ws-highlight    { break-inside: avoid; }
  .ws-data-table th { background: var(--act-light, #f0f4f8) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

}
