/* MOSAIC Physics: Biology-inspired page structure and typography */
:root{--ink:#1d2926;--muted:#5f6966;--accent:#5c4ab3;--line:#e3e4df;--paper:#fcfaf5;--white:#fff;--lav:#f1ecff}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-width:0;background:var(--paper);color:var(--ink);font-family:"DM Sans",sans-serif;line-height:1.65}img{max-width:100%}a{color:inherit}.lesson-header{max-width:1200px;margin:auto;padding:19px 28px;display:flex;justify-content:space-between;align-items:center;gap:20px}.lesson-brand{font-weight:800;text-decoration:none;letter-spacing:.08em;display:flex;align-items:center}.brand-logo{max-width:164px;max-height:56px;object-fit:contain}.lesson-header nav{display:flex;gap:clamp(10px,2vw,30px);flex-wrap:wrap}.lesson-header nav a{text-decoration:none;font-size:.91rem;font-weight:700}.pdf-link{color:var(--accent)}main{max-width:1200px;margin:auto;padding:0 28px 75px}.course-hero{display:flex;justify-content:space-between;align-items:center;gap:40px;min-height:350px;padding:55px 0 66px;border-bottom:1px solid var(--line)}.hero-copy{min-width:0;flex:1}.eyebrow{font-size:.8rem;font-weight:800;letter-spacing:.17em;text-transform:uppercase;color:var(--accent)}h1,h2,h3,h4{font-family:"Space Grotesk",sans-serif;line-height:1.18;overflow-wrap:anywhere}h1{font-size:clamp(2.7rem,5.6vw,5rem);letter-spacing:-.05em;margin:16px 0}h1 span{color:var(--accent)}.lede{max-width:650px;font-size:1.08rem;color:var(--muted)}.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:25px}.hero-actions a{padding:12px 18px;border-radius:12px;text-decoration:none;font-weight:700}.primary{background:var(--accent);color:white}.secondary{border:1px solid var(--accent);color:var(--accent)}.hero-chip-grid{flex:0 1 280px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.hero-chip-grid div{display:grid;place-items:center;min-height:95px;background:#eee9fb;border-radius:16px;color:var(--accent);font-weight:800;letter-spacing:.06em}.hero-chip-grid div:nth-child(2){background:#e6eee9}.hero-chip-grid div:nth-child(3){background:#fff0dd}.hero-chip-grid div:nth-child(4){background:#e8eef6}.topics-nav{padding:46px 0 35px;scroll-margin-top:20px}.topic-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.topic-links a{display:flex;align-items:center;gap:13px;min-width:0;overflow-wrap:anywhere;background:white;border:1px solid var(--line);border-radius:12px;padding:15px;text-decoration:none;font-weight:700}.topic-links span{flex:none;color:var(--accent);font-size:.8rem}.topic{padding:42px 0 20px;border-top:1px solid var(--line);scroll-margin-top:18px}.topic-heading{max-width:870px;margin-bottom:26px}.topic-number{font-weight:800;font-size:.84rem;color:var(--accent);letter-spacing:.07em}.topic-heading h2{font-size:clamp(1.8rem,3vw,2.7rem);margin:9px 0}.big-question{font-size:1.04rem;color:var(--muted)}.lesson-stack{display:grid;grid-template-columns:minmax(0,1fr);gap:23px}.lesson-card{min-width:0;overflow:hidden;background:white;border:1px solid var(--line);border-radius:18px;padding:clamp(18px,3.2vw,35px)}.lesson-kicker{font-weight:800;color:var(--accent);font-size:.8rem;letter-spacing:.08em;text-transform:uppercase}.lesson-card h3{font-size:clamp(1.35rem,2.6vw,1.85rem);margin:9px 0 18px}.source-figure{margin:0 auto 20px;max-width:820px;text-align:center}.source-figure a{display:block;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:white}.source-figure img{display:block;width:100%;height:auto;object-fit:contain}.source-figure figcaption{font-size:.82rem;color:var(--muted);padding:8px}.lesson-text{min-width:0;max-width:900px;margin:auto}.lesson-text h4{font-size:1.05rem;margin:20px 0 8px}.lesson-text p{margin:9px 0;color:#39433f}.table-scroll{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid #d8d9dc;border-radius:10px;margin:18px 0;overscroll-behavior-x:contain}.vocab-table{width:100%;border-collapse:collapse;table-layout:fixed;min-width:0;font-size:.95rem;line-height:1.5}.vocab-table th,.vocab-table td{border-bottom:1px solid #dedee1;border-right:1px solid #dedee1;padding:12px 14px;text-align:left;vertical-align:top;overflow-wrap:anywhere;word-break:normal;hyphens:auto;white-space:normal}.vocab-table tr:last-child th,.vocab-table tr:last-child td{border-bottom:0}.vocab-table th:last-child,.vocab-table td:last-child{border-right:0}.vocab-table thead{background:#f3f0fb}.vocab-table thead th{font-weight:800}.vocab-table th:first-child{width:34%}.vocab-table tbody th{font-weight:700}.downloads{margin-top:60px;border-top:1px solid var(--line);padding-top:44px}.downloads h2{font-size:clamp(1.8rem,3vw,2.6rem)}.download-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:15px;margin:24px 0}.download-card{display:flex;flex-direction:column;gap:12px;background:white;border:1px solid var(--line);border-radius:14px;padding:25px;text-decoration:none;min-width:0}.download-topic{font-size:.76rem;letter-spacing:.12em;color:var(--accent);font-weight:800}.download-card strong{font-size:1.18rem;overflow-wrap:anywhere}.download-link{font-weight:800;color:var(--accent)}.download-note{font-size:.87rem;color:var(--muted);overflow-wrap:anywhere}.back-home,.back-top{display:inline-block;margin:20px 20px 0 0;font-weight:700;text-decoration:none}footer{border-top:1px solid var(--line);padding:30px max(28px,calc((100vw - 1144px)/2));display:flex;justify-content:space-between;gap:20px;font-size:.85rem;font-weight:700}footer a{text-decoration:none}@media(max-width:800px){.hero-chip-grid{display:none}.topic-links{grid-template-columns:repeat(2,minmax(0,1fr))}.course-hero{min-height:0;padding:35px 0 42px}}@media(max-width:540px){main{padding:0 15px 55px}.lesson-header{padding:14px 15px;align-items:flex-start;flex-direction:column}.lesson-header nav{gap:14px}.topic-links{grid-template-columns:minmax(0,1fr)}.lesson-card{padding:16px}.vocab-table{font-size:.85rem}.vocab-table th,.vocab-table td{padding:9px 8px}.vocab-table th:first-child{width:39%}footer{padding:24px 15px;flex-wrap:wrap}}
/* Illustrated teaching tables: responsive and overflow-safe */
.lesson-card,.lesson-text{min-width:0}
.table-scroll{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.illustrated-table{width:100%;table-layout:fixed;border-collapse:collapse}
.illustrated-table th,.illustrated-table td{overflow-wrap:anywhere;word-break:normal;vertical-align:middle}
.illustrated-table th:first-child{width:23%}
.illustrated-table td:nth-child(2){width:39%}
.illustrated-table td:last-child{width:38%;text-align:center}
.illustrated-table .table-illustration{display:block;width:100%;max-width:240px;height:auto;max-height:180px;object-fit:contain;margin:auto;border-radius:8px}
@media(max-width:600px){
 .illustrated-table{font-size:.84rem}
 .illustrated-table th,.illustrated-table td{padding:9px 7px}
 .illustrated-table th:first-child{width:25%}
 .illustrated-table td:nth-child(2){width:37%}
 .illustrated-table td:last-child{width:38%}
 .illustrated-table .table-illustration{max-height:115px}
}

/* MOSAIC Physics header - final fix */

.lesson-header {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;

  width: 100%;
  min-height: 80px !important;
  height: auto !important;
  padding: 15px 5% !important;
  box-sizing: border-box;
}

.lesson-header .lesson-brand {
  display: inline-flex !important;
  align-items: center !important;

  width: 150px !important;
  max-width: 150px !important;
  height: auto !important;
  flex: 0 0 150px !important;
}

.lesson-header .lesson-brand img,
.lesson-header img.brand-logo {
  display: block !important;
  width: 100% !important;
  max-width: 150px !important;
  height: auto !important;
  max-height: 55px !important;
  object-fit: contain !important;
  object-position: left center;
}

@media (max-width: 600px) {
  .lesson-header .lesson-brand {
    width: 110px !important;
    max-width: 110px !important;
    flex-basis: 110px !important;
  }

  .lesson-header img.brand-logo {
    max-width: 110px !important;
    max-height: 45px !important;
  }
}

html {
  scroll-behavior: auto !important;
}

/* Physics hero: three action buttons */

.hero-actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center;
  gap: 16px;
}

.hero-actions > a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-height: 56px;
  padding: 16px 24px;
  text-decoration: none;
}

@media (max-width: 600px) {
  .hero-actions {
    flex-direction: column !important;
    align-items: stretch;
  }

  .hero-actions > a {
    width: 100% !important;
  }
}
