/* Bio Y11 Module 1 — Component Styles */

.formula-box {
  background: #fff7f3; border: 2px solid #fbc9ae; border-radius: 10px; padding: 18px 22px; margin: 14px 0; text-align: center;
}
.formula-box p {
  font-family: 'DM Mono', monospace; font-size: 18px; color: #b94a1e; margin-bottom: 6px; font-weight: 500;
}
.formula-box .sub {
  font-family: 'DM Sans', sans-serif; font-size: 13px; color: #888; margin: 0;
}
.worked {
  background: #f9f9f9; border-radius: 10px; padding: 18px 22px; margin: 14px 0; border-left: 3px solid var(--accent);
}
.worked h4 {
  font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--tf-head); margin-bottom: 10px;
}
.worked p {
  font-size: 14px; color: #444; line-height: 1.65; margin-bottom: 6px;
}
.worked .step {
  font-family: 'DM Mono', monospace; font-size: 14px; color: #b94a1e; background: #fff; padding: 6px 10px; border-radius: 6px; margin: 6px 0; display: block;
}
.structure-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0;
}
.struct-item {
  background: var(--tf-bg); border-radius: 8px; padding: 12px 14px;
}
.struct-item h5 {
  font-family: 'Outfit', sans-serif; font-size: 12px; font-weight: 800; color: var(--tf-head); margin-bottom: 5px;
}
.struct-item p {
  font-size: 13px; color: #555; line-height: 1.5; margin: 0;
}
.organelle-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0;
}
.org-card {
  background: var(--tf-bg); border-radius: 10px; padding: 14px 16px; border-left: 3px solid var(--accent);
}
.org-card h5 {
  font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 800; color: var(--tf-head); margin-bottom: 6px;
}
.org-card p {
  font-size: 13px; color: #555; line-height: 1.55; margin: 0;
}
.org-card .found-in {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-top: 5px;
}
.org-card.plant-only {
  border-left-color: #16a34a; background: #f0fdf4;
}
.org-card.plant-only h5 {
  color: #14532d;
}
.org-card.plant-only .found-in {
  color: #16a34a;
}
/* Lesson-specific styles */
    .cell-profiles {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0;
}
.cell-profile {
  background: #fff; border-radius: 12px; padding: 18px 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.07); border-top: 3px solid var(--accent);
}
.cell-profile h4 {
  font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 800; color: var(--h2-color); margin-bottom: 4px;
}
.cell-profile .cell-type-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; display: block;
}
.cell-profile p {
  font-size: 13px; color: #555; line-height: 1.6; margin-bottom: 6px;
}
.cell-profile p:last-child {
  margin-bottom: 0;
}
.cell-profile strong {
  color: #1a1a1a;
}
.stem-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 14px 0;
}
.stem-card {
  border-radius: 10px; padding: 14px 16px; text-align: center;
}
.stem-card h5 {
  font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 800; margin-bottom: 6px;
}
.stem-card p {
  font-size: 12px; color: #555; line-height: 1.5; margin: 0;
}
/* Lesson-specific styles */
    .component-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0;
}
.comp-card {
  background: var(--tf-bg); border-radius: 10px; padding: 14px 16px; border-left: 3px solid var(--accent);
}
.comp-card h5 {
  font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 800; color: var(--tf-head); margin-bottom: 6px;
}
.comp-card p {
  font-size: 13px; color: #555; line-height: 1.55; margin: 0;
}
.transport-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 14px 0;
}
.transport-card {
  border-radius: 10px; padding: 14px 16px;
}
.transport-card h5 {
  font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 800; margin-bottom: 8px;
}
.transport-card p {
  font-size: 13px; color: #555; line-height: 1.5; margin-bottom: 5px;
}
.transport-card p:last-child {
  margin: 0;
}
/* Lesson-specific styles */
    .circ-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 14px 0;
}
.circ-card {
  border-radius: 10px; padding: 16px 18px;
}
.circ-card h5 {
  font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 800; margin-bottom: 8px;
}
.circ-card p {
  font-size: 13px; color: #555; line-height: 1.55; margin-bottom: 6px;
}
.circ-card p:last-child {
  margin-bottom: 0;
}
.vessel-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 14px 0;
}
.vessel-card {
  background: var(--tf-bg); border-radius: 10px; padding: 14px 16px; border-top: 3px solid var(--accent);
}
.vessel-card h5 {
  font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 800; color: var(--tf-head); margin-bottom: 8px;
}
.vessel-card p {
  font-size: 13px; color: #555; line-height: 1.55; margin-bottom: 5px;
}
.vessel-card p:last-child {
  margin-bottom: 0;
}
.ecg-wrap {
  background: #0a0a1a; border-radius: 10px; padding: 20px; margin: 14px 0; overflow-x: auto;
}
.ecg-wrap svg {
  display: block;
}
/* Lesson-specific styles */
    .feature-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0;
}
.feat-card {
  background: var(--tf-bg); border-radius: 10px; padding: 14px 16px; border-left: 3px solid var(--accent);
}
.feat-card h5 {
  font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 800; color: var(--tf-head); margin-bottom: 6px;
}
.feat-card p {
  font-size: 13px; color: #555; line-height: 1.55; margin: 0;
}
.calc-box {
  background: #f8fbf9; border: 1.5px solid var(--tf-border); border-radius: 10px; padding: 18px 22px; margin: 14px 0; font-family: 'DM Mono', monospace; font-size: 13px; color: #2d5940;
}
.calc-box .calc-title {
  font-family: 'Outfit', sans-serif; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tf-head); margin-bottom: 12px;
}
.calc-row {
  display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid #d1faf5; font-size: 13px;
}
.calc-row:last-child {
  border-bottom: none; font-weight: 700; color: var(--tf-head);
}
.stage-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0;
}
.stage-card {
  border-radius: 10px; padding: 16px 18px; border-left: 3px solid var(--accent);
}
.stage-card.light {
  background: #fef9c3; border-left-color: #f59e0b;
}
.stage-card.dark {
  background: #d1fae5; border-left-color: #059669;
}
.stage-card h5 {
  font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 800; margin-bottom: 8px;
}
.stage-card.light h5 {
  color: #78350f;
}
.stage-card.dark h5 {
  color: #065f46;
}
.stage-card p {
  font-size: 13px; color: #555; line-height: 1.55; margin: 0 0 6px;
}
.stage-card ul {
  margin-left: 16px; margin-top: 4px;
}
.stage-card li {
  font-size: 13px; color: #555; line-height: 1.6;
}
.equation-box {
  background: #fff8f4; border: 2px solid #f9c8a8; border-radius: 12px; padding: 20px 24px; margin: 14px 0; text-align: center;
}
.equation-box .eq-label {
  font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tf-head); margin-bottom: 12px;
}
.equation-box .eq-text {
  font-family: 'DM Mono', monospace; font-size: 15px; color: #1a1a1a; line-height: 1.8;
}
.equation-box .eq-note {
  font-size: 12px; color: #888; margin-top: 8px;
}
.chloroplast-box {
  background: #f0fdf4; border: 1.5px solid #86efac; border-radius: 10px; padding: 18px 22px; margin: 14px 0;
}
.chloroplast-box .cb-title {
  font-family: 'Outfit', sans-serif; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #065f46; margin-bottom: 12px;
}
.cb-row {
  display: flex; gap: 14px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid #bbf7d0; font-size: 14px;
}
.cb-row:last-child {
  border-bottom: none;
}
.cb-part {
  font-family: 'Outfit', sans-serif; font-weight: 800; color: #065f46; min-width: 120px; font-size: 13px;
}
.cb-desc {
  color: #555; line-height: 1.5;
}
.pathway-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0;
}
.pathway-card {
  border-radius: 10px; padding: 16px 18px;
}
.pathway-card.aerobic {
  background: #d1fae5; border-left: 3px solid #059669;
}
.pathway-card.anaerobic {
  background: #fee2e2; border-left: 4px solid #ef4444;
}
.pathway-card h5 {
  font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 800; margin-bottom: 8px;
}
.pathway-card.aerobic h5 {
  color: #065f46;
}
.pathway-card.anaerobic h5 {
  color: #991b1b;
}
.pathway-card p {
  font-size: 13px; color: #555; line-height: 1.55; margin: 0 0 6px;
}
/* Lesson-specific styles for factor cards and graphs */
    .factor-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 14px 0;
}
.factor-card {
  border-radius: 10px; padding: 16px 18px;
}
.factor-card.temp {
  background: #fef3c7; border-top: 3px solid #f59e0b;
}
.factor-card.ph {
  background: #dbeafe; border-top: 3px solid #3b82f6;
}
.factor-card.conc {
  background: var(--tf-bg); border-top: 3px solid var(--accent);
}
.factor-card h5 {
  font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 800; margin-bottom: 8px;
}
.factor-card.temp h5 {
  color: #78350f;
}
.factor-card.ph h5 {
  color: #1e3a8a;
}
.factor-card.conc h5 {
  color: var(--tf-head);
}
.factor-card p {
  font-size: 13px; color: #555; line-height: 1.55; margin: 0 0 5px;
}
.graph-box {
  background: #f8fffe; border: 2px solid var(--tf-border); border-radius: 12px; padding: 20px 24px; margin: 14px 0;
}
.graph-box .graph-label {
  font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tf-head); margin-bottom: 14px;
}
.ascii-graph {
  font-family: 'DM Mono', monospace; font-size: 12px; color: #1a1a1a; line-height: 1.6; white-space: pre; overflow-x: auto;
}
.prac-box {
  background: #f0fdf4; border: 1.5px solid #86efac; border-radius: 12px; padding: 20px 24px; margin: 14px 0;
}
.prac-box .prac-label {
  font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #065f46; margin-bottom: 12px;
}
.calc-row.header {
  font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tf-head);
}
.calc-val {
  font-family: 'DM Mono', monospace; color: #1a1a1a;
}
.sav-highlight {
  background: var(--tf-bg); border-radius: 6px; padding: 2px 8px; font-weight: 700; color: var(--tf-head);
}
.compare-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0;
}
.compare-card {
  border-radius: 10px; padding: 16px 18px;
}
.compare-card.unicell {
  background: #d1fae5; border-left: 3px solid #059669;
}
.compare-card.multicell {
  background: #fdeee3; border-left: 3px solid #e8622a;
}
.compare-card h5 {
  font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 800; margin-bottom: 8px;
}
.compare-card.unicell h5 {
  color: #065f46;
}
.compare-card.multicell h5 {
  color: #9a3412;
}
.compare-card p {
  font-size: 13px; color: #555; line-height: 1.55; margin-bottom: 6px;
}
.compare-card ul {
  margin-left: 16px;
}
.compare-card li {
  font-size: 13px; color: #555; line-height: 1.6;
}
.exchange-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0;
}
.exchange-card {
  background: #fff; border-radius: 10px; padding: 14px 16px; border: 1.5px solid #f9c8a8;
}
.exchange-card h5 {
  font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 800; color: var(--tf-head); margin-bottom: 8px;
}
.exchange-card ul {
  margin-left: 16px;
}
.exchange-card li {
  font-size: 13px; color: #555; line-height: 1.6; margin-bottom: 3px;
}
.split-compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0;
}
.split-card {
  border-radius: 12px; padding: 18px 20px;
}
.split-card.photo {
  background: #d1fae5; border-top: 4px solid #059669;
}
.split-card.resp {
  background: #fdeee3; border-top: 4px solid #e8622a;
}
.split-card h5 {
  font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 800; margin-bottom: 10px;
}
.split-card.photo h5 {
  color: #065f46;
}
.split-card.resp h5 {
  color: #9a3412;
}
.split-card .eq {
  font-family: 'DM Mono', monospace; font-size: 12px; color: #1a1a1a; background: rgba(255,255,255,0.6); padding: 8px 12px; border-radius: 6px; margin-bottom: 10px; line-height: 1.5;
}
.split-card ul {
  margin-left: 16px;
}
.split-card li {
  font-size: 13px; color: #444; line-height: 1.65; margin-bottom: 3px;
}
.flow-diagram {
  background: #1e2a3a; border-radius: 12px; padding: 22px 26px; margin: 14px 0; font-family: 'DM Mono', monospace; font-size: 12px; color: #a7f3ec; line-height: 2; overflow-x: auto;
}
.flow-diagram .label {
  color: #4d7c6f; font-size: 11px;
}
.flow-diagram .arrow {
  color: #6366f1;
}
.flow-diagram .highlight {
  color: #fbbf24;
}
.compensation-box {
  background: #f0fdf4; border: 2px solid #86efac; border-radius: 12px; padding: 20px 24px; margin: 14px 0;
}
.compensation-box h4 {
  font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #065f46; margin-bottom: 12px;
}
.compensation-box p {
  font-size: 14px; color: #444; line-height: 1.7; margin-bottom: 8px;
}
.comp-row {
  display: grid; grid-template-columns: 160px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid #86efac; font-size: 14px;
}
.comp-row:last-child {
  border-bottom: none;
}
.comp-row .cond {
  font-family: 'Outfit', sans-serif; font-weight: 800; color: #065f46;
}
.comp-row .desc {
  color: #444; line-height: 1.5;
}
.carbon-flow {
  background: #ede9fe; border-radius: 12px; padding: 20px 24px; margin: 14px 0;
}
.carbon-flow h4 {
  font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #4c1d95; margin-bottom: 12px;
}
.carbon-flow p {
  font-size: 14px; color: #444; line-height: 1.7; margin-bottom: 8px;
}