/* ===== Real Life Series Styles ===== */
/* Extends style.css, style-new.css, missions.css for Welcome to Real Life */

:root {
  --color-kit: #E8621A;
  --color-tashi: #5C7A8A;
  --color-ren: #C85A3A;
  --color-mission-cream: #F2E5CC;
  --color-parent-blue: #E5F4FF;
  --color-dyk-yellow: #FFF8E1;
  --color-real-talk-coral: #FFE0D6;
  --color-amber-warm: #F4E8D4;
  --color-sage-soft: #C8D5C4;
}

/* Real Life hero trio — small, in-line in the corner. No change to hero height. */
.hero-trio {
  position: absolute;
  bottom: 12px;
  right: 6%;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  pointer-events: none;
  z-index: 2;
}
.hero-trio img {
  width: auto;
  height: 90px;
  opacity: 0.9;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
}
/* Lead character slightly larger & fully opaque so the chapter's guide reads as primary */
.hero-trio .trio-lead {
  height: 105px;
  opacity: 1;
  z-index: 3;
}
.hero-trio .trio-support {
  z-index: 2;
}

/* On the trio-themed hero (Ch 10 finale), all three the same size */
.mission-hero.trio .hero-trio .trio-lead,
.mission-hero.trio .hero-trio .trio-support {
  height: 95px;
  opacity: 1;
}

/* Hide the single char-img when trio is present */
.mission-hero:has(.hero-trio) .char-img {
  display: none;
}

@media (max-width: 640px) {
  .hero-trio {
    right: 4%;
    bottom: 8px;
  }
  .hero-trio img { height: 70px; }
  .hero-trio .trio-lead { height: 82px; }
}

/* Real Life hero background - amber/sage warmth */
.mission-hero.kit .hero-bg {
  background:
    radial-gradient(ellipse at 30% 40%, rgba(232, 98, 26, 0.28) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(232, 98, 26, 0.1) 0%, transparent 40%);
}
.mission-hero.tashi .hero-bg {
  background:
    radial-gradient(ellipse at 30% 40%, rgba(92, 122, 138, 0.28) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(92, 122, 138, 0.1) 0%, transparent 40%);
}
.mission-hero.ren .hero-bg {
  background:
    radial-gradient(ellipse at 30% 40%, rgba(200, 90, 58, 0.28) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(200, 90, 58, 0.1) 0%, transparent 40%);
}
.mission-hero.trio .hero-bg {
  background:
    radial-gradient(ellipse at 20% 40%, rgba(232, 98, 26, 0.22) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 70%, rgba(92, 122, 138, 0.22) 0%, transparent 45%),
    radial-gradient(ellipse at 80% 40%, rgba(200, 90, 58, 0.22) 0%, transparent 45%);
}

.mission-hero.kit .chapter-label {
  background: rgba(232, 98, 26, 0.2);
  color: #FDBA74;
  border: 1px solid rgba(232, 98, 26, 0.4);
}
.mission-hero.tashi .chapter-label {
  background: rgba(92, 122, 138, 0.22);
  color: #CBD5E1;
  border: 1px solid rgba(92, 122, 138, 0.5);
}
.mission-hero.ren .chapter-label {
  background: rgba(200, 90, 58, 0.2);
  color: #FCA5A5;
  border: 1px solid rgba(200, 90, 58, 0.4);
}
.mission-hero.trio .chapter-label {
  background: rgba(244, 232, 212, 0.2);
  color: #FDE68A;
  border: 1px solid rgba(244, 232, 212, 0.45);
}

/* Mission content styling — warm cream mode for Real Life */
.mission-content.kit,
.mission-content.tashi,
.mission-content.ren,
.mission-content.trio {
  background: #FEFBF5;
}

.kit .step-number { background: var(--color-kit); }
.tashi .step-number { background: var(--color-tashi); }
.ren .step-number { background: var(--color-ren); }
.trio .step-number { background: linear-gradient(135deg, var(--color-kit), var(--color-tashi), var(--color-ren)); }

