/* Home page: second course card (Electricity) beside Cardiovascular; the eight topic cards move to a row beneath. */
@media (min-width: 1101px) {
  .cfeat.efeat { grid-column: 3 / 5; }
  .tgrid .rt { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); grid-template-rows: auto; }
  .tgrid .rt .tc.sm .d { display: block; }
  .tgrid .rt .tc.sm { align-items: start; }
  .tgrid .rt .tc.big svg.art { display: none; }
}
@media (max-width: 1100px) { .cfeat.efeat { grid-column: 1 / -1; } }

/* Glossary dialog: lesson terms section */
#dlg-body .gl-jump{margin:0 0 6px}
#dlg-body .gl-jump a{color:var(--cyan,#22d3ee);font-weight:600}
#dlg-body .gl-more{margin:26px 0 6px;padding-top:16px;border-top:1px solid rgba(255,255,255,.12);font-size:1.05rem}
#dlg-body .gl-note{margin:0 0 6px;color:#9db8c8;font-size:.85rem}
#dlg-body .gl-course{margin:16px 0 0;font:600 .75rem var(--plexmono,monospace);letter-spacing:.12em;text-transform:uppercase;color:var(--amber-2,#fe8401)}
#dlg-body .gl-go{display:block;margin-top:2px;font-size:.8rem;color:var(--cyan,#22d3ee)}

/* Info button under the pay figures */
.info-row{margin:6px 0 4px}
.info-btn{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:8px 16px 8px 10px;background:rgba(34,211,238,.08);border:1.5px solid rgba(34,211,238,.55);border-radius:999px;font:inherit;font-size:1rem;font-weight:600;color:#e8f4fb;cursor:pointer;text-align:left}
.info-btn:hover{background:rgba(34,211,238,.18);border-color:#22d3ee}
.info-btn:focus-visible{outline:2px solid #00e5ff;outline-offset:3px}
.info-i{display:inline-grid;place-items:center;flex:none;width:26px;height:26px;border:1.5px solid var(--cyan,#22d3ee);border-radius:50%;font:italic 700 .95rem Georgia,serif;line-height:1;color:var(--cyan,#22d3ee)}
.info-btn:focus-visible{outline:2px solid #00e5ff;outline-offset:3px;border-radius:6px}
.info-i{display:inline-grid;place-items:center;flex:none;width:22px;height:22px;border:1.5px solid var(--cyan,#22d3ee);border-radius:50%;font:italic 700 .8rem Georgia,serif;line-height:1}

/* Pay notes under the figures: small caption style like the sources line (not italic) */
.m-note-text .m-stats-note{font-size:15px;line-height:1.5;color:#9db8c8;font-style:normal;margin:0 0 12px}

/* Safety notice above Featured study topics: smaller, bold text */
.safety span{font-size:.9rem;line-height:1.5;font-weight:700}
.safety b{font-size:.72rem}

/* Calibration Workflow: room between the steps and the button */
.calbox{padding:14px 16px 16px}
.cal-top ol{gap:5px;line-height:1.3}
.calbox .btn-cyan2{margin-top:16px}

/* Why I built this: translucent panel, 16px body, quieter notes */
.m-note-text{background:rgba(255,255,255,.06);border:1px solid rgba(143,176,195,.26);border-radius:14px;padding:28px 30px}
.m-note-text p{font-size:16px;line-height:1.6}
.m-note-text h2{font-size:clamp(22px,2.4vw,28px)}
.m-note-text .m-stats-note{font-size:14px;line-height:1.5}
.m-note-text .m-src{font-size:13px}
@media (max-width:860px){
  #view-home .m-note{padding-left:12px;padding-right:12px}
  .m-note-text{padding:20px 16px;border-radius:12px}
  .m-note-text .info-btn{font-size:.9rem;padding:8px 12px 8px 8px;gap:8px}
}
/* Stat tiles: keep four across inside the panel without cramped wrapping */
.m-note-text .m-stats{gap:8px}
.m-note-text .m-stats div{padding:12px 10px 10px}
.m-note-text .m-stats b{font-size:1.45rem}
.m-note-text .m-stats span{font-size:.8rem;overflow-wrap:normal;hyphens:none}
@media (min-width:761px) and (max-width:1100px){.m-note-text .m-stats{grid-template-columns:repeat(2,1fr)}}

.cfeat.dfeat { grid-column: 1 / -1; }
.dfeat .pb { flex: 0 0 56px; }
.dfeat .parts { flex-wrap: wrap; }
.m-note > *, .m-video > * { min-width: 0; }
@media (max-width:860px){.m-video,.m-note{grid-template-columns:minmax(0,1fr)}}

.pay-page{display:block!important;max-width:1180px;margin:0 auto;padding:8px 0 56px!important}
.pay-page .m-note-text{max-width:860px}
