/* Life Academy — subject hubs (shared) */
:root {
  --ink: #12202a;
  --muted: #5a6b76;
  --teal: #0f766e;
  --teal2: #14b8a6;
  --coral: #ea580c;
  --gold: #f59e0b;
  --cream: #fffdf8;
  --line: #e7dfd2;
  --shadow: 0 14px 36px rgba(18, 32, 42, 0.1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, 'Segoe UI', sans-serif, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 248, 241, 0.92), rgba(240, 253, 250, 0.94)),
    radial-gradient(ellipse at 20% 0%, rgba(20, 184, 166, 0.12), transparent 50%),
    radial-gradient(ellipse at 90% 10%, rgba(245, 158, 11, 0.1), transparent 45%),
    #fff8f1;
  line-height: 1.5;
  min-height: 100vh;
}
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; justify-content: space-between;
  padding: 0.7rem 1.15rem;
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: Georgia, 'Times New Roman', serif, serif; font-weight: 700; font-size: 1.1rem;
  text-decoration: none; color: inherit;
}
.logo span { color: var(--teal); }
.nav-links { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.nav-links a {
  color: var(--teal); font-weight: 800; text-decoration: none; font-size: 0.9rem;
  min-height: 40px; display: inline-flex; align-items: center; padding: 0.25rem 0.4rem;
}
.wrap { max-width: 920px; margin: 0 auto; padding: 1.35rem 1.2rem 3rem; }
.eyebrow {
  display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 0.45rem;
}
h1 {
  font-family: Georgia, 'Times New Roman', serif, serif;
  font-size: clamp(1.9rem, 5.5vw, 2.75rem);
  line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 0.55rem;
}
.lead { font-weight: 700; color: var(--muted); max-width: 38rem; margin: 0 0 1.25rem; font-size: 1.05rem; }
h2 {
  font-family: Georgia, 'Times New Roman', serif, serif;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  margin: 1.6rem 0 0.65rem; letter-spacing: -0.02em;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
}
.card {
  display: block;
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
  min-height: 88px;
}
.card:hover { transform: translateY(-2px); border-color: rgba(15, 118, 110, 0.35); }
.card small {
  display: block; color: var(--teal); font-size: 0.72rem; letter-spacing: 0.07em;
  text-transform: uppercase; font-weight: 800; margin-bottom: 0.25rem;
}
.card strong { font-family: Georgia, 'Times New Roman', serif, serif; font-size: 1.12rem; display: block; }
.card p { margin: 0.35rem 0 0; font-weight: 700; color: var(--muted); font-size: 0.9rem; }
.link-list { display: grid; gap: 0.45rem; }
a.row {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.35rem;
  background: rgba(255, 253, 248, 0.96); border: 1px solid var(--line); border-radius: 12px;
  padding: 0.8rem 1rem; text-decoration: none; color: inherit; font-weight: 800;
  box-shadow: 0 8px 20px rgba(18, 32, 42, 0.06);
}
a.row:hover { border-color: rgba(15, 118, 110, 0.4); }
a.row span { color: var(--muted); font-size: 0.85rem; font-weight: 700; }
.note {
  margin-top: 1.5rem; padding: 0.95rem 1rem; border-radius: 12px;
  background: rgba(15, 118, 110, 0.08); border: 1px solid rgba(15, 118, 110, 0.18);
  font-weight: 700; color: var(--muted); font-size: 0.92rem;
}
.pill {
  display: inline-block; background: #ecfdf5; color: var(--teal);
  font-weight: 800; font-size: 0.72rem; padding: 0.3rem 0.65rem;
  border-radius: 999px; margin: 0 0.25rem 0.55rem 0;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px;
  padding: 0.65rem 1.1rem; border-radius: 999px; font-weight: 800; text-decoration: none;
  font-size: 0.98rem; border: none; cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-ghost { background: var(--cream); color: var(--ink); border: 2px solid var(--ink); }
.btn-tts { background: #ecfdf5; color: var(--teal); border: 1px solid rgba(15, 118, 110, 0.25); font-size: 0.88rem; min-height: 40px; padding: 0.4rem 0.85rem; }
.btns { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0 1rem; }
footer.subfoot {
  margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line);
  font-weight: 700; color: var(--muted); font-size: 0.88rem;
}
footer.subfoot a { color: var(--teal); font-weight: 800; }

/* Module lesson layout */
.lesson { max-width: 720px; }
.lesson h2 { margin-top: 1.4rem; }
.lesson ul, .lesson ol { font-weight: 700; color: var(--ink); padding-left: 1.2rem; }
.lesson li { margin: 0.35rem 0; }
.lesson p { font-weight: 700; color: var(--muted); }
.sign-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.55rem; margin: 1rem 0;
}
.sign {
  border-radius: 12px; padding: 0.85rem; text-align: center; font-weight: 800; color: #fff; min-height: 90px;
  display: flex; flex-direction: column; justify-content: center; gap: 0.2rem;
}
.sign b { font-family: Georgia, 'Times New Roman', serif, serif; font-size: 1.05rem; }
.sign span { font-size: 0.78rem; opacity: 0.95; font-weight: 700; }
.quiz {
  margin-top: 1.75rem; padding: 1.15rem 1.1rem; border-radius: 16px;
  background: rgba(255, 253, 248, 0.98); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.quiz h2 { margin-top: 0; }
.q { margin: 1rem 0 0.75rem; }
.q legend { font-family: Georgia, 'Times New Roman', serif, serif; font-weight: 700; font-size: 1.02rem; margin-bottom: 0.4rem; }
.q label { display: block; font-weight: 700; margin: 0.3rem 0; cursor: pointer; }
.q input { margin-right: 0.45rem; }
.quiz-result {
  margin-top: 0.85rem; font-weight: 800; min-height: 1.4em;
}
.quiz-result.pass { color: var(--teal); }
.quiz-result.fail { color: var(--coral); }
.module-nav {
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: space-between;
  margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line);
}
.warn-box {
  background: #fff7ed; border: 1px solid #fdba74; border-radius: 12px;
  padding: 0.9rem 1rem; font-weight: 700; color: #9a3412; margin: 1rem 0;
}
.week-banner {
  margin: 1rem 0 1.25rem; padding: 1rem 1.1rem; border-radius: 14px;
  background: #fffdf8; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.week-banner strong {
  font-family: Georgia, 'Times New Roman', serif, serif; font-size: 1.15rem;
  color: var(--teal); display: block; margin-bottom: 0.25rem;
}
.stem-box {
  margin: 0.75rem 0 1rem;
  padding: 0.75rem 0.95rem;
  border-radius: 14px;
  background: #ecfdf5;
  border: 2px solid rgba(15, 118, 110, 0.35);
  font-weight: 700;
}
.stem-box strong { display: block; color: var(--teal); margin-bottom: 0.25rem; }
.vocab-table { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1rem; font-weight: 700; }
.vocab-table th, .vocab-table td { text-align: left; padding: 0.45rem 0.5rem; border-bottom: 1px solid var(--line); }
.vocab-table th { color: var(--teal); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