/* Character quotes for Real Life */
.character-quote.kit {
  background: linear-gradient(135deg, #FFF4E8, #FDE3CC);
  border: 1px solid #F59E0B;
}
.character-quote.tashi {
  background: linear-gradient(135deg, #F1F5F9, #E2E8F0);
  border: 1px solid #94A3B8;
}
.character-quote.ren {
  background: linear-gradient(135deg, #FEE2E2, #FCA5A5);
  border: 1px solid #DC2626;
}

.character-quote.kit blockquote { color: #9A3412; }
.character-quote.tashi blockquote { color: #334155; }
.character-quote.ren blockquote { color: #7F1D1D; }

/* Mission nav colored links for Real Life */
.mission-nav-links a.kit { border-color: var(--color-kit); }
.mission-nav-links a.kit:hover { background: rgba(232, 98, 26, 0.2); }
.mission-nav-links a.tashi { border-color: var(--color-tashi); }
.mission-nav-links a.tashi:hover { background: rgba(92, 122, 138, 0.2); }
.mission-nav-links a.ren { border-color: var(--color-ren); }
.mission-nav-links a.ren:hover { background: rgba(200, 90, 58, 0.2); }

/* ===== THE PRINTABLE WORKSHEET ===== */
/* The star of every Real Life challenge page */

.printable-sheet {
  background: var(--color-mission-cream);
  border: 3px dashed #D4A574;
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  margin: var(--space-2xl) 0;
  position: relative;
  box-shadow: 0 10px 40px rgba(212, 165, 116, 0.25);
}

.printable-sheet::before {
  content: "✂ Printable worksheet — print this page or fill in on screen";
  display: block;
  position: absolute;
  top: -14px;
  left: var(--space-xl);
  background: #FEFBF5;
  padding: 0.2rem 0.8rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: #9A7444;
  letter-spacing: 0.03em;
}

.printable-sheet h2 {
  font-family: var(--font-heading);
  color: #4A3820;
  margin-top: 0;
  margin-bottom: var(--space-lg);
}

.printable-sheet .sheet-intro {
  font-size: 1rem;
  line-height: 1.6;
  color: #4A3820;
  margin-bottom: var(--space-xl);
}

.printable-sheet label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  color: #4A3820;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

.printable-sheet input[type="text"],
.printable-sheet input[type="date"],
.printable-sheet input[type="number"] {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: none;
  border-bottom: 2px solid #B89058;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  color: #2D1F0C;
  margin-bottom: var(--space-md);
}

.printable-sheet input:focus,
.printable-sheet textarea:focus {
  outline: none;
  border-bottom-color: var(--color-kit);
  background: rgba(255, 255, 255, 0.4);
}

.printable-sheet textarea {
  width: 100%;
  min-height: 80px;
  padding: 0.75rem;
  border: 2px solid #D4A574;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.6);
  font-family: var(--font-body);
  font-size: 1rem;
  color: #2D1F0C;
  margin-bottom: var(--space-md);
  resize: vertical;
}

/* Venn diagram for Ch 1 Strengths Map */
.venn-wrapper {
  position: relative;
  max-width: 540px;
  margin: var(--space-xl) auto;
  aspect-ratio: 1 / 1;
}
.venn-wrapper svg {
  width: 100%;
  height: auto;
}
.venn-label {
  position: absolute;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: #4A3820;
  pointer-events: none;
  text-align: center;
}

/* Tracker tables */
.tracker-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-lg) 0;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.tracker-table th {
  background: var(--color-kit);
  color: white;
  padding: 0.6rem 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  letter-spacing: 0.02em;
}
.tracker-table.tashi th { background: var(--color-tashi); }
.tracker-table.ren th { background: var(--color-ren); }
.tracker-table td {
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid #D4A574;
  font-size: 0.95rem;
  color: #2D1F0C;
}
.tracker-table td input,
.tracker-table td textarea {
  border: none;
  background: transparent;
  padding: 0.25rem;
  margin: 0;
  width: 100%;
  border-bottom: 1px dotted #B89058;
}
.tracker-table td textarea {
  min-height: 40px;
}

/* Fillable line — for simple named prompts */
.fill-line {
  display: block;
  margin-bottom: var(--space-md);
}
.fill-line label {
  display: block;
  margin-bottom: 0.25rem;
}
.fill-line input {
  width: 100%;
  border: none;
  border-bottom: 2px solid #B89058;
  padding: 0.3rem 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
}

/* Checkbox list */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.4rem 0;
  color: #4A3820;
}
.check-list input[type="checkbox"] {
  margin-top: 0.3rem;
  flex-shrink: 0;
  accent-color: var(--color-kit);
  width: 18px;
  height: 18px;
}

/* Stationery style for Ch 10 letter */
.stationery {
  background: #FFFDF7;
  border: 2px solid #D4A574;
  border-radius: var(--radius-md);
  padding: var(--space-2xl);
  font-family: Georgia, 'Palatino Linotype', serif;
  color: #2D1F0C;
  line-height: 1.8;
  box-shadow: inset 0 0 40px rgba(212, 165, 116, 0.08);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 34px,
    rgba(180, 144, 88, 0.12) 34px,
    rgba(180, 144, 88, 0.12) 35px
  );
}
.stationery textarea {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 1.05rem;
  line-height: 1.8;
  width: 100%;
  min-height: 300px;
  color: inherit;
  padding: 0;
  box-shadow: none;
}
.stationery textarea:focus {
  outline: none;
}

/* Print button + download buttons */
.sheet-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin: var(--space-xl) 0;
}
.btn-print,
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-base);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-print {
  background: var(--color-kit);
  color: white;
}
.btn-print:hover {
  background: #C85210;
}
.btn-download {
  background: white;
  color: var(--color-kit);
  border-color: var(--color-kit);
}
.btn-download:hover {
  background: #FFF4E8;
}

/* Character cameo — small character image floated in the content */
.char-cameo {
  width: 120px;
  height: auto;
  float: right;
  margin: 0 0 var(--space-md) var(--space-md);
  opacity: 0.95;
}
.char-cameo.left {
  float: left;
  margin: 0 var(--space-md) var(--space-md) 0;
}

/* ===== PRINT STYLES — print just the worksheet ===== */
@media print {
  /* Hide everything except the printable */
  .header,
  .mission-hero,
  .pro-tip,
  .parent-note,
  .needs-box,
  .step,
  .success-box,
  .character-quote,
  .troubleshoot,
  .talk-about,
  .mission-nav,
  .back-to-hub,
  footer,
  .sheet-actions {
    display: none !important;
  }
  .printable-sheet {
    background: white !important;
    border: 1px solid #999 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    page-break-inside: avoid;
  }
  .printable-sheet::before { display: none !important; }
  .tracker-table { background: white !important; }
  .tracker-table th {
    background: #E8E8E8 !important;
    color: black !important;
  }
  .stationery {
    box-shadow: none !important;
    background: white !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
  h2, h3, label { color: black !important; }
}

/* ===== REALLIFE LANDING / HUB PAGES ===== */

.reallife-hero {
  position: relative;
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #FFF4E8 0%, #F4E8D4 50%, #E2E8E0 100%);
  overflow: hidden;
  text-align: center;
}
.reallife-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 700;
  color: #4A3820;
  margin-bottom: var(--space-md);
  line-height: 1.15;
}
.reallife-hero .hero-subtitle {
  font-size: 1.15rem;
  color: #5E4A2E;
  max-width: 640px;
  margin: 0 auto var(--space-xl);
  line-height: 1.6;
}

.reallife-trio {
  display: flex;
  justify-content: center;
  align-items: end;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}
.reallife-trio img {
  width: clamp(90px, 14vw, 160px);
  height: auto;
}

.challenge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-xl);
  padding: var(--space-2xl) 0;
}

