/* Misiarium 11.9.79 — clickable, legible workfile links on bright lesson cards.
   Loaded AFTER existing styles. Scoped to learning guide; no global theme reset. */
body.magic90-lesson .t1161-assignment .mhome11934-part a:not(.m11979-file-link):not(.m11979-submit-link) {
  color:#075445!important;
  -webkit-text-fill-color:#075445!important;
  font-weight:800;
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}
body.magic90-lesson .t1161-assignment .mhome11934-part a:not(.m11979-file-link):not(.m11979-submit-link):hover {
  color:#06382f!important;
  -webkit-text-fill-color:#06382f!important;
  background:#e4f7ed;
}
body.magic90-lesson .t1161-assignment .mhome11934-part a:focus-visible,
body.magic90-lesson .t1161-assignment .m11979-workfiles a:focus-visible {
  outline:3px solid #ae5800!important;
  outline-offset:3px!important;
}
body.magic90-lesson .t1161-assignment .m11979-workfiles {
  margin:12px 0 14px;padding:12px;border:2px solid #166651;border-radius:12px;
  background:#f0fbf4!important;color:#163b33!important;
}
body.magic90-lesson .t1161-assignment .m11979-workfiles>strong {
  display:block;color:#173b33!important;font-size:1.04rem;
}
body.magic90-lesson .t1161-assignment .m11979-workfiles>p {
  color:#294e41!important;margin:5px 0 9px;
}
body.magic90-lesson .t1161-assignment .m11979-downloads {
  display:grid;grid-template-columns:1fr;gap:8px;margin:9px 0;
}
body.magic90-lesson .t1161-assignment .m11979-workfiles a.m11979-file-link,
body.magic90-lesson .t1161-assignment .m11979-workfiles a.m11979-file-link:visited {
  display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:3px;min-height:48px;width:100%;padding:9px 12px;
  background:#075943!important;color:#fff!important;
  -webkit-text-fill-color:#fff!important;border:2px solid #064b3a;
  border-radius:9px;text-decoration:none!important;font-weight:800;
  line-height:1.4;overflow-wrap:anywhere;white-space:normal;
}
body.magic90-lesson .t1161-assignment .m11979-workfiles a.m11979-file-link:hover {
  background:#074635!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
}
body.magic90-lesson .t1161-assignment .m11979-workfiles a.m11979-submit-link,
body.magic90-lesson .t1161-assignment .m11979-workfiles a.m11979-submit-link:visited {
  display:inline-flex;align-items:center;justify-content:center;min-height:44px;
  padding:10px 12px;border:2px solid #0b5671;border-radius:9px;
  background:#e7f6fc!important;color:#093e54!important;
  -webkit-text-fill-color:#093e54!important;text-decoration:underline!important;
  font-weight:800;text-underline-offset:3px;line-height:1.4;overflow-wrap:anywhere;
}
body.magic90-lesson .t1161-assignment .m11979-workfiles a.m11979-submit-link:hover {
  background:#c9e8f4!important;color:#082f40!important;-webkit-text-fill-color:#082f40!important;
}
/* Existing lesson guide actions were too faint because the global course theme is dark. */
body.magic90-lesson .t1161-assignment .mhome11934-actions a:not(:first-child),
body.magic90-lesson .t1161-assignment .mhome11934-actions a:not(:first-child):visited {
  background:#e5f5ee!important;color:#104b3c!important;-webkit-text-fill-color:#104b3c!important;
  border-color:#387e68;font-weight:800;
}
body.magic90-lesson .t1161-assignment .mhome11934-actions a:first-child,
body.magic90-lesson .t1161-assignment .mhome11934-actions a:first-child:visited {
  background:#145c49!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
}
body.magic90-lesson .t1161-assignment .mhome11934-actions a:hover {filter:brightness(.93)}
#submission-file,#student-submission,#home-help11934 {scroll-margin-top:115px}
@media (max-width:580px) {
  body.magic90-lesson .t1161-assignment .m11979-workfiles {padding:10px}
  body.magic90-lesson .t1161-assignment .m11979-workfiles a.m11979-submit-link {width:100%;text-align:center}
}
@media print {
  body.magic90-lesson .t1161-assignment .m11979-workfiles a.m11979-file-link {
    background:#fff!important;color:#000!important;-webkit-text-fill-color:#000!important;border-color:#333;
  }
}

body.magic90-lesson .t1161-assignment .m11979-workfiles a.m11979-file-link small {
  display:block;font-size:.81rem;font-weight:650;line-height:1.35;opacity:.94;
  color:#fff!important;-webkit-text-fill-color:#fff!important;word-break:break-word;
}