.challenge-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  text-align: center;
  border-top: 5px solid transparent;
  display: flex;
  flex-direction: column;
}
.challenge-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.challenge-card.kit { border-top-color: var(--color-kit); }
.challenge-card.tashi { border-top-color: var(--color-tashi); }
.challenge-card.ren { border-top-color: var(--color-ren); }
.challenge-card.trio {
  border-top-color: transparent;
  border-image: linear-gradient(90deg, var(--color-kit), var(--color-tashi), var(--color-ren)) 1;
  border-top-style: solid;
  border-top-width: 5px;
}

/* Trio row for the Ch 10 card — three characters side by side, clean */
.challenge-card .card-trio {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  height: 80px;
  margin: 0 auto var(--space-sm);
}
.challenge-card .card-trio img {
  width: auto;
  height: 80px;
  margin: 0;
  object-fit: contain;
}
.challenge-card .card-trio img:nth-child(2) {
  margin: 0 -14px;
  z-index: 2;
  position: relative;
}

.challenge-card img {
  width: 80px;
  height: auto;
  margin: 0 auto var(--space-sm);
}
.challenge-card .ch-num {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: #78624A;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}
.challenge-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #4A3820;
  margin-bottom: var(--space-sm);
  min-height: 3.2rem;
}
.challenge-card p {
  font-size: 0.95rem;
  color: #5E4A2E;
  line-height: 1.5;
  margin-bottom: var(--space-md);
  flex-grow: 1;
}
.challenge-card .card-btn {
  display: inline-block;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: white;
  transition: all var(--transition-base);
}
.challenge-card.kit .card-btn { background: var(--color-kit); }
.challenge-card.kit .card-btn:hover { background: #C85210; }
.challenge-card.tashi .card-btn { background: var(--color-tashi); }
.challenge-card.tashi .card-btn:hover { background: #48616E; }
.challenge-card.ren .card-btn { background: var(--color-ren); }
.challenge-card.ren .card-btn:hover { background: #A84828; }
.challenge-card.trio .card-btn { background: linear-gradient(90deg, var(--color-kit), var(--color-ren)); }

.toolkit-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}
.toolkit-row-card {
  background: white;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  text-align: center;
  border: 2px solid #F4E8D4;
  transition: all var(--transition-base);
}
.toolkit-row-card:hover {
  border-color: var(--color-kit);
  transform: translateY(-4px);
}
.toolkit-row-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: #4A3820;
  margin-bottom: var(--space-sm);
}
.toolkit-row-card p {
  font-size: 0.9rem;
  color: #78624A;
  line-height: 1.5;
  margin-bottom: var(--space-md);
}
.toolkit-row-card a {
  color: var(--color-kit);
  font-weight: 600;
  text-decoration: none;
}
.toolkit-row-card a:hover {
  text-decoration: underline;
}

/* Real Life series card on homepage/books page */
.rl-series-section {
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, #FFF4E8 0%, #F4E8D4 100%);
}
.rl-series-card {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--space-3xl);
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}
.rl-series-card .cover-wrapper {
  text-align: center;
}
.rl-series-card .cover-wrapper img {
  max-width: 320px;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(74, 56, 32, 0.3);
}
.rl-series-card .rl-badge {
  display: inline-block;
  background: var(--color-kit);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}
.rl-series-card h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: #4A3820;
  margin-bottom: var(--space-sm);
  line-height: 1.15;
}
.rl-series-card .rl-subtitle {
  font-size: 1.1rem;
  color: #5E4A2E;
  margin-bottom: var(--space-lg);
  line-height: 1.5;
}
.rl-series-card .rl-desc {
  font-size: 1rem;
  color: #78624A;
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}
.rl-series-card .rl-coming-soon {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  background: #78624A;
  color: white;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  cursor: default;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .rl-series-card {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: center;
  }
  .char-cameo {
    float: none;
    display: block;
    margin: var(--space-md) auto;
  }
}
